public class Statement extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
Statement() |
Modifier and Type | Method and Description |
---|---|
Statement |
clone() |
boolean |
equals(Object obj) |
Position |
getEndPosition()
The row and column of the end of a
Statement in an IAM
policy. |
String |
getSourcePolicyId()
The identifier of the policy that was provided as an input.
|
String |
getSourcePolicyType()
The type of the policy.
|
Position |
getStartPosition()
The row and column of the beginning of the
Statement in
an IAM policy. |
int |
hashCode() |
void |
setEndPosition(Position endPosition)
The row and column of the end of a
Statement in an IAM
policy. |
void |
setSourcePolicyId(String sourcePolicyId)
The identifier of the policy that was provided as an input.
|
void |
setSourcePolicyType(PolicySourceType sourcePolicyType)
The type of the policy.
|
void |
setSourcePolicyType(String sourcePolicyType)
The type of the policy.
|
void |
setStartPosition(Position startPosition)
The row and column of the beginning of the
Statement in
an IAM policy. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Statement |
withEndPosition(Position endPosition)
The row and column of the end of a
Statement in an IAM
policy. |
Statement |
withSourcePolicyId(String sourcePolicyId)
The identifier of the policy that was provided as an input.
|
Statement |
withSourcePolicyType(PolicySourceType sourcePolicyType)
The type of the policy.
|
Statement |
withSourcePolicyType(String sourcePolicyType)
The type of the policy.
|
Statement |
withStartPosition(Position startPosition)
The row and column of the beginning of the
Statement in
an IAM policy. |
public String getSourcePolicyId()
public void setSourcePolicyId(String sourcePolicyId)
sourcePolicyId
- The identifier of the policy that was provided as an input.public Statement withSourcePolicyId(String sourcePolicyId)
Returns a reference to this object so that method calls can be chained together.
sourcePolicyId
- The identifier of the policy that was provided as an input.public String getSourcePolicyType()
Constraints:
Allowed Values: user, group, role, aws-managed, user-managed, none
PolicySourceType
public void setSourcePolicyType(String sourcePolicyType)
Constraints:
Allowed Values: user, group, role, aws-managed, user-managed, none
sourcePolicyType
- The type of the policy.PolicySourceType
public Statement withSourcePolicyType(String sourcePolicyType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: user, group, role, aws-managed, user-managed, none
sourcePolicyType
- The type of the policy.PolicySourceType
public void setSourcePolicyType(PolicySourceType sourcePolicyType)
Constraints:
Allowed Values: user, group, role, aws-managed, user-managed, none
sourcePolicyType
- The type of the policy.PolicySourceType
public Statement withSourcePolicyType(PolicySourceType sourcePolicyType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: user, group, role, aws-managed, user-managed, none
sourcePolicyType
- The type of the policy.PolicySourceType
public Position getStartPosition()
Statement
in
an IAM policy.Statement
in
an IAM policy.public void setStartPosition(Position startPosition)
Statement
in
an IAM policy.startPosition
- The row and column of the beginning of the Statement
in
an IAM policy.public Statement withStartPosition(Position startPosition)
Statement
in
an IAM policy.
Returns a reference to this object so that method calls can be chained together.
startPosition
- The row and column of the beginning of the Statement
in
an IAM policy.public Position getEndPosition()
Statement
in an IAM
policy.Statement
in an IAM
policy.public void setEndPosition(Position endPosition)
Statement
in an IAM
policy.endPosition
- The row and column of the end of a Statement
in an IAM
policy.public Statement withEndPosition(Position endPosition)
Statement
in an IAM
policy.
Returns a reference to this object so that method calls can be chained together.
endPosition
- The row and column of the end of a Statement
in an IAM
policy.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.