/** * 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 ListPreviewRotationShiftsRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API ListPreviewRotationShiftsRequest(); // 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 "ListPreviewRotationShifts"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The date and time a rotation would begin. The first shift is calculated from * this date and time.

*/ inline const Aws::Utils::DateTime& GetRotationStartTime() const{ return m_rotationStartTime; } /** *

The date and time a rotation would begin. The first shift is calculated from * this date and time.

*/ inline bool RotationStartTimeHasBeenSet() const { return m_rotationStartTimeHasBeenSet; } /** *

The date and time a rotation would begin. The first shift is calculated from * this date and time.

*/ inline void SetRotationStartTime(const Aws::Utils::DateTime& value) { m_rotationStartTimeHasBeenSet = true; m_rotationStartTime = value; } /** *

The date and time a rotation would begin. The first shift is calculated from * this date and time.

*/ inline void SetRotationStartTime(Aws::Utils::DateTime&& value) { m_rotationStartTimeHasBeenSet = true; m_rotationStartTime = std::move(value); } /** *

The date and time a rotation would begin. The first shift is calculated from * this date and time.

*/ inline ListPreviewRotationShiftsRequest& WithRotationStartTime(const Aws::Utils::DateTime& value) { SetRotationStartTime(value); return *this;} /** *

The date and time a rotation would begin. The first shift is calculated from * this date and time.

*/ inline ListPreviewRotationShiftsRequest& WithRotationStartTime(Aws::Utils::DateTime&& value) { SetRotationStartTime(std::move(value)); return *this;} /** *

Used to filter the range of calculated shifts before sending the response * back to the user.

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

Used to filter the range of calculated shifts before sending the response * back to the user.

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

Used to filter the range of calculated shifts before sending the response * back to the user.

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

Used to filter the range of calculated shifts before sending the response * back to the user.

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

Used to filter the range of calculated shifts before sending the response * back to the user.

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

Used to filter the range of calculated shifts before sending the response * back to the user.

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

The date and time a rotation shift would end.

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

The date and time a rotation shift would end.

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

The date and time a rotation shift would end.

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

The date and time a rotation shift would end.

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

The date and time a rotation shift would end.

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

The date and time a rotation shift would end.

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

The contacts that would be assigned to a rotation.

*/ inline const Aws::Vector& GetMembers() const{ return m_members; } /** *

The contacts that would be assigned to a rotation.

*/ inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; } /** *

The contacts that would be assigned to a rotation.

*/ inline void SetMembers(const Aws::Vector& value) { m_membersHasBeenSet = true; m_members = value; } /** *

The contacts that would be assigned to a rotation.

*/ inline void SetMembers(Aws::Vector&& value) { m_membersHasBeenSet = true; m_members = std::move(value); } /** *

The contacts that would be assigned to a rotation.

*/ inline ListPreviewRotationShiftsRequest& WithMembers(const Aws::Vector& value) { SetMembers(value); return *this;} /** *

The contacts that would be assigned to a rotation.

*/ inline ListPreviewRotationShiftsRequest& WithMembers(Aws::Vector&& value) { SetMembers(std::move(value)); return *this;} /** *

The contacts that would be assigned to a rotation.

*/ inline ListPreviewRotationShiftsRequest& AddMembers(const Aws::String& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; } /** *

The contacts that would be assigned to a rotation.

*/ inline ListPreviewRotationShiftsRequest& AddMembers(Aws::String&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; } /** *

The contacts that would be assigned to a rotation.

*/ inline ListPreviewRotationShiftsRequest& AddMembers(const char* value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; } /** *

The time zone the rotation’s activity would be 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 would be 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 would be 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 would be 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 would be 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 would be based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".

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

The time zone the rotation’s activity would be based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".

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

The time zone the rotation’s activity would be based on, in Internet Assigned * Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or * "Asia/Seoul".

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

Information about how long a rotation would last before restarting at the * beginning of the shift order.

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

Information about how long a rotation would last before restarting at the * beginning of the shift order.

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

Information about how long a rotation would last 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 a rotation would last 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 a rotation would last before restarting at the * beginning of the shift order.

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

Information about how long a rotation would last before restarting at the * beginning of the shift order.

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

Information about changes that would be made in a rotation override.

*/ inline const Aws::Vector& GetOverrides() const{ return m_overrides; } /** *

Information about changes that would be made in a rotation override.

*/ inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; } /** *

Information about changes that would be made in a rotation override.

*/ inline void SetOverrides(const Aws::Vector& value) { m_overridesHasBeenSet = true; m_overrides = value; } /** *

Information about changes that would be made in a rotation override.

*/ inline void SetOverrides(Aws::Vector&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); } /** *

Information about changes that would be made in a rotation override.

*/ inline ListPreviewRotationShiftsRequest& WithOverrides(const Aws::Vector& value) { SetOverrides(value); return *this;} /** *

Information about changes that would be made in a rotation override.

*/ inline ListPreviewRotationShiftsRequest& WithOverrides(Aws::Vector&& value) { SetOverrides(std::move(value)); return *this;} /** *

Information about changes that would be made in a rotation override.

*/ inline ListPreviewRotationShiftsRequest& AddOverrides(const PreviewOverride& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; } /** *

Information about changes that would be made in a rotation override.

*/ inline ListPreviewRotationShiftsRequest& AddOverrides(PreviewOverride&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; } /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline ListPreviewRotationShiftsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline ListPreviewRotationShiftsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A token to start the list. This token is used to get the next set of * results.

*/ inline ListPreviewRotationShiftsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items to return for this call. The call also returns a * token that can be specified in a subsequent call to get the next set of * results.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of items to return for this call. The call also returns a * token that can be specified in a subsequent call to get the next set of * results.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of items to return for this call. The call also returns a * token that can be specified in a subsequent call to get the next set of * results.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of items to return for this call. The call also returns a * token that can be specified in a subsequent call to get the next set of * results.

*/ inline ListPreviewRotationShiftsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Utils::DateTime m_rotationStartTime; bool m_rotationStartTimeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Vector m_members; bool m_membersHasBeenSet = false; Aws::String m_timeZoneId; bool m_timeZoneIdHasBeenSet = false; RecurrenceSettings m_recurrence; bool m_recurrenceHasBeenSet = false; Aws::Vector m_overrides; bool m_overridesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws