Class Connection
- java.lang.Object
-
- software.amazon.awssdk.services.codeconnections.model.Connection
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Connection.Builder,Connection>
@Generated("software.amazon.awssdk:codegen") public final class Connection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Connection.Builder,Connection>
A resource that is used to connect third-party source providers with services like CodePipeline.
Note: A connection created through CloudFormation, the CLI, or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by updating the connection in the console.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConnection.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Connection.Builderbuilder()StringconnectionArn()The Amazon Resource Name (ARN) of the connection.StringconnectionName()The name of the connection.ConnectionStatusconnectionStatus()The current status of the connection.StringconnectionStatusAsString()The current status of the connection.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhostArn()The Amazon Resource Name (ARN) of the host associated with the connection.StringownerAccountId()The identifier of the external provider where your third-party code repository is configured.ProviderTypeproviderType()The name of the external provider where your third-party code repository is configured.StringproviderTypeAsString()The name of the external provider where your third-party code repository is configured.List<SdkField<?>>sdkFields()static Class<? extends Connection.Builder>serializableBuilderClass()Connection.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
-
connectionName
public final String connectionName()
The name of the connection. Connection names must be unique in an Amazon Web Services account.
- Returns:
- The name of the connection. Connection names must be unique in an Amazon Web Services account.
-
connectionArn
public final String connectionArn()
The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services.
The ARN is never reused if the connection is deleted.
- Returns:
- The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the
connection is shared between Amazon Web Services.
The ARN is never reused if the connection is deleted.
-
providerType
public final ProviderType providerType()
The name of the external provider where your third-party code repository is configured.
If the service returns an enum value that is not available in the current SDK version,
providerTypewill returnProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproviderTypeAsString().- Returns:
- The name of the external provider where your third-party code repository is configured.
- See Also:
ProviderType
-
providerTypeAsString
public final String providerTypeAsString()
The name of the external provider where your third-party code repository is configured.
If the service returns an enum value that is not available in the current SDK version,
providerTypewill returnProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproviderTypeAsString().- Returns:
- The name of the external provider where your third-party code repository is configured.
- See Also:
ProviderType
-
ownerAccountId
public final String ownerAccountId()
The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
- Returns:
- The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
-
connectionStatus
public final ConnectionStatus connectionStatus()
The current status of the connection.
If the service returns an enum value that is not available in the current SDK version,
connectionStatuswill returnConnectionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionStatusAsString().- Returns:
- The current status of the connection.
- See Also:
ConnectionStatus
-
connectionStatusAsString
public final String connectionStatusAsString()
The current status of the connection.
If the service returns an enum value that is not available in the current SDK version,
connectionStatuswill returnConnectionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionStatusAsString().- Returns:
- The current status of the connection.
- See Also:
ConnectionStatus
-
hostArn
public final String hostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
- Returns:
- The Amazon Resource Name (ARN) of the host associated with the connection.
-
toBuilder
public Connection.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Connection.Builder,Connection>
-
builder
public static Connection.Builder builder()
-
serializableBuilderClass
public static Class<? extends Connection.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.
-
-