Class Statement
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe row and column of the end of aStatementin an IAM policy.The identifier of the policy that was provided as an input.The type of the policy.The row and column of the beginning of theStatementin an IAM policy.inthashCode()voidsetEndPosition(Position endPosition) The row and column of the end of aStatementin an IAM policy.voidsetSourcePolicyId(String sourcePolicyId) The identifier of the policy that was provided as an input.voidsetSourcePolicyType(PolicySourceType sourcePolicyType) The type of the policy.voidsetSourcePolicyType(String sourcePolicyType) The type of the policy.voidsetStartPosition(Position startPosition) The row and column of the beginning of theStatementin an IAM policy.toString()Returns a string representation of this object; useful for testing and debugging.withEndPosition(Position endPosition) The row and column of the end of aStatementin an IAM policy.withSourcePolicyId(String sourcePolicyId) The identifier of the policy that was provided as an input.withSourcePolicyType(PolicySourceType sourcePolicyType) The type of the policy.withSourcePolicyType(String sourcePolicyType) The type of the policy.withStartPosition(Position startPosition) The row and column of the beginning of theStatementin an IAM policy.
-
Constructor Details
-
Statement
public Statement()
-
-
Method Details
-
setSourcePolicyId
The identifier of the policy that was provided as an input.
- Parameters:
sourcePolicyId- The identifier of the policy that was provided as an input.
-
getSourcePolicyId
The identifier of the policy that was provided as an input.
- Returns:
- The identifier of the policy that was provided as an input.
-
withSourcePolicyId
The identifier of the policy that was provided as an input.
- Parameters:
sourcePolicyId- The identifier of the policy that was provided as an input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourcePolicyType
The type of the policy.
- Parameters:
sourcePolicyType- The type of the policy.- See Also:
-
getSourcePolicyType
The type of the policy.
- Returns:
- The type of the policy.
- See Also:
-
withSourcePolicyType
The type of the policy.
- Parameters:
sourcePolicyType- The type of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setSourcePolicyType
The type of the policy.
- Parameters:
sourcePolicyType- The type of the policy.- See Also:
-
withSourcePolicyType
The type of the policy.
- Parameters:
sourcePolicyType- The type of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStartPosition
The row and column of the beginning of the
Statementin an IAM policy.- Parameters:
startPosition- The row and column of the beginning of theStatementin an IAM policy.
-
getStartPosition
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.
-
withStartPosition
The row and column of the beginning of the
Statementin an IAM policy.- Parameters:
startPosition- The row and column of the beginning of theStatementin an IAM policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndPosition
The row and column of the end of a
Statementin an IAM policy.- Parameters:
endPosition- The row and column of the end of aStatementin an IAM policy.
-
getEndPosition
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.
-
withEndPosition
The row and column of the end of a
Statementin an IAM policy.- Parameters:
endPosition- The row and column of the end of aStatementin an IAM policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-