Class ImportSourceCredentialsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codebuild.model.CodeBuildRequest
-
- software.amazon.awssdk.services.codebuild.model.ImportSourceCredentialsRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>
@Generated("software.amazon.awssdk:codegen") public final class ImportSourceCredentialsRequest extends CodeBuildRequest implements ToCopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImportSourceCredentialsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthTypeauthType()The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.StringauthTypeAsString()The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.static ImportSourceCredentialsRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ImportSourceCredentialsRequest.Builder>serializableBuilderClass()ServerTypeserverType()The source provider used for this project.StringserverTypeAsString()The source provider used for this project.BooleanshouldOverwrite()Set tofalseto prevent overwriting the repository source credentials.ImportSourceCredentialsRequest.BuildertoBuilder()Stringtoken()For GitHub or GitHub Enterprise, this is the personal access token.StringtoString()Returns a string representation of this object.Stringusername()The Bitbucket username when theauthTypeis BASIC_AUTH.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
username
public final String username()
The Bitbucket username when the
authTypeis BASIC_AUTH. This parameter is not valid for other types of source providers or connections.- Returns:
- The Bitbucket username when the
authTypeis BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
-
token
public final String token()
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
- Returns:
- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
-
serverType
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,
serverTypewill returnServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserverTypeAsString().- Returns:
- The source provider used for this project.
- See Also:
ServerType
-
serverTypeAsString
public 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,
serverTypewill returnServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserverTypeAsString().- Returns:
- The source provider used for this project.
- See Also:
ServerType
-
authType
public 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 CodeBuild console.
If the service returns an enum value that is not available in the current SDK version,
authTypewill returnAuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthTypeAsString().- Returns:
- 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 CodeBuild console.
- See Also:
AuthType
-
authTypeAsString
public 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 CodeBuild console.
If the service returns an enum value that is not available in the current SDK version,
authTypewill returnAuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthTypeAsString().- Returns:
- 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 CodeBuild console.
- See Also:
AuthType
-
shouldOverwrite
public final Boolean shouldOverwrite()
Set to
falseto prevent overwriting the repository source credentials. Set totrueto overwrite the repository source credentials. The default value istrue.- Returns:
- Set to
falseto prevent overwriting the repository source credentials. Set totrueto overwrite the repository source credentials. The default value istrue.
-
toBuilder
public ImportSourceCredentialsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>- Specified by:
toBuilderin classCodeBuildRequest
-
builder
public static ImportSourceCredentialsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImportSourceCredentialsRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-