Class SourceCredentialsInfo
- java.lang.Object
-
- software.amazon.awssdk.services.codebuild.model.SourceCredentialsInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SourceCredentialsInfo.Builder,SourceCredentialsInfo>
@Generated("software.amazon.awssdk:codegen") public final class SourceCredentialsInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SourceCredentialsInfo.Builder,SourceCredentialsInfo>
Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSourceCredentialsInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the token.AuthTypeauthType()The type of authentication used by the credentials.StringauthTypeAsString()The type of authentication used by the credentials.static SourceCredentialsInfo.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SourceCredentialsInfo.Builder>serializableBuilderClass()ServerTypeserverType()The type of source provider.StringserverTypeAsString()The type of source provider.SourceCredentialsInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the token.
- Returns:
- The Amazon Resource Name (ARN) of the token.
-
serverType
public final ServerType serverType()
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
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 type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
- See Also:
ServerType
-
serverTypeAsString
public final String serverTypeAsString()
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
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 type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
- See Also:
ServerType
-
authType
public final AuthType authType()
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
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 by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
- See Also:
AuthType
-
authTypeAsString
public final String authTypeAsString()
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
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 by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
- See Also:
AuthType
-
toBuilder
public SourceCredentialsInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SourceCredentialsInfo.Builder,SourceCredentialsInfo>
-
builder
public static SourceCredentialsInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends SourceCredentialsInfo.Builder> serializableBuilderClass()
-
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.
-
-