@Generated(value="software.amazon.awssdk:codegen") public final class Action extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Action.Builder,Action>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Action.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
attributeName()
The related time series that you are modifying.
|
static Action.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Operation |
operation()
The operation that is applied to the provided attribute.
|
String |
operationAsString()
The operation that is applied to the provided attribute.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Action.Builder> |
serializableBuilderClass() |
Action.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
value()
The value that is applied for the chosen
Operation. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String attributeName()
The related time series that you are modifying. This value is case insensitive.
public final 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.
If the service returns an enum value that is not available in the current SDK version, operation will
return Operation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
operationAsString().
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.
Operationpublic final String operationAsString()
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.
If the service returns an enum value that is not available in the current SDK version, operation will
return Operation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
operationAsString().
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.
Operationpublic final Double value()
The value that is applied for the chosen Operation.
Operation.public Action.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Action.Builder,Action>public static Action.Builder builder()
public static Class<? extends Action.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.