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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AssociatedAccessPolicy.BuilderaccessScope(Consumer<AccessScope.Builder> accessScope)The scope of the access policy.AssociatedAccessPolicy.BuilderaccessScope(AccessScope accessScope)The scope of the access policy.AssociatedAccessPolicy.BuilderassociatedAt(Instant associatedAt)The date and time theAccessPolicywas associated with anAccessEntry.AssociatedAccessPolicy.BuildermodifiedAt(Instant modifiedAt)The Unix epoch timestamp for the last modification to the object.AssociatedAccessPolicy.BuilderpolicyArn(String policyArn)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
policyArn
AssociatedAccessPolicy.Builder policyArn(String 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
AssociatedAccessPolicy.Builder accessScope(AccessScope 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
default AssociatedAccessPolicy.Builder accessScope(Consumer<AccessScope.Builder> accessScope)
The scope of the access policy.
This is a convenience method that creates an instance of theAccessScope.Builderavoiding the need to create one manually viaAccessScope.builder().When the
Consumercompletes,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:
accessScope(AccessScope)
-
associatedAt
AssociatedAccessPolicy.Builder associatedAt(Instant associatedAt)
The date and time the
AccessPolicywas associated with anAccessEntry.- Parameters:
associatedAt- The date and time theAccessPolicywas associated with anAccessEntry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedAt
AssociatedAccessPolicy.Builder modifiedAt(Instant 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.
-
-