Interface CreateWorkspaceEnforcedPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWorkspaceEnforcedPolicyRequest.Builder,,CreateWorkspaceEnforcedPolicyRequest> SdkBuilder<CreateWorkspaceEnforcedPolicyRequest.Builder,,CreateWorkspaceEnforcedPolicyRequest> SdkPojo,SdkRequest.Builder,WorkSpacesRequest.Builder
- Enclosing class:
CreateWorkspaceEnforcedPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time.The name of the WorkSpace-enforced policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyBody(String policyBody) Specifies the policy document, in JSON format, that defines the enforced policy.tags(Collection<Tag> tags) The tags to add to the WorkSpace-enforced policy.tags(Consumer<Tag.Builder>... tags) The tags to add to the WorkSpace-enforced policy.The tags to add to the WorkSpace-enforced policy.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.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.workspaces.model.WorkSpacesRequest.Builder
build
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another WorkSpace-enforced policy.
If you reuse the token with different parameters, the operation returns
ValidationException. If you deleted the policy created with this token, the operation returnsConflictException.- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another WorkSpace-enforced policy.If you reuse the token with different parameters, the operation returns
ValidationException. If you deleted the policy created with this token, the operation returnsConflictException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the WorkSpace-enforced policy.
- Parameters:
name- The name of the WorkSpace-enforced policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyBody
Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long and can't contain control characters other than tab, line feed, and carriage return.
- Parameters:
policyBody- Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long and can't contain control characters other than tab, line feed, and carriage return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.
- Parameters:
tags- The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.
- Parameters:
tags- The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateWorkspaceEnforcedPolicyRequest.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
CreateWorkspaceEnforcedPolicyRequest.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.
-