Class UpdatePolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsRequest
-
- software.amazon.awssdk.services.verifiedpermissions.model.UpdatePolicyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdatePolicyRequest extends VerifiedPermissionsRequest implements ToCopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdatePolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdatePolicyRequest.Builderbuilder()UpdatePolicyDefinitiondefinition()Specifies the updated policy content that you want to replace on the specified policy.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyId()Specifies the ID of the policy that you want to update.StringpolicyStoreId()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyStoreId
public final String policyStoreId()
Specifies the ID of the policy store that contains the policy that you want to update.
- Returns:
- Specifies the ID of the policy store that contains the policy that you want to update.
-
policyId
public final String policyId()
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
- Returns:
- Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
-
definition
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
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
- Returns:
- 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
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
-
-
-
toBuilder
public UpdatePolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>- Specified by:
toBuilderin classVerifiedPermissionsRequest
-
builder
public static UpdatePolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdatePolicyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-