Class HistoricalOptions
- java.lang.Object
-
- software.amazon.awssdk.services.budgets.model.HistoricalOptions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HistoricalOptions.Builder,HistoricalOptions>
@Generated("software.amazon.awssdk:codegen") public final class HistoricalOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HistoricalOptions.Builder,HistoricalOptions>
The parameters that define or describe the historical data that your auto-adjusting budget is based on.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHistoricalOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerbudgetAdjustmentPeriod()The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount.static HistoricalOptions.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerlookBackAvailablePeriods()The integer that describes how many budget periods in yourBudgetAdjustmentPeriodare included in the calculation of your currentBudgetLimit.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends HistoricalOptions.Builder>serializableBuilderClass()HistoricalOptions.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
-
budgetAdjustmentPeriod
public final Integer budgetAdjustmentPeriod()
The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount. The maximum value depends on the
TimeUnitgranularity of the budget:-
For the
DAILYgranularity, the maximum value is60. -
For the
MONTHLYgranularity, the maximum value is12. -
For the
QUARTERLYgranularity, the maximum value is4. -
For the
ANNUALLYgranularity, the maximum value is1.
- Returns:
- The number of budget periods included in the moving-average calculation that determines your
auto-adjusted budget amount. The maximum value depends on the
TimeUnitgranularity of the budget:-
For the
DAILYgranularity, the maximum value is60. -
For the
MONTHLYgranularity, the maximum value is12. -
For the
QUARTERLYgranularity, the maximum value is4. -
For the
ANNUALLYgranularity, the maximum value is1.
-
-
-
lookBackAvailablePeriods
public final Integer lookBackAvailablePeriods()
The integer that describes how many budget periods in your
BudgetAdjustmentPeriodare included in the calculation of your currentBudgetLimit. If the first budget period in yourBudgetAdjustmentPeriodhas no cost data, then that budget period isn’t included in the average that determines your budget limit.For example, if you set
BudgetAdjustmentPeriodas4quarters, but your account had no cost data in the first quarter, then only the last three quarters are included in the calculation. In this scenario,LookBackAvailablePeriodsreturns3.You can’t set your own
LookBackAvailablePeriods. The value is automatically calculated from theBudgetAdjustmentPeriodand your historical cost data.- Returns:
- The integer that describes how many budget periods in your
BudgetAdjustmentPeriodare included in the calculation of your currentBudgetLimit. If the first budget period in yourBudgetAdjustmentPeriodhas no cost data, then that budget period isn’t included in the average that determines your budget limit.For example, if you set
BudgetAdjustmentPeriodas4quarters, but your account had no cost data in the first quarter, then only the last three quarters are included in the calculation. In this scenario,LookBackAvailablePeriodsreturns3.You can’t set your own
LookBackAvailablePeriods. The value is automatically calculated from theBudgetAdjustmentPeriodand your historical cost data.
-
toBuilder
public HistoricalOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HistoricalOptions.Builder,HistoricalOptions>
-
builder
public static HistoricalOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends HistoricalOptions.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
-
-