/** * 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 SSMContacts { namespace Model { /** */ class UpdateRotationRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API UpdateRotationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRotation"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline const Aws::String& GetRotationId() const{ return m_rotationId; } /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline bool RotationIdHasBeenSet() const { return m_rotationIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline void SetRotationId(const Aws::String& value) { m_rotationIdHasBeenSet = true; m_rotationId = value; } /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline void SetRotationId(Aws::String&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline void SetRotationId(const char* value) { m_rotationIdHasBeenSet = true; m_rotationId.assign(value); } /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline UpdateRotationRequest& WithRotationId(const Aws::String& value) { SetRotationId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline UpdateRotationRequest& WithRotationId(Aws::String&& value) { SetRotationId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the rotation to update.

*/ inline UpdateRotationRequest& WithRotationId(const char* value) { SetRotationId(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The Amazon Resource Names (ARNs) of the contacts to include in the updated * rotation.

The order in which you list the contacts is their shift order * in the rotation schedule.

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

The date and time the rotation goes into effect.

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

The date and time the rotation goes into effect.

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

The date and time the rotation goes into effect.

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

The date and time the rotation goes into effect.

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

The date and time the rotation goes into effect.

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

The date and time the rotation goes into effect.

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

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; } /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; } /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; } /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); } /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); } /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline UpdateRotationRequest& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;} /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline UpdateRotationRequest& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;} /** *

The time zone to base the updated rotation’s activity on, in Internet * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", * "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

Designators for time zones that don’t support Daylight * Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight * Time (PDT), aren't supported.

*/ inline UpdateRotationRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;} /** *

Information about how long the updated rotation lasts before restarting at * the beginning of the shift order.

*/ inline const RecurrenceSettings& GetRecurrence() const{ return m_recurrence; } /** *

Information about how long the updated rotation lasts before restarting at * the beginning of the shift order.

*/ inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; } /** *

Information about how long the updated rotation lasts before restarting at * the beginning of the shift order.

*/ inline void SetRecurrence(const RecurrenceSettings& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; } /** *

Information about how long the updated rotation lasts before restarting at * the beginning of the shift order.

*/ inline void SetRecurrence(RecurrenceSettings&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); } /** *

Information about how long the updated rotation lasts before restarting at * the beginning of the shift order.

*/ inline UpdateRotationRequest& WithRecurrence(const RecurrenceSettings& value) { SetRecurrence(value); return *this;} /** *

Information about how long the updated rotation lasts before restarting at * the beginning of the shift order.

*/ inline UpdateRotationRequest& WithRecurrence(RecurrenceSettings&& value) { SetRecurrence(std::move(value)); return *this;} private: Aws::String m_rotationId; bool m_rotationIdHasBeenSet = false; Aws::Vector m_contactIds; bool m_contactIdsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::String m_timeZoneId; bool m_timeZoneIdHasBeenSet = false; RecurrenceSettings m_recurrence; bool m_recurrenceHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws