/** * 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 that you want the usage and costs for.

See * Also:

AWS API * Reference

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The beginning of the time period that you want the usage and costs for. The * start date is inclusive. For example, if start is * 2017-01-01, AWS retrieves cost and usage data starting at * 2017-01-01 up to the end date.

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

The end of the time period that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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 that you want the usage and costs for. The end * date is exclusive. For example, if end is 2017-05-01, * AWS 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; Aws::String m_end; bool m_endHasBeenSet; }; } // namespace Model } // namespace CostExplorer } // namespace Aws