@Generated(value="software.amazon.awssdk:codegen") public final class UpdatePolicyRequest extends OrganizationsRequest implements ToCopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdatePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdatePolicyRequest.Builder |
builder() |
String |
content()
If provided, the new content for the policy.
|
String |
description()
If provided, the new description for the policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
If provided, the new name for the policy.
|
String |
policyId()
The unique identifier (ID) of the policy that you want to update.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdatePolicyRequest.Builder> |
serializableBuilderClass() |
UpdatePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 lowercase or uppercase letters, digits, or the underscore character (_).
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
public final 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.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public final String description()
If provided, the new description for the policy.
public final 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 SCP syntax in the Organizations User Guide.
public UpdatePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>toBuilder in class OrganizationsRequestpublic static UpdatePolicyRequest.Builder builder()
public static Class<? extends UpdatePolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.