@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportSourceCredentialsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ImportSourceCredentialsRequest() |
Modifier and Type | Method and Description |
---|---|
ImportSourceCredentialsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAuthType()
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository.
|
String |
getServerType()
The source provider used for this project.
|
Boolean |
getShouldOverwrite()
Set to
false to prevent overwriting the repository source credentials. |
String |
getToken()
For GitHub or GitHub Enterprise, this is the personal access token.
|
String |
getUsername()
The Bitbucket username when the
authType is BASIC_AUTH. |
int |
hashCode() |
Boolean |
isShouldOverwrite()
Set to
false to prevent overwriting the repository source credentials. |
void |
setAuthType(String authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository.
|
void |
setServerType(String serverType)
The source provider used for this project.
|
void |
setShouldOverwrite(Boolean shouldOverwrite)
Set to
false to prevent overwriting the repository source credentials. |
void |
setToken(String token)
For GitHub or GitHub Enterprise, this is the personal access token.
|
void |
setUsername(String username)
The Bitbucket username when the
authType is BASIC_AUTH. |
String |
toString()
Returns a string representation of this object.
|
ImportSourceCredentialsRequest |
withAuthType(AuthType authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository.
|
ImportSourceCredentialsRequest |
withAuthType(String authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository.
|
ImportSourceCredentialsRequest |
withServerType(ServerType serverType)
The source provider used for this project.
|
ImportSourceCredentialsRequest |
withServerType(String serverType)
The source provider used for this project.
|
ImportSourceCredentialsRequest |
withShouldOverwrite(Boolean shouldOverwrite)
Set to
false to prevent overwriting the repository source credentials. |
ImportSourceCredentialsRequest |
withToken(String token)
For GitHub or GitHub Enterprise, this is the personal access token.
|
ImportSourceCredentialsRequest |
withUsername(String username)
The Bitbucket username when the
authType is BASIC_AUTH. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setUsername(String username)
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types
of source providers or connections.
username
- The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other
types of source providers or connections.public String getUsername()
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types
of source providers or connections.
authType
is BASIC_AUTH. This parameter is not valid for
other types of source providers or connections.public ImportSourceCredentialsRequest withUsername(String username)
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types
of source providers or connections.
username
- The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other
types of source providers or connections.public void setToken(String token)
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access
token or the app password. For the authType
CODECONNECTIONS, this is the connectionArn
.
token
- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the
access token or the app password. For the authType
CODECONNECTIONS, this is the
connectionArn
.public String getToken()
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access
token or the app password. For the authType
CODECONNECTIONS, this is the connectionArn
.
authType
CODECONNECTIONS, this is the
connectionArn
.public ImportSourceCredentialsRequest withToken(String token)
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access
token or the app password. For the authType
CODECONNECTIONS, this is the connectionArn
.
token
- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the
access token or the app password. For the authType
CODECONNECTIONS, this is the
connectionArn
.public void setServerType(String serverType)
The source provider used for this project.
serverType
- The source provider used for this project.ServerType
public String getServerType()
The source provider used for this project.
ServerType
public ImportSourceCredentialsRequest withServerType(String serverType)
The source provider used for this project.
serverType
- The source provider used for this project.ServerType
public ImportSourceCredentialsRequest withServerType(ServerType serverType)
The source provider used for this project.
serverType
- The source provider used for this project.ServerType
public void setAuthType(String authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the
CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.AuthType
public String getAuthType()
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
AuthType
public ImportSourceCredentialsRequest withAuthType(String authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the
CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.AuthType
public ImportSourceCredentialsRequest withAuthType(AuthType authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the
CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.AuthType
public void setShouldOverwrite(Boolean shouldOverwrite)
Set to false
to prevent overwriting the repository source credentials. Set to true
to
overwrite the repository source credentials. The default value is true
.
shouldOverwrite
- Set to false
to prevent overwriting the repository source credentials. Set to
true
to overwrite the repository source credentials. The default value is true
.public Boolean getShouldOverwrite()
Set to false
to prevent overwriting the repository source credentials. Set to true
to
overwrite the repository source credentials. The default value is true
.
false
to prevent overwriting the repository source credentials. Set to
true
to overwrite the repository source credentials. The default value is true
.public ImportSourceCredentialsRequest withShouldOverwrite(Boolean shouldOverwrite)
Set to false
to prevent overwriting the repository source credentials. Set to true
to
overwrite the repository source credentials. The default value is true
.
shouldOverwrite
- Set to false
to prevent overwriting the repository source credentials. Set to
true
to overwrite the repository source credentials. The default value is true
.public Boolean isShouldOverwrite()
Set to false
to prevent overwriting the repository source credentials. Set to true
to
overwrite the repository source credentials. The default value is true
.
false
to prevent overwriting the repository source credentials. Set to
true
to overwrite the repository source credentials. The default value is true
.public String toString()
toString
in class Object
Object.toString()
public ImportSourceCredentialsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()