Class PutResourcePolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.glue.model.GlueRequest
-
- software.amazon.awssdk.services.glue.model.PutResourcePolicyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutResourcePolicyRequest extends GlueRequest 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()EnableHybridValuesenableHybrid()If'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog resources:StringenableHybridAsString()If'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog resources:booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ExistConditionpolicyExistsCondition()A value ofMUST_EXISTis used to update a policy.StringpolicyExistsConditionAsString()A value ofMUST_EXISTis used to update a policy.StringpolicyHashCondition()The hash value returned when the previous policy was set usingPutResourcePolicy.StringpolicyInJson()Contains the policy document to set, in JSON format.StringresourceArn()Do not use.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
-
policyInJson
public final String policyInJson()
Contains the policy document to set, in JSON format.
- Returns:
- Contains the policy document to set, in JSON format.
-
resourceArn
public final String resourceArn()
Do not use. For internal use only.
- Returns:
- Do not use. For internal use only.
-
policyHashCondition
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.- Returns:
- 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.
-
policyExistsCondition
public final ExistCondition policyExistsCondition()
A value of
MUST_EXISTis used to update a policy. A value ofNOT_EXISTis used to create a new policy. If a value ofNONEor 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,
policyExistsConditionwill returnExistCondition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyExistsConditionAsString().- Returns:
- A value of
MUST_EXISTis used to update a policy. A value ofNOT_EXISTis used to create a new policy. If a value ofNONEor a null value is used, the call does not depend on the existence of a policy. - See Also:
ExistCondition
-
policyExistsConditionAsString
public final String policyExistsConditionAsString()
A value of
MUST_EXISTis used to update a policy. A value ofNOT_EXISTis used to create a new policy. If a value ofNONEor 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,
policyExistsConditionwill returnExistCondition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyExistsConditionAsString().- Returns:
- A value of
MUST_EXISTis used to update a policy. A value ofNOT_EXISTis used to create a new policy. If a value ofNONEor a null value is used, the call does not depend on the existence of a policy. - See Also:
ExistCondition
-
enableHybrid
public 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,
enableHybridwill returnEnableHybridValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenableHybridAsString().- Returns:
- 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'. -
- See Also:
EnableHybridValues
-
-
enableHybridAsString
public 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,
enableHybridwill returnEnableHybridValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenableHybridAsString().- Returns:
- 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'. -
- See Also:
EnableHybridValues
-
-
toBuilder
public PutResourcePolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>- Specified by:
toBuilderin classGlueRequest
-
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
-
-