@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.ServerType
public String getServerType()
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
ServerType
public 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.ServerType
public 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.ServerType
public 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.AuthType
public String getAuthType()
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
AuthType
public 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.AuthType
public 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.AuthType
public String toString()
toString
in class Object
Object.toString()
public SourceCredentialsInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.