Class TimeSeriesCondition
- java.lang.Object
-
- software.amazon.awssdk.services.forecast.model.TimeSeriesCondition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TimeSeriesCondition.Builder,TimeSeriesCondition>
@Generated("software.amazon.awssdk:codegen") public final class TimeSeriesCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TimeSeriesCondition.Builder,TimeSeriesCondition>
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTimeSeriesCondition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringattributeName()The item_id, dimension name, IM name, or timestamp that you are modifying.StringattributeValue()The value that is applied for the chosenCondition.static TimeSeriesCondition.Builderbuilder()Conditioncondition()The condition to apply.StringconditionAsString()The condition to apply.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TimeSeriesCondition.Builder>serializableBuilderClass()TimeSeriesCondition.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 item_id, dimension name, IM name, or timestamp that you are modifying.
- Returns:
- The item_id, dimension name, IM name, or timestamp that you are modifying.
-
attributeValue
public final String attributeValue()
The value that is applied for the chosen
Condition.- Returns:
- The value that is applied for the chosen
Condition.
-
condition
public final Condition condition()
The condition to apply. Valid values are
EQUALS,NOT_EQUALS,LESS_THANandGREATER_THAN.If the service returns an enum value that is not available in the current SDK version,
conditionwill returnCondition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconditionAsString().- Returns:
- The condition to apply. Valid values are
EQUALS,NOT_EQUALS,LESS_THANandGREATER_THAN. - See Also:
Condition
-
conditionAsString
public final String conditionAsString()
The condition to apply. Valid values are
EQUALS,NOT_EQUALS,LESS_THANandGREATER_THAN.If the service returns an enum value that is not available in the current SDK version,
conditionwill returnCondition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconditionAsString().- Returns:
- The condition to apply. Valid values are
EQUALS,NOT_EQUALS,LESS_THANandGREATER_THAN. - See Also:
Condition
-
toBuilder
public TimeSeriesCondition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TimeSeriesCondition.Builder,TimeSeriesCondition>
-
builder
public static TimeSeriesCondition.Builder builder()
-
serializableBuilderClass
public static Class<? extends TimeSeriesCondition.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-