/** * 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 #include namespace Aws { namespace SSMContacts { namespace Model { /** */ class CreateRotationRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API CreateRotationRequest(); // 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 "CreateRotation"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 CreateRotationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the rotation.

*/ inline CreateRotationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the rotation.

*/ inline CreateRotationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The Amazon Resource Names (ARNs) of the contacts to add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

*/ inline CreateRotationRequest& 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 add to the rotation.

*

The order that you list the contacts in is their shift order in the rotation * schedule. To change the order of the contact's shifts, use the * UpdateRotation operation.

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

The date and time that the rotation goes into effect.

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

The date and time that the rotation goes into effect.

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

The date and time that the rotation goes into effect.

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

The date and time that the rotation goes into effect.

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

The date and time that the rotation goes into effect.

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

The date and time that the rotation goes into effect.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

The time zone to base the 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), are not supported.

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

Information about the rule that specifies when a shift's team members * rotate.

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

Information about the rule that specifies when a shift's team members * rotate.

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

Information about the rule that specifies when a shift's team members * rotate.

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

Information about the rule that specifies when a shift's team members * rotate.

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

Information about the rule that specifies when a shift's team members * rotate.

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

Information about the rule that specifies when a shift's team members * rotate.

*/ inline CreateRotationRequest& WithRecurrence(RecurrenceSettings&& value) { SetRecurrence(std::move(value)); return *this;} /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline CreateRotationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline CreateRotationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline CreateRotationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Optional metadata to assign to the rotation. Tags enable you to categorize a * resource in different ways, such as by purpose, owner, or environment. For more * information, see Tagging * Incident Manager resources in the Incident Manager User Guide.

*/ inline CreateRotationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateRotationRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateRotationRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateRotationRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = 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; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws