@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
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.
|
ImportSourceCredentialsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
token()
For GitHub or GitHub Enterprise, this is the personal access token.
|
String |
toString() |
String |
username()
The Bitbucket username when the
authType is BASIC_AUTH. |
overrideConfiguration
copy
public 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 String token()
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
public 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()
.
ServerType
public 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()
.
ServerType
public 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()
.
AuthType
public 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()
.
AuthType
public ImportSourceCredentialsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>
toBuilder
in class CodeBuildRequest
public static ImportSourceCredentialsRequest.Builder builder()
public static Class<? extends ImportSourceCredentialsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.