/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

The time period of the request.

See Also:

AWS API * Reference

*/ class DateInterval { public: AWS_COSTEXPLORER_API DateInterval(); AWS_COSTEXPLORER_API DateInterval(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API DateInterval& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline const Aws::String& GetStart() const{ return m_start; } /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline bool StartHasBeenSet() const { return m_startHasBeenSet; } /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; } /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); } /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); } /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline DateInterval& WithStart(const Aws::String& value) { SetStart(value); return *this;} /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline DateInterval& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;} /** *

The beginning of the time period. The start date is inclusive. For example, * if start is 2017-01-01, Amazon Web Services retrieves * cost and usage data starting at 2017-01-01 up to the end date. The * start date must be equal to or no later than the current date to avoid a * validation error.

*/ inline DateInterval& WithStart(const char* value) { SetStart(value); return *this;} /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline const Aws::String& GetEnd() const{ return m_end; } /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline bool EndHasBeenSet() const { return m_endHasBeenSet; } /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline void SetEnd(const Aws::String& value) { m_endHasBeenSet = true; m_end = value; } /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline void SetEnd(Aws::String&& value) { m_endHasBeenSet = true; m_end = std::move(value); } /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline void SetEnd(const char* value) { m_endHasBeenSet = true; m_end.assign(value); } /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline DateInterval& WithEnd(const Aws::String& value) { SetEnd(value); return *this;} /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline DateInterval& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;} /** *

The end of the time period. The end date is exclusive. For example, if * end is 2017-05-01, Amazon Web Services retrieves cost * and usage data from the start date up to, but not including, * 2017-05-01.

*/ inline DateInterval& WithEnd(const char* value) { SetEnd(value); return *this;} private: Aws::String m_start; bool m_startHasBeenSet = false; Aws::String m_end; bool m_endHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws