@Generated(value="software.amazon.awssdk:codegen") public final class Statement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Statement.Builder,Statement>
Contains a reference to a Statement element in a policy document that determines the result of the
simulation.
This data type is used by the MatchedStatements member of the EvaluationResult
type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Statement.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Statement.Builder |
builder() |
Position |
endPosition()
The row and column of the end of a
Statement in an IAM policy. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Statement.Builder> |
serializableBuilderClass() |
String |
sourcePolicyId()
The identifier of the policy that was provided as an input.
|
PolicySourceType |
sourcePolicyType()
The type of the policy.
|
String |
sourcePolicyTypeAsString()
The type of the policy.
|
Position |
startPosition()
The row and column of the beginning of the
Statement in an IAM policy. |
Statement.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String sourcePolicyId()
The identifier of the policy that was provided as an input.
public PolicySourceType sourcePolicyType()
The type of the policy.
If the service returns an enum value that is not available in the current SDK version, sourcePolicyType
will return PolicySourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from sourcePolicyTypeAsString().
PolicySourceTypepublic String sourcePolicyTypeAsString()
The type of the policy.
If the service returns an enum value that is not available in the current SDK version, sourcePolicyType
will return PolicySourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from sourcePolicyTypeAsString().
PolicySourceTypepublic Position startPosition()
The row and column of the beginning of the Statement in an IAM policy.
Statement in an IAM policy.public Position endPosition()
The row and column of the end of a Statement in an IAM policy.
Statement in an IAM policy.public Statement.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Statement.Builder,Statement>public static Statement.Builder builder()
public static Class<? extends Statement.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.