@Generated(value="software.amazon.awssdk:codegen") public final class ResourceShareAssociation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceShareAssociation.Builder,ResourceShareAssociation>
Describes an association with a resource share and either a principal or a resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceShareAssociation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
associatedEntity()
The associated entity.
|
ResourceShareAssociationType |
associationType()
The type of entity included in this association.
|
String |
associationTypeAsString()
The type of entity included in this association.
|
static ResourceShareAssociation.Builder |
builder() |
Instant |
creationTime()
The date and time when the association was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
external()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTime()
The date and time when the association was last updated.
|
String |
resourceShareArn()
The Amazon Resoure Name
(ARN) of the resource share.
|
String |
resourceShareName()
The name of the resource share.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResourceShareAssociation.Builder> |
serializableBuilderClass() |
ResourceShareAssociationStatus |
status()
The current status of the association.
|
String |
statusAsString()
The current status of the association.
|
String |
statusMessage()
A message about the status of the association.
|
ResourceShareAssociation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String resourceShareArn()
The Amazon Resoure Name (ARN) of the resource share.
public final String resourceShareName()
The name of the resource share.
public final String associatedEntity()
The associated entity. This can be either of the following:
For a resource association, this is the Amazon Resoure Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resoure Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
For a resource association, this is the Amazon Resoure Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resoure Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
public final ResourceShareAssociationType associationType()
The type of entity included in this association.
If the service returns an enum value that is not available in the current SDK version, associationType
will return ResourceShareAssociationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from associationTypeAsString().
ResourceShareAssociationTypepublic final String associationTypeAsString()
The type of entity included in this association.
If the service returns an enum value that is not available in the current SDK version, associationType
will return ResourceShareAssociationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from associationTypeAsString().
ResourceShareAssociationTypepublic final ResourceShareAssociationStatus status()
The current status of the association.
If the service returns an enum value that is not available in the current SDK version, status will
return ResourceShareAssociationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
ResourceShareAssociationStatuspublic final String statusAsString()
The current status of the association.
If the service returns an enum value that is not available in the current SDK version, status will
return ResourceShareAssociationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
ResourceShareAssociationStatuspublic final String statusMessage()
A message about the status of the association.
public final Instant creationTime()
The date and time when the association was created.
public final Instant lastUpdatedTime()
The date and time when the association was last updated.
public final Boolean external()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
public ResourceShareAssociation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResourceShareAssociation.Builder,ResourceShareAssociation>public static ResourceShareAssociation.Builder builder()
public static Class<? extends ResourceShareAssociation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.