AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateRotationRequest.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/SSMContactsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ssm-contacts/model/RecurrenceSettings.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SSMContacts
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSMCONTACTS_API UpdateRotationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateRotation"; }
34
35 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
36
37 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetRotationId() const { return m_rotationId; }
45 inline bool RotationIdHasBeenSet() const { return m_rotationIdHasBeenSet; }
46 template<typename RotationIdT = Aws::String>
47 void SetRotationId(RotationIdT&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::forward<RotationIdT>(value); }
48 template<typename RotationIdT = Aws::String>
49 UpdateRotationRequest& WithRotationId(RotationIdT&& value) { SetRotationId(std::forward<RotationIdT>(value)); return *this;}
51
53
58 inline const Aws::Vector<Aws::String>& GetContactIds() const { return m_contactIds; }
59 inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; }
60 template<typename ContactIdsT = Aws::Vector<Aws::String>>
61 void SetContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::forward<ContactIdsT>(value); }
62 template<typename ContactIdsT = Aws::Vector<Aws::String>>
63 UpdateRotationRequest& WithContactIds(ContactIdsT&& value) { SetContactIds(std::forward<ContactIdsT>(value)); return *this;}
64 template<typename ContactIdsT = Aws::String>
65 UpdateRotationRequest& AddContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds.emplace_back(std::forward<ContactIdsT>(value)); return *this; }
67
69
72 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
73 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
74 template<typename StartTimeT = Aws::Utils::DateTime>
75 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
76 template<typename StartTimeT = Aws::Utils::DateTime>
77 UpdateRotationRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
79
81
90 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
91 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
92 template<typename TimeZoneIdT = Aws::String>
93 void SetTimeZoneId(TimeZoneIdT&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::forward<TimeZoneIdT>(value); }
94 template<typename TimeZoneIdT = Aws::String>
95 UpdateRotationRequest& WithTimeZoneId(TimeZoneIdT&& value) { SetTimeZoneId(std::forward<TimeZoneIdT>(value)); return *this;}
97
99
103 inline const RecurrenceSettings& GetRecurrence() const { return m_recurrence; }
104 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
105 template<typename RecurrenceT = RecurrenceSettings>
106 void SetRecurrence(RecurrenceT&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::forward<RecurrenceT>(value); }
107 template<typename RecurrenceT = RecurrenceSettings>
108 UpdateRotationRequest& WithRecurrence(RecurrenceT&& value) { SetRecurrence(std::forward<RecurrenceT>(value)); return *this;}
110 private:
111
112 Aws::String m_rotationId;
113 bool m_rotationIdHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_contactIds;
116 bool m_contactIdsHasBeenSet = false;
117
118 Aws::Utils::DateTime m_startTime{};
119 bool m_startTimeHasBeenSet = false;
120
121 Aws::String m_timeZoneId;
122 bool m_timeZoneIdHasBeenSet = false;
123
124 RecurrenceSettings m_recurrence;
125 bool m_recurrenceHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace SSMContacts
130} // namespace Aws
UpdateRotationRequest & WithRecurrence(RecurrenceT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Vector< Aws::String > & GetContactIds() const
UpdateRotationRequest & WithStartTime(StartTimeT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRotationRequest & AddContactIds(ContactIdsT &&value)
UpdateRotationRequest & WithTimeZoneId(TimeZoneIdT &&value)
UpdateRotationRequest & WithContactIds(ContactIdsT &&value)
UpdateRotationRequest & WithRotationId(RotationIdT &&value)
const RecurrenceSettings & GetRecurrence() const
AWS_SSMCONTACTS_API UpdateRotationRequest()=default
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector