/** * 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 LicenseManager { namespace Model { /** *

Describes a time range, in ISO8601-UTC format.

See Also:

AWS * API Reference

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

Start of the time range.

*/ inline const Aws::String& GetBegin() const{ return m_begin; } /** *

Start of the time range.

*/ inline bool BeginHasBeenSet() const { return m_beginHasBeenSet; } /** *

Start of the time range.

*/ inline void SetBegin(const Aws::String& value) { m_beginHasBeenSet = true; m_begin = value; } /** *

Start of the time range.

*/ inline void SetBegin(Aws::String&& value) { m_beginHasBeenSet = true; m_begin = std::move(value); } /** *

Start of the time range.

*/ inline void SetBegin(const char* value) { m_beginHasBeenSet = true; m_begin.assign(value); } /** *

Start of the time range.

*/ inline DatetimeRange& WithBegin(const Aws::String& value) { SetBegin(value); return *this;} /** *

Start of the time range.

*/ inline DatetimeRange& WithBegin(Aws::String&& value) { SetBegin(std::move(value)); return *this;} /** *

Start of the time range.

*/ inline DatetimeRange& WithBegin(const char* value) { SetBegin(value); return *this;} /** *

End of the time range.

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

End of the time range.

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

End of the time range.

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

End of the time range.

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

End of the time range.

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

End of the time range.

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

End of the time range.

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

End of the time range.

*/ inline DatetimeRange& WithEnd(const char* value) { SetEnd(value); return *this;} private: Aws::String m_begin; bool m_beginHasBeenSet = false; Aws::String m_end; bool m_endHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws