Class Action
- java.lang.Object
-
- software.amazon.awssdk.services.forecast.model.Action
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Action.Builder,Action>
@Generated("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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringattributeName()The related time series that you are modifying.static Action.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Operationoperation()The operation that is applied to the provided attribute.StringoperationAsString()The operation that is applied to the provided attribute.List<SdkField<?>>sdkFields()static Class<? extends Action.Builder>serializableBuilderClass()Action.BuildertoBuilder()StringtoString()Returns a string representation of this object.Doublevalue()The value that is applied for the chosenOperation.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
attributeName
public final String attributeName()
The related time series that you are modifying. This value is case insensitive.
- Returns:
- The related time series that you are modifying. This value is case insensitive.
-
operation
public final Operation operation()
The operation that is applied to the provided attribute. Operations include:
-
ADD- addsValueto all rows ofAttributeName. -
SUBTRACT- subtractsValuefrom all rows ofAttributeName. -
MULTIPLY- multiplies all rows ofAttributeNamebyValue. -
DIVIDE- divides all rows ofAttributeNamebyValue.
If the service returns an enum value that is not available in the current SDK version,
operationwill returnOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationAsString().- Returns:
- The operation that is applied to the provided attribute. Operations include:
-
ADD- addsValueto all rows ofAttributeName. -
SUBTRACT- subtractsValuefrom all rows ofAttributeName. -
MULTIPLY- multiplies all rows ofAttributeNamebyValue. -
DIVIDE- divides all rows ofAttributeNamebyValue.
-
- See Also:
Operation
-
-
operationAsString
public final String operationAsString()
The operation that is applied to the provided attribute. Operations include:
-
ADD- addsValueto all rows ofAttributeName. -
SUBTRACT- subtractsValuefrom all rows ofAttributeName. -
MULTIPLY- multiplies all rows ofAttributeNamebyValue. -
DIVIDE- divides all rows ofAttributeNamebyValue.
If the service returns an enum value that is not available in the current SDK version,
operationwill returnOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationAsString().- Returns:
- The operation that is applied to the provided attribute. Operations include:
-
ADD- addsValueto all rows ofAttributeName. -
SUBTRACT- subtractsValuefrom all rows ofAttributeName. -
MULTIPLY- multiplies all rows ofAttributeNamebyValue. -
DIVIDE- divides all rows ofAttributeNamebyValue.
-
- See Also:
Operation
-
-
value
public final Double value()
The value that is applied for the chosen
Operation.- Returns:
- The value that is applied for the chosen
Operation.
-
toBuilder
public Action.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Action.Builder,Action>
-
builder
public static Action.Builder builder()
-
serializableBuilderClass
public static Class<? extends Action.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-