Class ResourceShareAssociation
- java.lang.Object
-
- software.amazon.awssdk.services.ram.model.ResourceShareAssociation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceShareAssociation.Builder,ResourceShareAssociation>
@Generated("software.amazon.awssdk:codegen") public final class ResourceShareAssociation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceShareAssociation.Builder,ResourceShareAssociation>
Describes an association between a resource share and either a principal or a resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceShareAssociation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassociatedEntity()The associated entity.ResourceShareAssociationTypeassociationType()The type of entity included in this association.StringassociationTypeAsString()The type of entity included in this association.static ResourceShareAssociation.Builderbuilder()InstantcreationTime()The date and time when the association was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanexternal()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)inthashCode()InstantlastUpdatedTime()The date and time when the association was last updated.StringresourceShareArn()The Amazon Resource Name (ARN) of the resource share.StringresourceShareName()The name of the resource share.List<SdkField<?>>sdkFields()static Class<? extends ResourceShareAssociation.Builder>serializableBuilderClass()ResourceShareAssociationStatusstatus()The current status of the association.StringstatusAsString()The current status of the association.StringstatusMessage()A message about the status of the association.ResourceShareAssociation.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
-
resourceShareArn
public final String resourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
- Returns:
- The Amazon Resource Name (ARN) of the resource share.
-
resourceShareName
public final String resourceShareName()
The name of the resource share.
- Returns:
- The name of the resource share.
-
associatedEntity
public final String associatedEntity()
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource 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
-
- Returns:
- The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource 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
-
-
-
-
associationType
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,
associationTypewill returnResourceShareAssociationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromassociationTypeAsString().- Returns:
- The type of entity included in this association.
- See Also:
ResourceShareAssociationType
-
associationTypeAsString
public 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,
associationTypewill returnResourceShareAssociationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromassociationTypeAsString().- Returns:
- The type of entity included in this association.
- See Also:
ResourceShareAssociationType
-
status
public 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,
statuswill returnResourceShareAssociationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the association.
- See Also:
ResourceShareAssociationStatus
-
statusAsString
public 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,
statuswill returnResourceShareAssociationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the association.
- See Also:
ResourceShareAssociationStatus
-
statusMessage
public final String statusMessage()
A message about the status of the association.
- Returns:
- A message about the status of the association.
-
creationTime
public final Instant creationTime()
The date and time when the association was created.
- Returns:
- The date and time when the association was created.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
The date and time when the association was last updated.
- Returns:
- The date and time when the association was last updated.
-
external
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.
- Returns:
- Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
-
toBuilder
public ResourceShareAssociation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceShareAssociation.Builder,ResourceShareAssociation>
-
builder
public static ResourceShareAssociation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceShareAssociation.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.
-
-