@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, GitLab, GitLab Self Managed, 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 |
getResource()
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
|
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 |
setResource(String resource)
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
|
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 |
withResource(String resource)
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
|
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, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
serverType - The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED,
or BITBUCKET.ServerTypepublic String getServerType()
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
ServerTypepublic SourceCredentialsInfo withServerType(String serverType)
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
serverType - The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED,
or BITBUCKET.ServerTypepublic SourceCredentialsInfo withServerType(ServerType serverType)
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
serverType - The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED,
or BITBUCKET.ServerTypepublic void setAuthType(String authType)
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
authType - The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH,
PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.AuthTypepublic String getAuthType()
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
AuthTypepublic SourceCredentialsInfo withAuthType(String authType)
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
authType - The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH,
PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.AuthTypepublic SourceCredentialsInfo withAuthType(AuthType authType)
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
authType - The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH,
PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.AuthTypepublic void setResource(String resource)
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
resource - The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is
CODECONNECTIONS.public String getResource()
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
public SourceCredentialsInfo withResource(String resource)
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
resource - The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is
CODECONNECTIONS.public 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.