Interface PutProjectPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutProjectPolicyRequest.Builder,,PutProjectPolicyRequest> RekognitionRequest.Builder,SdkBuilder<PutProjectPolicyRequest.Builder,,PutProjectPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutProjectPolicyRequest
public static interface PutProjectPolicyRequest.Builder
extends RekognitionRequest.Builder, SdkPojo, CopyableBuilder<PutProjectPolicyRequest.Builder,PutProjectPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyDocument(String policyDocument) A resource policy to add to the model.policyName(String policyName) A name for the policy.policyRevisionId(String policyRevisionId) The revision ID for the Project Policy.projectArn(String projectArn) The Amazon Resource Name (ARN) of the project that the project policy is attached to.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.rekognition.model.RekognitionRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
projectArn
The Amazon Resource Name (ARN) of the project that the project policy is attached to.
- Parameters:
projectArn- The Amazon Resource Name (ARN) of the project that the project policy is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyName
A name for the policy.
- Parameters:
policyName- A name for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyRevisionId
The revision ID for the Project Policy. Each time you modify a policy, Amazon Rekognition Custom Labels generates and assigns a new
PolicyRevisionIdand then deletes the previous version of the policy.- Parameters:
policyRevisionId- The revision ID for the Project Policy. Each time you modify a policy, Amazon Rekognition Custom Labels generates and assigns a newPolicyRevisionIdand then deletes the previous version of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
A resource policy to add to the model. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference.
- Parameters:
policyDocument- A resource policy to add to the model. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutProjectPolicyRequest.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
PutProjectPolicyRequest.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.
-