@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Action extends Object implements Serializable, Cloneable, StructuredPojo
Defines the modifications that you are making to an attribute for a what-if forecast. For example, you can use this
operation to create a what-if forecast that investigates a 10% off sale on all shoes. To do this, you specify
"AttributeName": "shoes"
, "Operation": "MULTIPLY"
, and "Value": "0.90"
. Pair
this operation with the TimeSeriesCondition operation within the
CreateWhatIfForecastRequest$TimeSeriesTransformations operation to define a subset of attribute items that are
modified.
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeName()
The related time series that you are modifying.
|
String |
getOperation()
The operation that is applied to the provided attribute.
|
Double |
getValue()
The value that is applied for the chosen
Operation . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributeName(String attributeName)
The related time series that you are modifying.
|
void |
setOperation(String operation)
The operation that is applied to the provided attribute.
|
void |
setValue(Double value)
The value that is applied for the chosen
Operation . |
String |
toString()
Returns a string representation of this object.
|
Action |
withAttributeName(String attributeName)
The related time series that you are modifying.
|
Action |
withOperation(Operation operation)
The operation that is applied to the provided attribute.
|
Action |
withOperation(String operation)
The operation that is applied to the provided attribute.
|
Action |
withValue(Double value)
The value that is applied for the chosen
Operation . |
public void setAttributeName(String attributeName)
The related time series that you are modifying. This value is case insensitive.
attributeName
- The related time series that you are modifying. This value is case insensitive.public String getAttributeName()
The related time series that you are modifying. This value is case insensitive.
public Action withAttributeName(String attributeName)
The related time series that you are modifying. This value is case insensitive.
attributeName
- The related time series that you are modifying. This value is case insensitive.public void setOperation(String operation)
The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
operation
- The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
Operation
public String getOperation()
The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
Operation
public Action withOperation(String operation)
The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
operation
- The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
Operation
public Action withOperation(Operation operation)
The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
operation
- The operation that is applied to the provided attribute. Operations include:
ADD
- adds Value
to all rows of AttributeName
.
SUBTRACT
- subtracts Value
from all rows of AttributeName
.
MULTIPLY
- multiplies all rows of AttributeName
by Value
.
DIVIDE
- divides all rows of AttributeName
by Value
.
Operation
public void setValue(Double value)
The value that is applied for the chosen Operation
.
value
- The value that is applied for the chosen Operation
.public Double getValue()
The value that is applied for the chosen Operation
.
Operation
.public Action withValue(Double value)
The value that is applied for the chosen Operation
.
value
- The value that is applied for the chosen Operation
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.