@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceCredentialsInfo extends Object implements Serializable, Cloneable, StructuredPojo
Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository.
| Constructor and Description |
|---|
SourceCredentialsInfo() |
| Modifier and Type | Method and Description |
|---|---|
SourceCredentialsInfo |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the token.
|
String |
getAuthType()
The type of authentication used by the credentials.
|
String |
getServerType()
The type of source provider.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the token.
|
void |
setAuthType(String authType)
The type of authentication used by the credentials.
|
void |
setServerType(String serverType)
The type of source provider.
|
String |
toString()
Returns a string representation of this object.
|
SourceCredentialsInfo |
withArn(String arn)
The Amazon Resource Name (ARN) of the token.
|
SourceCredentialsInfo |
withAuthType(AuthType authType)
The type of authentication used by the credentials.
|
SourceCredentialsInfo |
withAuthType(String authType)
The type of authentication used by the credentials.
|
SourceCredentialsInfo |
withServerType(ServerType serverType)
The type of source provider.
|
SourceCredentialsInfo |
withServerType(String serverType)
The type of source provider.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the token.
arn - The Amazon Resource Name (ARN) of the token.public String getArn()
The Amazon Resource Name (ARN) of the token.
public SourceCredentialsInfo withArn(String arn)
The Amazon Resource Name (ARN) of the token.
arn - The Amazon Resource Name (ARN) of the token.public void setServerType(String serverType)
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
serverType - The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.ServerTypepublic String getServerType()
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
ServerTypepublic SourceCredentialsInfo withServerType(String serverType)
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
serverType - The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.ServerTypepublic SourceCredentialsInfo withServerType(ServerType serverType)
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
serverType - The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.ServerTypepublic void setAuthType(String authType)
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
authType - The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or
PERSONAL_ACCESS_TOKEN.AuthTypepublic String getAuthType()
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
AuthTypepublic SourceCredentialsInfo withAuthType(String authType)
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
authType - The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or
PERSONAL_ACCESS_TOKEN.AuthTypepublic SourceCredentialsInfo withAuthType(AuthType authType)
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
authType - The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or
PERSONAL_ACCESS_TOKEN.AuthTypepublic String toString()
toString in class ObjectObject.toString()public SourceCredentialsInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.