Class Statement
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.Statement
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Statement extends Object implements Serializable, Cloneable
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
-
-
Constructor Summary
Constructors Constructor Description Statement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statementclone()booleanequals(Object obj)PositiongetEndPosition()The row and column of the end of aStatementin an IAM policy.StringgetSourcePolicyId()The identifier of the policy that was provided as an input.StringgetSourcePolicyType()The type of the policy.PositiongetStartPosition()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.StringtoString()Returns a string representation of this object; useful for testing and debugging.StatementwithEndPosition(Position endPosition)The row and column of the end of aStatementin an IAM policy.StatementwithSourcePolicyId(String sourcePolicyId)The identifier of the policy that was provided as an input.StatementwithSourcePolicyType(PolicySourceType sourcePolicyType)The type of the policy.StatementwithSourcePolicyType(String sourcePolicyType)The type of the policy.StatementwithStartPosition(Position startPosition)The row and column of the beginning of theStatementin an IAM policy.
-
-
-
Method Detail
-
setSourcePolicyId
public void setSourcePolicyId(String sourcePolicyId)
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
public String 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
public Statement withSourcePolicyId(String sourcePolicyId)
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
public void setSourcePolicyType(String sourcePolicyType)
The type of the policy.
- Parameters:
sourcePolicyType- The type of the policy.- See Also:
PolicySourceType
-
getSourcePolicyType
public String getSourcePolicyType()
The type of the policy.
- Returns:
- The type of the policy.
- See Also:
PolicySourceType
-
withSourcePolicyType
public Statement withSourcePolicyType(String sourcePolicyType)
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:
PolicySourceType
-
setSourcePolicyType
public void setSourcePolicyType(PolicySourceType sourcePolicyType)
The type of the policy.
- Parameters:
sourcePolicyType- The type of the policy.- See Also:
PolicySourceType
-
withSourcePolicyType
public Statement withSourcePolicyType(PolicySourceType sourcePolicyType)
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:
PolicySourceType
-
setStartPosition
public void setStartPosition(Position startPosition)
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
public Position 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
public Statement withStartPosition(Position startPosition)
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
public void setEndPosition(Position endPosition)
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
public Position 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
public Statement withEndPosition(Position endPosition)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-