Interface PutAssignmentEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PutAssignmentEntry.Builder,,PutAssignmentEntry> SdkBuilder<PutAssignmentEntry.Builder,,PutAssignmentEntry> SdkPojo
- Enclosing class:
PutAssignmentEntry
@Mutable
@NotThreadSafe
public static interface PutAssignmentEntry.Builder
extends SdkPojo, CopyableBuilder<PutAssignmentEntry.Builder,PutAssignmentEntry>
-
Method Summary
Modifier and TypeMethodDescriptionexistingPolicyArn(String existingPolicyArn) The ARN of the policy that you expect the principal to have before this request.principalArn(String principalArn) The ARN of the user, group, or account to assign the policy to.The revision of the assignment from your most recent read.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
principalArn
The ARN of the user, group, or account to assign the policy to.
- Parameters:
principalArn- The ARN of the user, group, or account to assign the policy to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
existingPolicyArn
The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, this entry fails with a
ConflictExceptionerror code and makes no change.- Parameters:
existingPolicyArn- The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, this entry fails with aConflictExceptionerror code and makes no change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revision
The revision of the assignment from your most recent read. If the assignment has changed since that revision, this entry fails with a
ConflictExceptionerror code.- Parameters:
revision- The revision of the assignment from your most recent read. If the assignment has changed since that revision, this entry fails with aConflictExceptionerror code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-