Interface Principal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Principal.Builder,
,Principal> SdkBuilder<Principal.Builder,
,Principal> SdkPojo
- Enclosing class:
Principal
public static interface Principal.Builder
extends SdkPojo, CopyableBuilder<Principal.Builder,Principal>
-
Method Summary
Modifier and TypeMethodDescriptioncreationTime
(Instant creationTime) The date and time when the principal was associated with the resource share.Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:The ID of the principal that can be associated with a resource share.lastUpdatedTime
(Instant lastUpdatedTime) The date and time when the association between the resource share and the principal was last updated.resourceShareArn
(String resourceShareArn) The Amazon Resource Name (ARN) of a resource share the principal is associated with.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The ID of the principal that can be associated with a resource share.
- Parameters:
id
- The ID of the principal that can be associated with a resource share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The date and time when the principal was associated with the resource share.
- Parameters:
creationTime
- The date and time when the principal was associated with the resource share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
The date and time when the association between the resource share and the principal was last updated.
- Parameters:
lastUpdatedTime
- The date and time when the association between the resource share and the principal was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
-