/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a rotation in an on-call schedule.See Also:
* AWS
* API Reference
The Amazon Resource Name (ARN) of the rotation.
*/ inline const Aws::String& GetRotationArn() const{ return m_rotationArn; } /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline bool RotationArnHasBeenSet() const { return m_rotationArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline void SetRotationArn(const Aws::String& value) { m_rotationArnHasBeenSet = true; m_rotationArn = value; } /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline void SetRotationArn(Aws::String&& value) { m_rotationArnHasBeenSet = true; m_rotationArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline void SetRotationArn(const char* value) { m_rotationArnHasBeenSet = true; m_rotationArn.assign(value); } /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline Rotation& WithRotationArn(const Aws::String& value) { SetRotationArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline Rotation& WithRotationArn(Aws::String&& value) { SetRotationArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the rotation.
*/ inline Rotation& WithRotationArn(const char* value) { SetRotationArn(value); return *this;} /** *The name of the rotation.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the rotation.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the rotation.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the rotation.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the rotation.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the rotation.
*/ inline Rotation& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the rotation.
*/ inline Rotation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the rotation.
*/ inline Rotation& WithName(const char* value) { SetName(value); return *this;} /** *The Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline const Aws::VectorThe Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; } /** *The Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline void SetContactIds(const Aws::VectorThe Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline void SetContactIds(Aws::VectorThe Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline Rotation& WithContactIds(const Aws::VectorThe Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline Rotation& WithContactIds(Aws::VectorThe Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline Rotation& AddContactIds(const Aws::String& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; } /** *The Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline Rotation& AddContactIds(Aws::String&& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(std::move(value)); return *this; } /** *The Amazon Resource Names (ARNs) of the contacts assigned to the rotation * team.
*/ inline Rotation& AddContactIds(const char* value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; } /** *The date and time the rotation becomes active.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The date and time the rotation becomes active.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The date and time the rotation becomes active.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The date and time the rotation becomes active.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The date and time the rotation becomes active.
*/ inline Rotation& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The date and time the rotation becomes active.
*/ inline Rotation& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; } /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; } /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; } /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); } /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); } /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline Rotation& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;} /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline Rotation& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;} /** *The time zone the rotation’s activity is based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".
*/ inline Rotation& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;} /** *Information about when an on-call rotation is in effect and how long the * rotation period lasts.
*/ inline const RecurrenceSettings& GetRecurrence() const{ return m_recurrence; } /** *Information about when an on-call rotation is in effect and how long the * rotation period lasts.
*/ inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; } /** *Information about when an on-call rotation is in effect and how long the * rotation period lasts.
*/ inline void SetRecurrence(const RecurrenceSettings& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; } /** *Information about when an on-call rotation is in effect and how long the * rotation period lasts.
*/ inline void SetRecurrence(RecurrenceSettings&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); } /** *Information about when an on-call rotation is in effect and how long the * rotation period lasts.
*/ inline Rotation& WithRecurrence(const RecurrenceSettings& value) { SetRecurrence(value); return *this;} /** *Information about when an on-call rotation is in effect and how long the * rotation period lasts.
*/ inline Rotation& WithRecurrence(RecurrenceSettings&& value) { SetRecurrence(std::move(value)); return *this;} private: Aws::String m_rotationArn; bool m_rotationArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector