Class AddPolicyStatementRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.entityresolution.model.EntityResolutionRequest
-
- software.amazon.awssdk.services.entityresolution.model.AddPolicyStatementRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AddPolicyStatementRequest.Builder,AddPolicyStatementRequest>
@Generated("software.amazon.awssdk:codegen") public final class AddPolicyStatementRequest extends EntityResolutionRequest implements ToCopyableBuilder<AddPolicyStatementRequest.Builder,AddPolicyStatementRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddPolicyStatementRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>action()The action that the principal can use on the resource.Stringarn()The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.static AddPolicyStatementRequest.Builderbuilder()Stringcondition()A set of condition keys that you can use in key policies.StatementEffecteffect()Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).StringeffectAsString()Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAction()For responses, this returns true if the service returned a value for the Action property.inthashCode()booleanhasPrincipal()For responses, this returns true if the service returned a value for the Principal property.List<String>principal()The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AddPolicyStatementRequest.Builder>serializableBuilderClass()StringstatementId()A statement identifier that differentiates the statement from others in the same policy.AddPolicyStatementRequest.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
-
hasAction
public final boolean hasAction()
For responses, this returns true if the service returned a value for the Action property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
action
public final List<String> action()
The action that the principal can use on the resource.
For example,
entityresolution:GetIdMappingJob,entityresolution:GetMatchingJob.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAction()method.- Returns:
- The action that the principal can use on the resource.
For example,
entityresolution:GetIdMappingJob,entityresolution:GetMatchingJob.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
- Returns:
- The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
-
condition
public final String condition()
A set of condition keys that you can use in key policies.
- Returns:
- A set of condition keys that you can use in key policies.
-
effect
public final StatementEffect effect()
Determines whether the permissions specified in the policy are to be allowed (
Allow) or denied (Deny).If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation.If the service returns an enum value that is not available in the current SDK version,
effectwill returnStatementEffect.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeffectAsString().- Returns:
- Determines whether the permissions specified in the policy are to be allowed (
Allow) or denied (Deny).If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation. - See Also:
StatementEffect
-
effectAsString
public final String effectAsString()
Determines whether the permissions specified in the policy are to be allowed (
Allow) or denied (Deny).If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation.If the service returns an enum value that is not available in the current SDK version,
effectwill returnStatementEffect.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeffectAsString().- Returns:
- Determines whether the permissions specified in the policy are to be allowed (
Allow) or denied (Deny).If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation. - See Also:
StatementEffect
-
hasPrincipal
public final boolean hasPrincipal()
For responses, this returns true if the service returned a value for the Principal property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
principal
public final List<String> principal()
The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPrincipal()method.- Returns:
- The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
-
statementId
public final String statementId()
A statement identifier that differentiates the statement from others in the same policy.
- Returns:
- A statement identifier that differentiates the statement from others in the same policy.
-
toBuilder
public AddPolicyStatementRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AddPolicyStatementRequest.Builder,AddPolicyStatementRequest>- Specified by:
toBuilderin classEntityResolutionRequest
-
builder
public static AddPolicyStatementRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AddPolicyStatementRequest.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
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-