@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceAuth extends Object implements Serializable, Cloneable, StructuredPojo
Information about the authorization settings for AWS CodeBuild to access the source code to be built.
This information is for the AWS CodeBuild console's use only. Your code should not get or set this information
directly (unless the build project's source type
value is BITBUCKET
or GITHUB
).
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; useful for testing and debugging.
|
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. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public String getType()
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public SourceAuth withType(String type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public void setType(SourceAuthType type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public SourceAuth withType(SourceAuthType type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public 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 Object
Object.toString()
public SourceAuth clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.