@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComponentConditionProperty extends Object implements Serializable, Cloneable, StructuredPojo
Represents a conditional expression to set a component property. Use ComponentConditionProperty
to set a
property to different values conditionally, based on the value of another property.
Constructor and Description |
---|
ComponentConditionProperty() |
Modifier and Type | Method and Description |
---|---|
ComponentConditionProperty |
clone() |
boolean |
equals(Object obj) |
ComponentProperty |
getElse()
The value to assign to the property if the condition is not met.
|
String |
getField()
The name of a field.
|
String |
getOperand()
The value of the property to evaluate.
|
String |
getOperandType()
The type of the property to evaluate.
|
String |
getOperator()
The operator to use to perform the evaluation, such as
eq to represent equals. |
String |
getProperty()
The name of the conditional property.
|
ComponentProperty |
getThen()
The value to assign to the property if the condition is met.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setElse(ComponentProperty elseValue)
The value to assign to the property if the condition is not met.
|
void |
setField(String field)
The name of a field.
|
void |
setOperand(String operand)
The value of the property to evaluate.
|
void |
setOperandType(String operandType)
The type of the property to evaluate.
|
void |
setOperator(String operator)
The operator to use to perform the evaluation, such as
eq to represent equals. |
void |
setProperty(String property)
The name of the conditional property.
|
void |
setThen(ComponentProperty then)
The value to assign to the property if the condition is met.
|
String |
toString()
Returns a string representation of this object.
|
ComponentConditionProperty |
withElse(ComponentProperty elseValue)
The value to assign to the property if the condition is not met.
|
ComponentConditionProperty |
withField(String field)
The name of a field.
|
ComponentConditionProperty |
withOperand(String operand)
The value of the property to evaluate.
|
ComponentConditionProperty |
withOperandType(String operandType)
The type of the property to evaluate.
|
ComponentConditionProperty |
withOperator(String operator)
The operator to use to perform the evaluation, such as
eq to represent equals. |
ComponentConditionProperty |
withProperty(String property)
The name of the conditional property.
|
ComponentConditionProperty |
withThen(ComponentProperty then)
The value to assign to the property if the condition is met.
|
public void setElse(ComponentProperty elseValue)
The value to assign to the property if the condition is not met.
elseValue
- The value to assign to the property if the condition is not met.public ComponentProperty getElse()
The value to assign to the property if the condition is not met.
public ComponentConditionProperty withElse(ComponentProperty elseValue)
The value to assign to the property if the condition is not met.
elseValue
- The value to assign to the property if the condition is not met.public void setField(String field)
The name of a field. Specify this when the property is a data model.
field
- The name of a field. Specify this when the property is a data model.public String getField()
The name of a field. Specify this when the property is a data model.
public ComponentConditionProperty withField(String field)
The name of a field. Specify this when the property is a data model.
field
- The name of a field. Specify this when the property is a data model.public void setOperand(String operand)
The value of the property to evaluate.
operand
- The value of the property to evaluate.public String getOperand()
The value of the property to evaluate.
public ComponentConditionProperty withOperand(String operand)
The value of the property to evaluate.
operand
- The value of the property to evaluate.public void setOperandType(String operandType)
The type of the property to evaluate.
operandType
- The type of the property to evaluate.public String getOperandType()
The type of the property to evaluate.
public ComponentConditionProperty withOperandType(String operandType)
The type of the property to evaluate.
operandType
- The type of the property to evaluate.public void setOperator(String operator)
The operator to use to perform the evaluation, such as eq
to represent equals.
operator
- The operator to use to perform the evaluation, such as eq
to represent equals.public String getOperator()
The operator to use to perform the evaluation, such as eq
to represent equals.
eq
to represent equals.public ComponentConditionProperty withOperator(String operator)
The operator to use to perform the evaluation, such as eq
to represent equals.
operator
- The operator to use to perform the evaluation, such as eq
to represent equals.public void setProperty(String property)
The name of the conditional property.
property
- The name of the conditional property.public String getProperty()
The name of the conditional property.
public ComponentConditionProperty withProperty(String property)
The name of the conditional property.
property
- The name of the conditional property.public void setThen(ComponentProperty then)
The value to assign to the property if the condition is met.
then
- The value to assign to the property if the condition is met.public ComponentProperty getThen()
The value to assign to the property if the condition is met.
public ComponentConditionProperty withThen(ComponentProperty then)
The value to assign to the property if the condition is met.
then
- The value to assign to the property if the condition is met.public String toString()
toString
in class Object
Object.toString()
public ComponentConditionProperty clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.