Class PutResourcePolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.xray.model.XRayRequest
-
- software.amazon.awssdk.services.xray.model.PutResourcePolicyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutResourcePolicyRequest extends XRayRequest implements ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutResourcePolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutResourcePolicyRequest.Builderbuilder()BooleanbypassPolicyLockoutCheck()A flag to indicate whether to bypass the resource policy lockout safety check.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyDocument()The resource policy document, which can be up to 5kb in size.StringpolicyName()The name of the resource policy.StringpolicyRevisionId()Specifies a specific policy revision, to ensure an atomic create operation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PutResourcePolicyRequest.Builder>serializableBuilderClass()PutResourcePolicyRequest.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
-
policyName
public final String policyName()
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
- Returns:
- The name of the resource policy. Must be unique within a specific Amazon Web Services account.
-
policyDocument
public final String policyDocument()
The resource policy document, which can be up to 5kb in size.
- Returns:
- The resource policy document, which can be up to 5kb in size.
-
policyRevisionId
public final String policyRevisionId()
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdExceptionexception. You can also provide aPolicyRevisionIdof 0. In this case, the operation will fail with anInvalidPolicyRevisionIdExceptionexception if a resource policy with the same name already exists.- Returns:
- Specifies a specific policy revision, to ensure an atomic create operation. By default the resource
policy is created if it does not exist, or updated with an incremented revision id. The revision id is
unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdExceptionexception. You can also provide aPolicyRevisionIdof 0. In this case, the operation will fail with anInvalidPolicyRevisionIdExceptionexception if a resource policy with the same name already exists.
-
bypassPolicyLockoutCheck
public final Boolean bypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent
PutResourcePolicyrequest.The default value is false.
- Returns:
- A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent
PutResourcePolicyrequest.The default value is false.
-
toBuilder
public PutResourcePolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>- Specified by:
toBuilderin classXRayRequest
-
builder
public static PutResourcePolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutResourcePolicyRequest.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
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-