Interface AssociatedAccessPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssociatedAccessPolicy.Builder,
,AssociatedAccessPolicy> SdkBuilder<AssociatedAccessPolicy.Builder,
,AssociatedAccessPolicy> SdkPojo
- Enclosing class:
AssociatedAccessPolicy
public static interface AssociatedAccessPolicy.Builder
extends SdkPojo, CopyableBuilder<AssociatedAccessPolicy.Builder,AssociatedAccessPolicy>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssociatedAccessPolicy.Builder
accessScope
(Consumer<AccessScope.Builder> accessScope) The scope of the access policy.accessScope
(AccessScope accessScope) The scope of the access policy.associatedAt
(Instant associatedAt) The date and time theAccessPolicy
was associated with anAccessEntry
.modifiedAt
(Instant modifiedAt) The Unix epoch timestamp for the last modification to the object.The ARN of theAccessPolicy
.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
-
policyArn
The ARN of the
AccessPolicy
.- Parameters:
policyArn
- The ARN of theAccessPolicy
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessScope
The scope of the access policy.
- Parameters:
accessScope
- The scope of the access policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessScope
The scope of the access policy.
This is a convenience method that creates an instance of theAccessScope.Builder
avoiding the need to create one manually viaAccessScope.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessScope(AccessScope)
.- Parameters:
accessScope
- a consumer that will call methods onAccessScope.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
associatedAt
The date and time the
AccessPolicy
was associated with anAccessEntry
.- Parameters:
associatedAt
- The date and time theAccessPolicy
was associated with anAccessEntry
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedAt
The Unix epoch timestamp for the last modification to the object.
- Parameters:
modifiedAt
- The Unix epoch timestamp for the last modification to the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-