@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()
If
'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog
resources: |
String |
enableHybridAsString()
If
'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog
resources: |
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()
Do not use.
|
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 final String policyInJson()
Contains the policy document to set, in JSON format.
public final String resourceArn()
Do not use. For internal use only.
public final 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 final 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.
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 does not depend
on the existence of a policy.ExistConditionpublic final 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 does 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 does not depend
on the existence of a policy.ExistConditionpublic final 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'.
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().
'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'.
EnableHybridValuespublic final String enableHybridAsString()
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'.
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().
'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'.
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 final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.