Interface BatchPutPolicyAssignmentByPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<BatchPutPolicyAssignmentByPolicyResponse.Builder,,BatchPutPolicyAssignmentByPolicyResponse> QuickSightResponse.Builder,SdkBuilder<BatchPutPolicyAssignmentByPolicyResponse.Builder,,BatchPutPolicyAssignmentByPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
BatchPutPolicyAssignmentByPolicyResponse
-
Method Summary
Modifier and TypeMethodDescriptionA list of principals that the policy couldn't be assigned to, with the reason for each failure.errors(Consumer<BatchPutPolicyAssignmentError.Builder>... errors) A list of principals that the policy couldn't be assigned to, with the reason for each failure.errors(BatchPutPolicyAssignmentError... errors) A list of principals that the policy couldn't be assigned to, with the reason for each failure.The ARN of the policy from the request.success(Collection<BatchPutPolicyAssignmentSuccess> success) A list of principals that the policy was assigned to.success(Consumer<BatchPutPolicyAssignmentSuccess.Builder>... success) A list of principals that the policy was assigned to.success(BatchPutPolicyAssignmentSuccess... success) A list of principals that the policy was assigned to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.quicksight.model.QuickSightResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyArn
The ARN of the policy from the request.
- Parameters:
policyArn- The ARN of the policy from the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
success
BatchPutPolicyAssignmentByPolicyResponse.Builder success(Collection<BatchPutPolicyAssignmentSuccess> success) A list of principals that the policy was assigned to.
- Parameters:
success- A list of principals that the policy was assigned to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
success
BatchPutPolicyAssignmentByPolicyResponse.Builder success(BatchPutPolicyAssignmentSuccess... success) A list of principals that the policy was assigned to.
- Parameters:
success- A list of principals that the policy was assigned to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
success
BatchPutPolicyAssignmentByPolicyResponse.Builder success(Consumer<BatchPutPolicyAssignmentSuccess.Builder>... success) A list of principals that the policy was assigned to.
This is a convenience method that creates an instance of theBatchPutPolicyAssignmentSuccess.Builderavoiding the need to create one manually viaBatchPutPolicyAssignmentSuccess.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosuccess(List<BatchPutPolicyAssignmentSuccess>).- Parameters:
success- a consumer that will call methods onBatchPutPolicyAssignmentSuccess.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
BatchPutPolicyAssignmentByPolicyResponse.Builder errors(Collection<BatchPutPolicyAssignmentError> errors) A list of principals that the policy couldn't be assigned to, with the reason for each failure.
- Parameters:
errors- A list of principals that the policy couldn't be assigned to, with the reason for each failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of principals that the policy couldn't be assigned to, with the reason for each failure.
- Parameters:
errors- A list of principals that the policy couldn't be assigned to, with the reason for each failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchPutPolicyAssignmentByPolicyResponse.Builder errors(Consumer<BatchPutPolicyAssignmentError.Builder>... errors) A list of principals that the policy couldn't be assigned to, with the reason for each failure.
This is a convenience method that creates an instance of theBatchPutPolicyAssignmentError.Builderavoiding the need to create one manually viaBatchPutPolicyAssignmentError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<BatchPutPolicyAssignmentError>).- Parameters:
errors- a consumer that will call methods onBatchPutPolicyAssignmentError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-