Class ResourceShareAssociation
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<ResourceShareAssociation.Builder,- ResourceShareAssociation> 
Describes an association between a resource share and either a principal or a resource.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringThe associated entity.The type of entity included in this association.final StringThe type of entity included in this association.builder()final InstantThe date and time when the association was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Booleanexternal()Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InstantThe date and time when the association was last updated.final StringThe Amazon Resource Name (ARN) of the resource share.final StringThe name of the resource share.static Class<? extends ResourceShareAssociation.Builder> status()The current status of the association.final StringThe current status of the association.final StringA message about the status of the association.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details
- 
associatedEntityThe 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 
 
- 
         
 
- 
         
 
- 
 
- 
associationTypeThe 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:
 
- 
associationTypeAsStringThe 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:
 
- 
statusThe 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:
 
- 
statusAsStringThe 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:
 
- 
statusMessageA message about the status of the association. - Returns:
- A message about the status of the association.
 
- 
creationTimeThe date and time when the association was created. - Returns:
- The date and time when the association was created.
 
- 
lastUpdatedTimeThe date and time when the association was last updated. - Returns:
- The date and time when the association was last updated.
 
- 
externalIndicates 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.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<ResourceShareAssociation.Builder,- ResourceShareAssociation> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.