@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceAuth extends Object implements Serializable, Cloneable, StructuredPojo
Information about the authorization settings for CodeBuild to access the source code to be built.
This information is for the CodeBuild console's use only. Your code should not get or set this information directly.
| Constructor and Description |
|---|
SourceAuth() |
| Modifier and Type | Method and Description |
|---|---|
SourceAuth |
clone() |
boolean |
equals(Object obj) |
String |
getResource()
The resource value that applies to the specified authorization type.
|
String |
getType()
The authorization type to use.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setResource(String resource)
The resource value that applies to the specified authorization type.
|
void |
setType(SourceAuthType type)
The authorization type to use.
|
void |
setType(String type)
The authorization type to use.
|
String |
toString()
Returns a string representation of this object.
|
SourceAuth |
withResource(String resource)
The resource value that applies to the specified authorization type.
|
SourceAuth |
withType(SourceAuthType type)
The authorization type to use.
|
SourceAuth |
withType(String type)
The authorization type to use.
|
public void setType(String type)
The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
type - The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.SourceAuthTypepublic String getType()
The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
SourceAuthTypepublic SourceAuth withType(String type)
The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
type - The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.SourceAuthTypepublic void setType(SourceAuthType type)
The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
type - The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.SourceAuthTypepublic SourceAuth withType(SourceAuthType type)
The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
type - The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.SourceAuthTypepublic void setResource(String resource)
The resource value that applies to the specified authorization type.
resource - The resource value that applies to the specified authorization type.public String getResource()
The resource value that applies to the specified authorization type.
public SourceAuth withResource(String resource)
The resource value that applies to the specified authorization type.
resource - The resource value that applies to the specified authorization type.public String toString()
toString in class ObjectObject.toString()public SourceAuth clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.