@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimePeriod extends Object implements Serializable, Cloneable, StructuredPojo
The period of time that's covered by a budget. The period 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.
Constructor and Description |
---|
TimePeriod() |
Modifier and Type | Method and Description |
---|---|
TimePeriod |
clone() |
boolean |
equals(Object obj) |
Date |
getEnd()
The end date for a budget.
|
Date |
getStart()
The start date for a budget.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnd(Date end)
The end date for a budget.
|
void |
setStart(Date start)
The start date for a budget.
|
String |
toString()
Returns a string representation of this object.
|
TimePeriod |
withEnd(Date end)
The end date for a budget.
|
TimePeriod |
withStart(Date start)
The start date for a budget.
|
public void setStart(Date start)
The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web Services
defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you
created your budget on January 24, 2018, chose DAILY
, and didn't set a start date, Amazon Web
Services set your start date to 01/24/18 00:00 UTC
. If you chose MONTHLY
, Amazon Web
Services set your start date to 01/01/18 00:00 UTC
. The defaults are the same for the Billing and
Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
start
- The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web
Services defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For
example, if you created your budget on January 24, 2018, chose DAILY
, and didn't set a start
date, Amazon Web Services set your start date to 01/24/18 00:00 UTC
. If you chose
MONTHLY
, Amazon Web Services set your start date to 01/01/18 00:00 UTC
. The
defaults are the same for the Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
public Date getStart()
The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web Services
defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you
created your budget on January 24, 2018, chose DAILY
, and didn't set a start date, Amazon Web
Services set your start date to 01/24/18 00:00 UTC
. If you chose MONTHLY
, Amazon Web
Services set your start date to 01/01/18 00:00 UTC
. The defaults are the same for the Billing and
Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
DAILY
, and didn't set a start
date, Amazon Web Services set your start date to 01/24/18 00:00 UTC
. If you chose
MONTHLY
, Amazon Web Services set your start date to 01/01/18 00:00 UTC
. The
defaults are the same for the Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
public TimePeriod withStart(Date start)
The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web Services
defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you
created your budget on January 24, 2018, chose DAILY
, and didn't set a start date, Amazon Web
Services set your start date to 01/24/18 00:00 UTC
. If you chose MONTHLY
, Amazon Web
Services set your start date to 01/01/18 00:00 UTC
. The defaults are the same for the Billing and
Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
start
- The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web
Services defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For
example, if you created your budget on January 24, 2018, chose DAILY
, and didn't set a start
date, Amazon Web Services set your start date to 01/24/18 00:00 UTC
. If you chose
MONTHLY
, Amazon Web Services set your start date to 01/01/18 00:00 UTC
. The
defaults are the same for the Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
public void setEnd(Date end)
The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to
06/15/87 00:00 UTC
. The defaults are the same for the Billing and Cost Management console and the
API.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers.
You can change your end date with the UpdateBudget
operation.
end
- The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to
06/15/87 00:00 UTC
. The defaults are the same for the Billing and Cost Management console and
the API.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and
subscribers. You can change your end date with the UpdateBudget
operation.
public Date getEnd()
The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to
06/15/87 00:00 UTC
. The defaults are the same for the Billing and Cost Management console and the
API.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers.
You can change your end date with the UpdateBudget
operation.
06/15/87 00:00 UTC
. The defaults are the same for the Billing and Cost Management console
and the API.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and
subscribers. You can change your end date with the UpdateBudget
operation.
public TimePeriod withEnd(Date end)
The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to
06/15/87 00:00 UTC
. The defaults are the same for the Billing and Cost Management console and the
API.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers.
You can change your end date with the UpdateBudget
operation.
end
- The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to
06/15/87 00:00 UTC
. The defaults are the same for the Billing and Cost Management console and
the API.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and
subscribers. You can change your end date with the UpdateBudget
operation.
public String toString()
toString
in class Object
Object.toString()
public TimePeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.