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

Information about when an on-call shift begins and ends.

See * Also:

AWS * API Reference

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

Information about when the on-call rotation shift begins.

*/ inline const HandOffTime& GetStart() const{ return m_start; } /** *

Information about when the on-call rotation shift begins.

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

Information about when the on-call rotation shift begins.

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

Information about when the on-call rotation shift begins.

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

Information about when the on-call rotation shift begins.

*/ inline CoverageTime& WithStart(const HandOffTime& value) { SetStart(value); return *this;} /** *

Information about when the on-call rotation shift begins.

*/ inline CoverageTime& WithStart(HandOffTime&& value) { SetStart(std::move(value)); return *this;} /** *

Information about when the on-call rotation shift ends.

*/ inline const HandOffTime& GetEnd() const{ return m_end; } /** *

Information about when the on-call rotation shift ends.

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

Information about when the on-call rotation shift ends.

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

Information about when the on-call rotation shift ends.

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

Information about when the on-call rotation shift ends.

*/ inline CoverageTime& WithEnd(const HandOffTime& value) { SetEnd(value); return *this;} /** *

Information about when the on-call rotation shift ends.

*/ inline CoverageTime& WithEnd(HandOffTime&& value) { SetEnd(std::move(value)); return *this;} private: HandOffTime m_start; bool m_startHasBeenSet = false; HandOffTime m_end; bool m_endHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws