@Generated(value="software.amazon.awssdk:codegen") public final class UpdatePolicyRequest extends VerifiedPermissionsRequest 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() |
UpdatePolicyDefinition |
definition()
Specifies the updated policy content that you want to replace on the specified policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyId()
Specifies the ID of the policy that you want to update.
|
String |
policyStoreId()
Specifies the ID of the policy store that contains 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 policyStoreId()
Specifies the ID of the policy store that contains the policy that you want to update.
public final String policyId()
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
public final UpdatePolicyDefinition definition()
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
The action referenced by the policy.
Any conditional clauses, such as when or unless clauses.
You can't change the following elements:
Changing from static to templateLinked.
Changing the effect of the policy from permit or forbid.
The principal referenced by the policy.
The resource referenced by the policy.
You can change only the following elements from the policy definition:
The action referenced by the policy.
Any conditional clauses, such as when or unless clauses.
You can't change the following elements:
Changing from static to templateLinked.
Changing the effect of the policy from permit or forbid.
The principal referenced by the policy.
The resource referenced by the policy.
public UpdatePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>toBuilder in class VerifiedPermissionsRequestpublic 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.