@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Connection extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Connection() |
Modifier and Type | Method and Description |
---|---|
Connection |
clone() |
boolean |
equals(Object obj) |
String |
getConnectionArn()
The Amazon Resource Name (ARN) of the connection.
|
String |
getConnectionName()
The name of the connection.
|
String |
getConnectionStatus()
The current status of the connection.
|
String |
getHostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
|
String |
getOwnerAccountId()
The identifier of the external provider where your third-party code repository is configured.
|
String |
getProviderType()
The name of the external provider where your third-party code repository is configured.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConnectionArn(String connectionArn)
The Amazon Resource Name (ARN) of the connection.
|
void |
setConnectionName(String connectionName)
The name of the connection.
|
void |
setConnectionStatus(String connectionStatus)
The current status of the connection.
|
void |
setHostArn(String hostArn)
The Amazon Resource Name (ARN) of the host associated with the connection.
|
void |
setOwnerAccountId(String ownerAccountId)
The identifier of the external provider where your third-party code repository is configured.
|
void |
setProviderType(String providerType)
The name of the external provider where your third-party code repository is configured.
|
String |
toString()
Returns a string representation of this object.
|
Connection |
withConnectionArn(String connectionArn)
The Amazon Resource Name (ARN) of the connection.
|
Connection |
withConnectionName(String connectionName)
The name of the connection.
|
Connection |
withConnectionStatus(ConnectionStatus connectionStatus)
The current status of the connection.
|
Connection |
withConnectionStatus(String connectionStatus)
The current status of the connection.
|
Connection |
withHostArn(String hostArn)
The Amazon Resource Name (ARN) of the host associated with the connection.
|
Connection |
withOwnerAccountId(String ownerAccountId)
The identifier of the external provider where your third-party code repository is configured.
|
Connection |
withProviderType(ProviderType providerType)
The name of the external provider where your third-party code repository is configured.
|
Connection |
withProviderType(String providerType)
The name of the external provider where your third-party code repository is configured.
|
public void setConnectionName(String connectionName)
The name of the connection. Connection names must be unique in an Amazon Web Services account.
connectionName
- The name of the connection. Connection names must be unique in an Amazon Web Services account.public String getConnectionName()
The name of the connection. Connection names must be unique in an Amazon Web Services account.
public Connection withConnectionName(String connectionName)
The name of the connection. Connection names must be unique in an Amazon Web Services account.
connectionName
- The name of the connection. Connection names must be unique in an Amazon Web Services account.public void setConnectionArn(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.
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.
public String getConnectionArn()
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.
The ARN is never reused if the connection is deleted.
public Connection withConnectionArn(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.
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.
public void setProviderType(String providerType)
The name of the external provider where your third-party code repository is configured.
providerType
- The name of the external provider where your third-party code repository is configured.ProviderType
public String getProviderType()
The name of the external provider where your third-party code repository is configured.
ProviderType
public Connection withProviderType(String providerType)
The name of the external provider where your third-party code repository is configured.
providerType
- The name of the external provider where your third-party code repository is configured.ProviderType
public Connection withProviderType(ProviderType providerType)
The name of the external provider where your third-party code repository is configured.
providerType
- The name of the external provider where your third-party code repository is configured.ProviderType
public void setOwnerAccountId(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.
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 String getOwnerAccountId()
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 Connection withOwnerAccountId(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.
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 void setConnectionStatus(String connectionStatus)
The current status of the connection.
connectionStatus
- The current status of the connection.ConnectionStatus
public String getConnectionStatus()
The current status of the connection.
ConnectionStatus
public Connection withConnectionStatus(String connectionStatus)
The current status of the connection.
connectionStatus
- The current status of the connection.ConnectionStatus
public Connection withConnectionStatus(ConnectionStatus connectionStatus)
The current status of the connection.
connectionStatus
- The current status of the connection.ConnectionStatus
public void setHostArn(String hostArn)
The Amazon Resource Name (ARN) of the host associated with the connection.
hostArn
- The Amazon Resource Name (ARN) of the host associated with the connection.public String getHostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
public Connection withHostArn(String hostArn)
The Amazon Resource Name (ARN) of the host associated with the connection.
hostArn
- The Amazon Resource Name (ARN) of the host associated with the connection.public String toString()
toString
in class Object
Object.toString()
public Connection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.