@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String connectionName()
The name of the connection. Connection names must be unique in an AWS user account.
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 AWS services.
The ARN is never reused if the connection is deleted.
The ARN is never reused if the connection is deleted.
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, providerType
will
return ProviderType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
providerTypeAsString()
.
ProviderType
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, providerType
will
return ProviderType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
providerTypeAsString()
.
ProviderType
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.
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, connectionStatus
will return ConnectionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from connectionStatusAsString()
.
ConnectionStatus
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, connectionStatus
will return ConnectionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from connectionStatusAsString()
.
ConnectionStatus
public final String hostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
public Connection.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Connection.Builder,Connection>
public static Connection.Builder builder()
public static Class<? extends Connection.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.