@Generated(value="software.amazon.awssdk:codegen") public class Statement extends Object implements 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Statement.Builder,Statement>public static Statement.Builder builder()
public static Class<? extends Statement.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.