@Generated(value="software.amazon.awssdk:codegen") public final class ImportSourceCredentialsRequest extends CodeBuildRequest implements ToCopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImportSourceCredentialsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AuthType |
authType()
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.
|
String |
authTypeAsString()
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.
|
static ImportSourceCredentialsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ImportSourceCredentialsRequest.Builder> |
serializableBuilderClass() |
ServerType |
serverType()
The source provider used for this project.
|
String |
serverTypeAsString()
The source provider used for this project.
|
Boolean |
shouldOverwrite()
Set to
false to prevent overwriting the repository source credentials. |
ImportSourceCredentialsRequest.Builder |
toBuilder() |
String |
token()
For GitHub or GitHub Enterprise, this is the personal access token.
|
String |
toString()
Returns a string representation of this object.
|
String |
username()
The Bitbucket username when the
authType is BASIC_AUTH. |
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String username()
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 final String token()
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
public final ServerType serverType()
The source provider used for this project.
If the service returns an enum value that is not available in the current SDK version, serverType will
return ServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
serverTypeAsString().
ServerTypepublic final String serverTypeAsString()
The source provider used for this project.
If the service returns an enum value that is not available in the current SDK version, serverType will
return ServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
serverTypeAsString().
ServerTypepublic final 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.
If the service returns an enum value that is not available in the current SDK version, authType will
return AuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
authTypeAsString().
AuthTypepublic final String authTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, authType will
return AuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
authTypeAsString().
AuthTypepublic final 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.
false to prevent overwriting the repository source credentials. Set to
true to overwrite the repository source credentials. The default value is true.public ImportSourceCredentialsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>toBuilder in class CodeBuildRequestpublic static ImportSourceCredentialsRequest.Builder builder()
public static Class<? extends ImportSourceCredentialsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.