@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AndStatement extends Object implements Serializable, Cloneable, StructuredPojo
A logical rule statement used to combine other rule statements with AND logic. You provide more than one
Statement within the AndStatement
.
Constructor and Description |
---|
AndStatement() |
Modifier and Type | Method and Description |
---|---|
AndStatement |
clone() |
boolean |
equals(Object obj) |
List<Statement> |
getStatements()
The statements to combine with AND logic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStatements(Collection<Statement> statements)
The statements to combine with AND logic.
|
String |
toString()
Returns a string representation of this object.
|
AndStatement |
withStatements(Collection<Statement> statements)
The statements to combine with AND logic.
|
AndStatement |
withStatements(Statement... statements)
The statements to combine with AND logic.
|
public List<Statement> getStatements()
The statements to combine with AND logic. You can use any statements that can be nested.
public void setStatements(Collection<Statement> statements)
The statements to combine with AND logic. You can use any statements that can be nested.
statements
- The statements to combine with AND logic. You can use any statements that can be nested.public AndStatement withStatements(Statement... statements)
The statements to combine with AND logic. You can use any statements that can be nested.
NOTE: This method appends the values to the existing list (if any). Use
setStatements(java.util.Collection)
or withStatements(java.util.Collection)
if you want to
override the existing values.
statements
- The statements to combine with AND logic. You can use any statements that can be nested.public AndStatement withStatements(Collection<Statement> statements)
The statements to combine with AND logic. You can use any statements that can be nested.
statements
- The statements to combine with AND logic. You can use any statements that can be nested.public String toString()
toString
in class Object
Object.toString()
public AndStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.