@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, 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, 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, or Bitbucket repository.
|
ImportSourceCredentialsRequest |
withAuthType(String authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, 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 the app password.
token
- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app
password.public String getToken()
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
public ImportSourceCredentialsRequest withToken(String token)
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
token
- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app
password.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, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An
OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.AuthType
public String getAuthType()
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.
AuthType
public ImportSourceCredentialsRequest withAuthType(String authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An
OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.AuthType
public ImportSourceCredentialsRequest withAuthType(AuthType authType)
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An
OAUTH connection is not supported by the API and must be created using the AWS CodeBuild console.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.