Class UpdatePolicyTemplateRequest
- 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.UpdatePolicyTemplateRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdatePolicyTemplateRequest.Builder,UpdatePolicyTemplateRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdatePolicyTemplateRequest extends VerifiedPermissionsRequest implements ToCopyableBuilder<UpdatePolicyTemplateRequest.Builder,UpdatePolicyTemplateRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdatePolicyTemplateRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdatePolicyTemplateRequest.Builderbuilder()Stringdescription()Specifies a new description to apply to the policy template.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyStoreId()Specifies the ID of the policy store that contains the policy template that you want to update.StringpolicyTemplateId()Specifies the ID of the policy template that you want to update.List<SdkField<?>>sdkFields()static Class<? extends UpdatePolicyTemplateRequest.Builder>serializableBuilderClass()Stringstatement()Specifies new statement content written in Cedar policy language to replace the current body of the policy template.UpdatePolicyTemplateRequest.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 template that you want to update.
- Returns:
- Specifies the ID of the policy store that contains the policy template that you want to update.
-
policyTemplateId
public final String policyTemplateId()
Specifies the ID of the policy template that you want to update.
- Returns:
- Specifies the ID of the policy template that you want to update.
-
description
public final String description()
Specifies a new description to apply to the policy template.
- Returns:
- Specifies a new description to apply to the policy template.
-
statement
public final String statement()
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
- Returns:
- Specifies new statement content written in Cedar policy language to replace the current body of the
policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
-
-
-
toBuilder
public UpdatePolicyTemplateRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdatePolicyTemplateRequest.Builder,UpdatePolicyTemplateRequest>- Specified by:
toBuilderin classVerifiedPermissionsRequest
-
builder
public static UpdatePolicyTemplateRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdatePolicyTemplateRequest.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
-
-