@Generated(value="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.
Modifier and Type | Class and Description |
---|---|
static interface |
SourceCredentialsInfo.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the token.
|
AuthType |
authType()
The type of authentication used by the credentials.
|
String |
authTypeAsString()
The type of authentication used by the credentials.
|
static SourceCredentialsInfo.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SourceCredentialsInfo.Builder> |
serializableBuilderClass() |
ServerType |
serverType()
The type of source provider.
|
String |
serverTypeAsString()
The type of source provider.
|
SourceCredentialsInfo.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String arn()
The Amazon Resource Name (ARN) of the token.
public 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, serverType
will
return ServerType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
serverTypeAsString()
.
ServerType
public 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, 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 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, 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 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, authType
will
return AuthType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
authTypeAsString()
.
AuthType
public SourceCredentialsInfo.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SourceCredentialsInfo.Builder,SourceCredentialsInfo>
public static SourceCredentialsInfo.Builder builder()
public static Class<? extends SourceCredentialsInfo.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.