@Generated(value="software.amazon.awssdk:codegen") public final class PutResourcePolicyRequest extends GlueRequest implements ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutResourcePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutResourcePolicyRequest.Builder |
builder() |
EnableHybridValues |
enableHybrid()
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.
|
String |
enableHybridAsString()
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ExistCondition |
policyExistsCondition()
A value of
MUST_EXIST is used to update a policy. |
String |
policyExistsConditionAsString()
A value of
MUST_EXIST is used to update a policy. |
String |
policyHashCondition()
The hash value returned when the previous policy was set using
PutResourcePolicy. |
String |
policyInJson()
Contains the policy document to set, in JSON format.
|
String |
resourceArn()
The ARN of the AWS Glue resource for the resource policy to be set.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutResourcePolicyRequest.Builder> |
serializableBuilderClass() |
PutResourcePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String policyInJson()
Contains the policy document to set, in JSON format.
public String resourceArn()
The ARN of the AWS Glue resource for the resource policy to be set. For more information about AWS Glue resource ARNs, see the AWS Glue ARN string pattern
public String policyHashCondition()
The hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to
prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.
PutResourcePolicy. Its
purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous
policy has been set.public ExistCondition policyExistsCondition()
A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to
create a new policy. If a value of NONE or a null value is used, the call will not depend on the
existence of a policy.
If the service returns an enum value that is not available in the current SDK version,
policyExistsCondition will return ExistCondition.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from policyExistsConditionAsString().
MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
to create a new policy. If a value of NONE or a null value is used, the call will not depend
on the existence of a policy.ExistConditionpublic String policyExistsConditionAsString()
A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to
create a new policy. If a value of NONE or a null value is used, the call will not depend on the
existence of a policy.
If the service returns an enum value that is not available in the current SDK version,
policyExistsCondition will return ExistCondition.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from policyExistsConditionAsString().
MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
to create a new policy. If a value of NONE or a null value is used, the call will not depend
on the existence of a policy.ExistConditionpublic EnableHybridValues enableHybrid()
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies. A resource-level policy is a policy attached to an individual resource such as a database or a table.
The default value of NO indicates that resource-level policies cannot co-exist with an account-level
policy. A value of YES means the use of both resource-level and account/catalog-level resource
policies is allowed.
If the service returns an enum value that is not available in the current SDK version, enableHybrid will
return EnableHybridValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
enableHybridAsString().
The default value of NO indicates that resource-level policies cannot co-exist with an
account-level policy. A value of YES means the use of both resource-level and
account/catalog-level resource policies is allowed.
EnableHybridValuespublic String enableHybridAsString()
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies. A resource-level policy is a policy attached to an individual resource such as a database or a table.
The default value of NO indicates that resource-level policies cannot co-exist with an account-level
policy. A value of YES means the use of both resource-level and account/catalog-level resource
policies is allowed.
If the service returns an enum value that is not available in the current SDK version, enableHybrid will
return EnableHybridValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
enableHybridAsString().
The default value of NO indicates that resource-level policies cannot co-exist with an
account-level policy. A value of YES means the use of both resource-level and
account/catalog-level resource policies is allowed.
EnableHybridValuespublic PutResourcePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>toBuilder in class GlueRequestpublic static PutResourcePolicyRequest.Builder builder()
public static Class<? extends PutResourcePolicyRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.