@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()
If
'TRUE' , indicates that you are using both methods to grant cross-account access to Data Catalog
resources: |
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()
Do not use.
|
int |
hashCode() |
void |
setEnableHybrid(String enableHybrid)
If
'TRUE' , indicates that you are using both methods to grant cross-account access to Data Catalog
resources: |
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)
Do not use.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withEnableHybrid(EnableHybridValues enableHybrid)
If
'TRUE' , indicates that you are using both methods to grant cross-account access to Data Catalog
resources: |
PutResourcePolicyRequest |
withEnableHybrid(String enableHybrid)
If
'TRUE' , indicates that you are using both methods to grant cross-account access to Data Catalog
resources: |
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)
Do not use.
|
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, withSdkRequestTimeout
public 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)
Do not use. For internal use only.
resourceArn
- Do not use. For internal use only.public String getResourceArn()
Do not use. For internal use only.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
Do not use. For internal use only.
resourceArn
- Do not use. For internal use only.public 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 does 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 does not depend
on the existence of a policy.ExistCondition
public 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 does 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 does not depend
on the existence of a policy.ExistCondition
public 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 does 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 does not depend
on the existence of a policy.ExistCondition
public 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 does 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 does not depend
on the existence of a policy.ExistCondition
public void setEnableHybrid(String enableHybrid)
If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog
resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account access,
otherwise the call fails. Default is 'FALSE'.
enableHybrid
- If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data
Catalog resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account
access, otherwise the call fails. Default is 'FALSE'.
EnableHybridValues
public String getEnableHybrid()
If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog
resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account access,
otherwise the call fails. Default is 'FALSE'.
'TRUE'
, indicates that you are using both methods to grant cross-account access to Data
Catalog resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account
access, otherwise the call fails. Default is 'FALSE'.
EnableHybridValues
public PutResourcePolicyRequest withEnableHybrid(String enableHybrid)
If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog
resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account access,
otherwise the call fails. Default is 'FALSE'.
enableHybrid
- If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data
Catalog resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account
access, otherwise the call fails. Default is 'FALSE'.
EnableHybridValues
public PutResourcePolicyRequest withEnableHybrid(EnableHybridValues enableHybrid)
If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog
resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account access,
otherwise the call fails. Default is 'FALSE'.
enableHybrid
- If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data
Catalog resources:
By directly updating the resource policy with PutResourePolicy
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account
access, otherwise the call fails. Default is 'FALSE'.
EnableHybridValues
public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()