@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutResourcePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getEnableHybrid()
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.
|
String |
getPolicyExistsCondition()
A value of
MUST_EXIST is used to update a policy. |
String |
getPolicyHashCondition()
The hash value returned when the previous policy was set using
PutResourcePolicy. |
String |
getPolicyInJson()
Contains the policy document to set, in JSON format.
|
String |
getResourceArn()
The ARN of the AWS Glue resource for the resource policy to be set.
|
int |
hashCode() |
void |
setEnableHybrid(String enableHybrid)
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.
|
void |
setPolicyExistsCondition(String policyExistsCondition)
A value of
MUST_EXIST is used to update a policy. |
void |
setPolicyHashCondition(String policyHashCondition)
The hash value returned when the previous policy was set using
PutResourcePolicy. |
void |
setPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
|
void |
setResourceArn(String resourceArn)
The ARN of the AWS Glue resource for the resource policy to be set.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withEnableHybrid(EnableHybridValues enableHybrid)
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.
|
PutResourcePolicyRequest |
withEnableHybrid(String enableHybrid)
Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.
|
PutResourcePolicyRequest |
withPolicyExistsCondition(ExistCondition policyExistsCondition)
A value of
MUST_EXIST is used to update a policy. |
PutResourcePolicyRequest |
withPolicyExistsCondition(String policyExistsCondition)
A value of
MUST_EXIST is used to update a policy. |
PutResourcePolicyRequest |
withPolicyHashCondition(String policyHashCondition)
The hash value returned when the previous policy was set using
PutResourcePolicy. |
PutResourcePolicyRequest |
withPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The ARN of the AWS Glue resource for the resource policy to be set.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
policyInJson - Contains the policy document to set, in JSON format.public String getPolicyInJson()
Contains the policy document to set, in JSON format.
public PutResourcePolicyRequest withPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
policyInJson - Contains the policy document to set, in JSON format.public void setResourceArn(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
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 patternpublic String getResourceArn()
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 PutResourcePolicyRequest withResourceArn(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
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 patternpublic void setPolicyHashCondition(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.
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.public String getPolicyHashCondition()
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 PutResourcePolicyRequest withPolicyHashCondition(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.
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.public void setPolicyExistsCondition(String 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.
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.ExistConditionpublic String getPolicyExistsCondition()
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.
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 PutResourcePolicyRequest withPolicyExistsCondition(String 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.
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.ExistConditionpublic PutResourcePolicyRequest withPolicyExistsCondition(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.
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.ExistConditionpublic void setEnableHybrid(String 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.
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.
EnableHybridValuespublic String getEnableHybrid()
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.
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 withEnableHybrid(String 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.
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.
EnableHybridValuespublic PutResourcePolicyRequest withEnableHybrid(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.
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.
EnableHybridValuespublic String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()