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

Information about a shift that belongs to an on-call rotation.

See * Also:

AWS * API Reference

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

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline const Aws::Vector& GetContactIds() const{ return m_contactIds; } /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline void SetContactIds(const Aws::Vector& value) { m_contactIdsHasBeenSet = true; m_contactIds = value; } /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline void SetContactIds(Aws::Vector&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline RotationShift& WithContactIds(const Aws::Vector& value) { SetContactIds(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline RotationShift& WithContactIds(Aws::Vector&& value) { SetContactIds(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline RotationShift& AddContactIds(const Aws::String& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline RotationShift& AddContactIds(Aws::String&& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the contacts who are part of the shift * rotation.

*/ inline RotationShift& AddContactIds(const char* value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; } /** *

The time a shift rotation begins.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time a shift rotation begins.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time a shift rotation begins.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time a shift rotation begins.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time a shift rotation begins.

*/ inline RotationShift& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time a shift rotation begins.

*/ inline RotationShift& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time a shift rotation ends.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time a shift rotation ends.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time a shift rotation ends.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time a shift rotation ends.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time a shift rotation ends.

*/ inline RotationShift& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time a shift rotation ends.

*/ inline RotationShift& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The type of shift rotation.

*/ inline const ShiftType& GetType() const{ return m_type; } /** *

The type of shift rotation.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of shift rotation.

*/ inline void SetType(const ShiftType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of shift rotation.

*/ inline void SetType(ShiftType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of shift rotation.

*/ inline RotationShift& WithType(const ShiftType& value) { SetType(value); return *this;} /** *

The type of shift rotation.

*/ inline RotationShift& WithType(ShiftType&& value) { SetType(std::move(value)); return *this;} /** *

Additional information about an on-call rotation shift.

*/ inline const ShiftDetails& GetShiftDetails() const{ return m_shiftDetails; } /** *

Additional information about an on-call rotation shift.

*/ inline bool ShiftDetailsHasBeenSet() const { return m_shiftDetailsHasBeenSet; } /** *

Additional information about an on-call rotation shift.

*/ inline void SetShiftDetails(const ShiftDetails& value) { m_shiftDetailsHasBeenSet = true; m_shiftDetails = value; } /** *

Additional information about an on-call rotation shift.

*/ inline void SetShiftDetails(ShiftDetails&& value) { m_shiftDetailsHasBeenSet = true; m_shiftDetails = std::move(value); } /** *

Additional information about an on-call rotation shift.

*/ inline RotationShift& WithShiftDetails(const ShiftDetails& value) { SetShiftDetails(value); return *this;} /** *

Additional information about an on-call rotation shift.

*/ inline RotationShift& WithShiftDetails(ShiftDetails&& value) { SetShiftDetails(std::move(value)); return *this;} private: Aws::Vector m_contactIds; bool m_contactIdsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; ShiftType m_type; bool m_typeHasBeenSet = false; ShiftDetails m_shiftDetails; bool m_shiftDetailsHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws