@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Budget extends Object implements Serializable, Cloneable, StructuredPojo
Represents the output of the CreateBudget operation. The content consists of the detailed metadata and
data file information, and the current status of the budget.
The ARN pattern for a budget is: arn:aws:budgetservice::AccountId:budget/budgetName
| Constructor and Description |
|---|
Budget() |
| Modifier and Type | Method and Description |
|---|---|
Budget |
addCostFiltersEntry(String key,
List<String> value) |
Budget |
clearCostFiltersEntries()
Removes all the entries added into CostFilters.
|
Budget |
clone() |
boolean |
equals(Object obj) |
Spend |
getBudgetLimit()
The total amount of cost, usage, or RI utilization that you want to track with your budget.
|
String |
getBudgetName()
The name of a budget.
|
String |
getBudgetType()
Whether this budget tracks monetary costs, usage, or RI utilization.
|
CalculatedSpend |
getCalculatedSpend()
The actual and forecasted cost or usage being tracked by a budget.
|
Map<String,List<String>> |
getCostFilters()
The cost filters applied to a budget, such as service or region.
|
CostTypes |
getCostTypes()
The types of costs included in this budget.
|
TimePeriod |
getTimePeriod()
The period of time covered by a budget.
|
String |
getTimeUnit()
The length of time until a budget resets the actual and forecasted spend.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBudgetLimit(Spend budgetLimit)
The total amount of cost, usage, or RI utilization that you want to track with your budget.
|
void |
setBudgetName(String budgetName)
The name of a budget.
|
void |
setBudgetType(BudgetType budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
|
void |
setBudgetType(String budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
|
void |
setCalculatedSpend(CalculatedSpend calculatedSpend)
The actual and forecasted cost or usage being tracked by a budget.
|
void |
setCostFilters(Map<String,List<String>> costFilters)
The cost filters applied to a budget, such as service or region.
|
void |
setCostTypes(CostTypes costTypes)
The types of costs included in this budget.
|
void |
setTimePeriod(TimePeriod timePeriod)
The period of time covered by a budget.
|
void |
setTimeUnit(String timeUnit)
The length of time until a budget resets the actual and forecasted spend.
|
void |
setTimeUnit(TimeUnit timeUnit)
The length of time until a budget resets the actual and forecasted spend.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Budget |
withBudgetLimit(Spend budgetLimit)
The total amount of cost, usage, or RI utilization that you want to track with your budget.
|
Budget |
withBudgetName(String budgetName)
The name of a budget.
|
Budget |
withBudgetType(BudgetType budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
|
Budget |
withBudgetType(String budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
|
Budget |
withCalculatedSpend(CalculatedSpend calculatedSpend)
The actual and forecasted cost or usage being tracked by a budget.
|
Budget |
withCostFilters(Map<String,List<String>> costFilters)
The cost filters applied to a budget, such as service or region.
|
Budget |
withCostTypes(CostTypes costTypes)
The types of costs included in this budget.
|
Budget |
withTimePeriod(TimePeriod timePeriod)
The period of time covered by a budget.
|
Budget |
withTimeUnit(String timeUnit)
The length of time until a budget resets the actual and forecasted spend.
|
Budget |
withTimeUnit(TimeUnit timeUnit)
The length of time until a budget resets the actual and forecasted spend.
|
public void setBudgetName(String budgetName)
The name of a budget. Unique within accounts. : and \ characters are not allowed in the
BudgetName.
budgetName - The name of a budget. Unique within accounts. : and \ characters are not allowed
in the BudgetName.public String getBudgetName()
The name of a budget. Unique within accounts. : and \ characters are not allowed in the
BudgetName.
: and \ characters are not
allowed in the BudgetName.public Budget withBudgetName(String budgetName)
The name of a budget. Unique within accounts. : and \ characters are not allowed in the
BudgetName.
budgetName - The name of a budget. Unique within accounts. : and \ characters are not allowed
in the BudgetName.public void setBudgetLimit(Spend budgetLimit)
The total amount of cost, usage, or RI utilization that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets. RI
utilization budgets default to the only valid value for RI utilization budgets, which is 100.
budgetLimit - The total amount of cost, usage, or RI utilization that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets.
RI utilization budgets default to the only valid value for RI utilization budgets, which is
100.
public Spend getBudgetLimit()
The total amount of cost, usage, or RI utilization that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets. RI
utilization budgets default to the only valid value for RI utilization budgets, which is 100.
BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets.
RI utilization budgets default to the only valid value for RI utilization budgets, which is
100.
public Budget withBudgetLimit(Spend budgetLimit)
The total amount of cost, usage, or RI utilization that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets. RI
utilization budgets default to the only valid value for RI utilization budgets, which is 100.
budgetLimit - The total amount of cost, usage, or RI utilization that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets.
RI utilization budgets default to the only valid value for RI utilization budgets, which is
100.
public Map<String,List<String>> getCostFilters()
The cost filters applied to a budget, such as service or region.
public void setCostFilters(Map<String,List<String>> costFilters)
The cost filters applied to a budget, such as service or region.
costFilters - The cost filters applied to a budget, such as service or region.public Budget withCostFilters(Map<String,List<String>> costFilters)
The cost filters applied to a budget, such as service or region.
costFilters - The cost filters applied to a budget, such as service or region.public Budget clearCostFiltersEntries()
public void setCostTypes(CostTypes costTypes)
The types of costs included in this budget.
costTypes - The types of costs included in this budget.public CostTypes getCostTypes()
The types of costs included in this budget.
public Budget withCostTypes(CostTypes costTypes)
The types of costs included in this budget.
costTypes - The types of costs included in this budget.public void setTimeUnit(String timeUnit)
The length of time until a budget resets the actual and forecasted spend.
timeUnit - The length of time until a budget resets the actual and forecasted spend.TimeUnitpublic String getTimeUnit()
The length of time until a budget resets the actual and forecasted spend.
TimeUnitpublic Budget withTimeUnit(String timeUnit)
The length of time until a budget resets the actual and forecasted spend.
timeUnit - The length of time until a budget resets the actual and forecasted spend.TimeUnitpublic void setTimeUnit(TimeUnit timeUnit)
The length of time until a budget resets the actual and forecasted spend.
timeUnit - The length of time until a budget resets the actual and forecasted spend.TimeUnitpublic Budget withTimeUnit(TimeUnit timeUnit)
The length of time until a budget resets the actual and forecasted spend.
timeUnit - The length of time until a budget resets the actual and forecasted spend.TimeUnitpublic void setTimePeriod(TimePeriod timePeriod)
The period of time covered by a budget. Has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time period
(i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th 2018, chose
DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If
you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you didn't specify
an end date, AWS set your end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS
Billing and Cost Management console and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
timePeriod - The period of time covered by a budget. Has a start date and an end date. The start date must come before
the end date. There are no restrictions on the end date.
If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time
period (i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th
2018, chose DAILY, and didn't set a start date, AWS set your start date to
01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to
01/01/18 00:00 UTC. If you didn't specify an end date, AWS set your end date to
06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console
and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
public TimePeriod getTimePeriod()
The period of time covered by a budget. Has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time period
(i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th 2018, chose
DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If
you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you didn't specify
an end date, AWS set your end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS
Billing and Cost Management console and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time
period (i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January
24th 2018, chose DAILY, and didn't set a start date, AWS set your start date to
01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to
01/01/18 00:00 UTC. If you didn't specify an end date, AWS set your end date to
06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management
console and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
public Budget withTimePeriod(TimePeriod timePeriod)
The period of time covered by a budget. Has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time period
(i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th 2018, chose
DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If
you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you didn't specify
an end date, AWS set your end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS
Billing and Cost Management console and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
timePeriod - The period of time covered by a budget. Has a start date and an end date. The start date must come before
the end date. There are no restrictions on the end date.
If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time
period (i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th
2018, chose DAILY, and didn't set a start date, AWS set your start date to
01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to
01/01/18 00:00 UTC. If you didn't specify an end date, AWS set your end date to
06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console
and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
public void setCalculatedSpend(CalculatedSpend calculatedSpend)
The actual and forecasted cost or usage being tracked by a budget.
calculatedSpend - The actual and forecasted cost or usage being tracked by a budget.public CalculatedSpend getCalculatedSpend()
The actual and forecasted cost or usage being tracked by a budget.
public Budget withCalculatedSpend(CalculatedSpend calculatedSpend)
The actual and forecasted cost or usage being tracked by a budget.
calculatedSpend - The actual and forecasted cost or usage being tracked by a budget.public void setBudgetType(String budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
budgetType - Whether this budget tracks monetary costs, usage, or RI utilization.BudgetTypepublic String getBudgetType()
Whether this budget tracks monetary costs, usage, or RI utilization.
BudgetTypepublic Budget withBudgetType(String budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
budgetType - Whether this budget tracks monetary costs, usage, or RI utilization.BudgetTypepublic void setBudgetType(BudgetType budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
budgetType - Whether this budget tracks monetary costs, usage, or RI utilization.BudgetTypepublic Budget withBudgetType(BudgetType budgetType)
Whether this budget tracks monetary costs, usage, or RI utilization.
budgetType - Whether this budget tracks monetary costs, usage, or RI utilization.BudgetTypepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.