Interface PutPolicyAssignmentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutPolicyAssignmentRequest.Builder,,PutPolicyAssignmentRequest> QuickSightRequest.Builder,SdkBuilder<PutPolicyAssignmentRequest.Builder,,PutPolicyAssignmentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutPolicyAssignmentRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Web Services account that contains the policy and the principal.existingPolicyArn(String existingPolicyArn) The ARN of the policy that you expect the principal to have before this request.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the policy to assign.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.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.quicksight.model.QuickSightRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
accountId
The ID of the Amazon Web Services account that contains the policy and the principal.
- Parameters:
accountId- The ID of the Amazon Web Services account that contains the policy and the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The Amazon Resource Name (ARN) of the policy to assign.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the policy to assign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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, the request fails with a
ConflictExceptionand makes no change. If you don't specify a value, the operation doesn't check the existing assignment.- 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, the request fails with aConflictExceptionand makes no change. If you don't specify a value, the operation doesn't check the existing assignment.- 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, the request fails with a
ConflictException. If you don't specify a value, the operation doesn't check the revision.- Parameters:
revision- The revision of the assignment from your most recent read. If the assignment has changed since that revision, the request fails with aConflictException. If you don't specify a value, the operation doesn't check the revision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutPolicyAssignmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutPolicyAssignmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-