public static interface PutResourcePolicyRequest.Builder extends OrganizationsRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest.Builder |
content(String content)
If provided, the new content for the resource policy.
|
PutResourcePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutResourcePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutResourcePolicyRequest.Builder |
tags(Collection<Tag> tags)
A list of tags that you want to attach to the newly created resource policy.
|
PutResourcePolicyRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of tags that you want to attach to the newly created resource policy.
|
PutResourcePolicyRequest.Builder |
tags(Tag... tags)
A list of tags that you want to attach to the newly created resource policy.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutResourcePolicyRequest.Builder content(String content)
If provided, the new content for the resource policy. The text must be correctly formatted JSON that complies with the syntax for the resource policy's type. For more information, see SCP syntax in the Organizations User Guide.
content - If provided, the new content for the resource policy. The text must be correctly formatted JSON that
complies with the syntax for the resource policy's type. For more information, see SCP
syntax in the Organizations User Guide.PutResourcePolicyRequest.Builder tags(Collection<Tag> tags)
A list of tags that you want to attach to the newly created resource policy. For each tag in the list, you
must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
tags - A list of tags that you want to attach to the newly created resource policy. For each tag in the list,
you must specify both a tag key and a value. You can set the value to an empty string, but you can't
set it to null. For more information about tagging, see Tagging
Organizations resources in the Organizations User Guide. Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
PutResourcePolicyRequest.Builder tags(Tag... tags)
A list of tags that you want to attach to the newly created resource policy. For each tag in the list, you
must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
tags - A list of tags that you want to attach to the newly created resource policy. For each tag in the list,
you must specify both a tag key and a value. You can set the value to an empty string, but you can't
set it to null. For more information about tagging, see Tagging
Organizations resources in the Organizations User Guide. Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
PutResourcePolicyRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags that you want to attach to the newly created resource policy. For each tag in the list, you
must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
Tag.Builder avoiding the need to create one
manually via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.