@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeSeriesCondition extends Object implements Serializable, Cloneable, StructuredPojo
Creates a subset of items within an attribute that are modified. For example, you can use this operation to create a
subset of items that cost $5 or less. To do this, you specify "AttributeName": "price"
,
"AttributeValue": "5"
, and "Condition": "LESS_THAN"
. Pair this operation with the
Action operation within the CreateWhatIfForecastRequest$TimeSeriesTransformations operation to define
how the attribute is modified.
Constructor and Description |
---|
TimeSeriesCondition() |
Modifier and Type | Method and Description |
---|---|
TimeSeriesCondition |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeName()
The item_id, dimension name, IM name, or timestamp that you are modifying.
|
String |
getAttributeValue()
The value that is applied for the chosen
Condition . |
String |
getCondition()
The condition to apply.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributeName(String attributeName)
The item_id, dimension name, IM name, or timestamp that you are modifying.
|
void |
setAttributeValue(String attributeValue)
The value that is applied for the chosen
Condition . |
void |
setCondition(String condition)
The condition to apply.
|
String |
toString()
Returns a string representation of this object.
|
TimeSeriesCondition |
withAttributeName(String attributeName)
The item_id, dimension name, IM name, or timestamp that you are modifying.
|
TimeSeriesCondition |
withAttributeValue(String attributeValue)
The value that is applied for the chosen
Condition . |
TimeSeriesCondition |
withCondition(Condition condition)
The condition to apply.
|
TimeSeriesCondition |
withCondition(String condition)
The condition to apply.
|
public void setAttributeName(String attributeName)
The item_id, dimension name, IM name, or timestamp that you are modifying.
attributeName
- The item_id, dimension name, IM name, or timestamp that you are modifying.public String getAttributeName()
The item_id, dimension name, IM name, or timestamp that you are modifying.
public TimeSeriesCondition withAttributeName(String attributeName)
The item_id, dimension name, IM name, or timestamp that you are modifying.
attributeName
- The item_id, dimension name, IM name, or timestamp that you are modifying.public void setAttributeValue(String attributeValue)
The value that is applied for the chosen Condition
.
attributeValue
- The value that is applied for the chosen Condition
.public String getAttributeValue()
The value that is applied for the chosen Condition
.
Condition
.public TimeSeriesCondition withAttributeValue(String attributeValue)
The value that is applied for the chosen Condition
.
attributeValue
- The value that is applied for the chosen Condition
.public void setCondition(String condition)
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and
GREATER_THAN
.
condition
- The condition to apply. Valid values are EQUALS
, NOT_EQUALS
,
LESS_THAN
and GREATER_THAN
.Condition
public String getCondition()
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and
GREATER_THAN
.
EQUALS
, NOT_EQUALS
,
LESS_THAN
and GREATER_THAN
.Condition
public TimeSeriesCondition withCondition(String condition)
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and
GREATER_THAN
.
condition
- The condition to apply. Valid values are EQUALS
, NOT_EQUALS
,
LESS_THAN
and GREATER_THAN
.Condition
public TimeSeriesCondition withCondition(Condition condition)
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and
GREATER_THAN
.
condition
- The condition to apply. Valid values are EQUALS
, NOT_EQUALS
,
LESS_THAN
and GREATER_THAN
.Condition
public String toString()
toString
in class Object
Object.toString()
public TimeSeriesCondition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.