Class Action
- All Implemented Interfaces:
Serializable
,SdkPojo
,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The related time series that you are modifying.static Action.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Operation
The operation that is applied to the provided attribute.final String
The operation that is applied to the provided attribute.static Class
<? extends Action.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Double
value()
The value that is applied for the chosenOperation
.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
The operation that is applied to the provided attribute. Operations include:
-
ADD
- addsValue
to all rows ofAttributeName
. -
SUBTRACT
- subtractsValue
from all rows ofAttributeName
. -
MULTIPLY
- multiplies all rows ofAttributeName
byValue
. -
DIVIDE
- divides all rows ofAttributeName
byValue
.
If the service returns an enum value that is not available in the current SDK version,
operation
will 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
- addsValue
to all rows ofAttributeName
. -
SUBTRACT
- subtractsValue
from all rows ofAttributeName
. -
MULTIPLY
- multiplies all rows ofAttributeName
byValue
. -
DIVIDE
- divides all rows ofAttributeName
byValue
.
-
- See Also:
-
-
operationAsString
The operation that is applied to the provided attribute. Operations include:
-
ADD
- addsValue
to all rows ofAttributeName
. -
SUBTRACT
- subtractsValue
from all rows ofAttributeName
. -
MULTIPLY
- multiplies all rows ofAttributeName
byValue
. -
DIVIDE
- divides all rows ofAttributeName
byValue
.
If the service returns an enum value that is not available in the current SDK version,
operation
will 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
- addsValue
to all rows ofAttributeName
. -
SUBTRACT
- subtractsValue
from all rows ofAttributeName
. -
MULTIPLY
- multiplies all rows ofAttributeName
byValue
. -
DIVIDE
- divides all rows ofAttributeName
byValue
.
-
- See Also:
-
-
value
The value that is applied for the chosen
Operation
.- Returns:
- The value that is applied for the chosen
Operation
.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Action.Builder,
Action> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-