Class Statement
- java.lang.Object
-
- software.amazon.awssdk.services.iam.model.Statement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Statement.Builder,Statement>
@Generated("software.amazon.awssdk:codegen") public final class Statement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Statement.Builder,Statement>
Contains a reference to a
Statementelement in a policy document that determines the result of the simulation.This data type is used by the
MatchedStatementsmember of theEvaluationResulttype.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStatement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Statement.Builderbuilder()PositionendPosition()The row and column of the end of aStatementin an IAM policy.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Statement.Builder>serializableBuilderClass()StringsourcePolicyId()The identifier of the policy that was provided as an input.PolicySourceTypesourcePolicyType()The type of the policy.StringsourcePolicyTypeAsString()The type of the policy.PositionstartPosition()The row and column of the beginning of theStatementin an IAM policy.Statement.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
sourcePolicyId
public final String sourcePolicyId()
The identifier of the policy that was provided as an input.
- Returns:
- The identifier of the policy that was provided as an input.
-
sourcePolicyType
public final PolicySourceType sourcePolicyType()
The type of the policy.
If the service returns an enum value that is not available in the current SDK version,
sourcePolicyTypewill returnPolicySourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourcePolicyTypeAsString().- Returns:
- The type of the policy.
- See Also:
PolicySourceType
-
sourcePolicyTypeAsString
public final String sourcePolicyTypeAsString()
The type of the policy.
If the service returns an enum value that is not available in the current SDK version,
sourcePolicyTypewill returnPolicySourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourcePolicyTypeAsString().- Returns:
- The type of the policy.
- See Also:
PolicySourceType
-
startPosition
public final Position startPosition()
The row and column of the beginning of the
Statementin an IAM policy.- Returns:
- The row and column of the beginning of the
Statementin an IAM policy.
-
endPosition
public final Position endPosition()
The row and column of the end of a
Statementin an IAM policy.- Returns:
- The row and column of the end of a
Statementin an IAM policy.
-
toBuilder
public Statement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Statement.Builder,Statement>
-
builder
public static Statement.Builder builder()
-
serializableBuilderClass
public static Class<? extends Statement.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-