@Generated(value="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 AWS 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Connection.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Connection.Builder |
builder() |
String |
connectionArn()
The Amazon Resource Name (ARN) of the connection.
|
String |
connectionName()
The name of the connection.
|
ConnectionStatus |
connectionStatus()
The current status of the connection.
|
String |
connectionStatusAsString()
The current status of the connection.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
|
String |
ownerAccountId()
The identifier of the external provider where your third-party code repository is configured.
|
ProviderType |
providerType()
The name of the external provider where your third-party code repository is configured.
|
String |
providerTypeAsString()
The name of the external provider where your third-party code repository is configured.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Connection.Builder> |
serializableBuilderClass() |
Connection.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String connectionName()
The name of the connection. Connection names must be unique in an AWS user account.
public String connectionArn()
The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services.
The ARN is never reused if the connection is deleted.
The ARN is never reused if the connection is deleted.
public ProviderType providerType()
The name of the external provider where your third-party code repository is configured. The valid provider type is Bitbucket.
If the service returns an enum value that is not available in the current SDK version, providerType will
return ProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
providerTypeAsString().
ProviderTypepublic String providerTypeAsString()
The name of the external provider where your third-party code repository is configured. The valid provider type is Bitbucket.
If the service returns an enum value that is not available in the current SDK version, providerType will
return ProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
providerTypeAsString().
ProviderTypepublic 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.
public ConnectionStatus connectionStatus()
The current status of the connection.
If the service returns an enum value that is not available in the current SDK version, connectionStatus
will return ConnectionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from connectionStatusAsString().
ConnectionStatuspublic String connectionStatusAsString()
The current status of the connection.
If the service returns an enum value that is not available in the current SDK version, connectionStatus
will return ConnectionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from connectionStatusAsString().
ConnectionStatuspublic String hostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
public Connection.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Connection.Builder,Connection>public static Connection.Builder builder()
public static Class<? extends Connection.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.