Class PeriodToDateComputation
- java.lang.Object
-
- software.amazon.awssdk.services.quicksight.model.PeriodToDateComputation
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<PeriodToDateComputation.Builder,PeriodToDateComputation>
@Generated("software.amazon.awssdk:codegen") public final class PeriodToDateComputation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PeriodToDateComputation.Builder,PeriodToDateComputation>
The period to date computation configuration.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PeriodToDateComputation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeriodToDateComputation.Builder
builder()
String
computationId()
The ID for a computation.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
name()
The name of a computation.TimeGranularity
periodTimeGranularity()
The time granularity setup of period to date computation.String
periodTimeGranularityAsString()
The time granularity setup of period to date computation.List<SdkField<?>>
sdkFields()
static Class<? extends PeriodToDateComputation.Builder>
serializableBuilderClass()
DimensionField
time()
The time field that is used in a computation.PeriodToDateComputation.Builder
toBuilder()
String
toString()
Returns a string representation of this object.MeasureField
value()
The value field that is used in a computation.-
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
-
computationId
public final String computationId()
The ID for a computation.
- Returns:
- The ID for a computation.
-
name
public final String name()
The name of a computation.
- Returns:
- The name of a computation.
-
time
public final DimensionField time()
The time field that is used in a computation.
- Returns:
- The time field that is used in a computation.
-
value
public final MeasureField value()
The value field that is used in a computation.
- Returns:
- The value field that is used in a computation.
-
periodTimeGranularity
public final TimeGranularity periodTimeGranularity()
The time granularity setup of period to date computation. Choose from the following options:
-
YEAR: Year to date.
-
MONTH: Month to date.
If the service returns an enum value that is not available in the current SDK version,
periodTimeGranularity
will returnTimeGranularity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromperiodTimeGranularityAsString()
.- Returns:
- The time granularity setup of period to date computation. Choose from the following options:
-
YEAR: Year to date.
-
MONTH: Month to date.
-
- See Also:
TimeGranularity
-
-
periodTimeGranularityAsString
public final String periodTimeGranularityAsString()
The time granularity setup of period to date computation. Choose from the following options:
-
YEAR: Year to date.
-
MONTH: Month to date.
If the service returns an enum value that is not available in the current SDK version,
periodTimeGranularity
will returnTimeGranularity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromperiodTimeGranularityAsString()
.- Returns:
- The time granularity setup of period to date computation. Choose from the following options:
-
YEAR: Year to date.
-
MONTH: Month to date.
-
- See Also:
TimeGranularity
-
-
toBuilder
public PeriodToDateComputation.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<PeriodToDateComputation.Builder,PeriodToDateComputation>
-
builder
public static PeriodToDateComputation.Builder builder()
-
serializableBuilderClass
public static Class<? extends PeriodToDateComputation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-