Class Principal
- java.lang.Object
-
- software.amazon.awssdk.services.ram.model.Principal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Principal.Builder,Principal>
@Generated("software.amazon.awssdk:codegen") public final class Principal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Principal.Builder,Principal>
Describes a principal for use with Resource Access Manager.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePrincipal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Principal.Builderbuilder()InstantcreationTime()The date and time when the principal was associated with the resource share.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanexternal()Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID of the principal that can be associated with a resource share.InstantlastUpdatedTime()The date and time when the association between the resource share and the principal was last updated.StringresourceShareArn()The Amazon Resource Name (ARN) of a resource share the principal is associated with.List<SdkField<?>>sdkFields()static Class<? extends Principal.Builder>serializableBuilderClass()Principal.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
-
id
public final String id()
The ID of the principal that can be associated with a resource share.
- Returns:
- The ID of the principal that can be associated with a resource share.
-
resourceShareArn
public final String resourceShareArn()
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
- Returns:
- The Amazon Resource Name (ARN) of a resource share the principal is associated with.
-
creationTime
public final Instant creationTime()
The date and time when the principal was associated with the resource share.
- Returns:
- The date and time when the principal was associated with the resource share.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
The date and time when the association between the resource share and the principal was last updated.
- Returns:
- The date and time when the association between the resource share and the principal was last updated.
-
external
public final Boolean external()
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
-
True– The two accounts belong to same organization. -
False– The two accounts do not belong to the same organization.
- Returns:
- Indicates the relationship between the Amazon Web Services account the principal belongs to and the
account that owns the resource share:
-
True– The two accounts belong to same organization. -
False– The two accounts do not belong to the same organization.
-
-
-
toBuilder
public Principal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Principal.Builder,Principal>
-
builder
public static Principal.Builder builder()
-
serializableBuilderClass
public static Class<? extends Principal.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.
-
-