public static interface UpdatePolicyRequest.Builder extends OrganizationsRequest.Builder, CopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>
Modifier and Type | Method and Description |
---|---|
UpdatePolicyRequest.Builder |
content(String content)
If provided, the new content for the policy.
|
UpdatePolicyRequest.Builder |
description(String description)
If provided, the new description for the policy.
|
UpdatePolicyRequest.Builder |
name(String name)
If provided, the new name for the policy.
|
UpdatePolicyRequest.Builder |
policyId(String policyId)
The unique identifier (ID) of the policy that you want to update.
|
UpdatePolicyRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
UpdatePolicyRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
build
requestOverrideConfig
copy
apply, build
UpdatePolicyRequest.Builder policyId(String policyId)
The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
policyId
- The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
UpdatePolicyRequest.Builder name(String name)
If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
UpdatePolicyRequest.Builder description(String description)
If provided, the new description for the policy.
description
- If provided, the new description for the policy.UpdatePolicyRequest.Builder content(String content)
If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see Service Control Policy Syntax in the AWS Organizations User Guide.
content
- If provided, the new content for the policy. The text must be correctly formatted JSON that complies
with the syntax for the policy's type. For more information, see Service Control Policy Syntax in the AWS Organizations User Guide.UpdatePolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.UpdatePolicyRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.