AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRotationId(const Aws::String& value) { m_rotationIdHasBeenSet = true; m_rotationId = value; }
47 inline void SetRotationId(Aws::String&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::move(value); }
48 inline void SetRotationId(const char* value) { m_rotationIdHasBeenSet = true; m_rotationId.assign(value); }
49 inline UpdateRotationRequest& WithRotationId(const Aws::String& value) { SetRotationId(value); return *this;}
50 inline UpdateRotationRequest& WithRotationId(Aws::String&& value) { SetRotationId(std::move(value)); return *this;}
51 inline UpdateRotationRequest& WithRotationId(const char* value) { SetRotationId(value); return *this;}
53
55
60 inline const Aws::Vector<Aws::String>& GetContactIds() const{ return m_contactIds; }
61 inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; }
62 inline void SetContactIds(const Aws::Vector<Aws::String>& value) { m_contactIdsHasBeenSet = true; m_contactIds = value; }
63 inline void SetContactIds(Aws::Vector<Aws::String>&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::move(value); }
64 inline UpdateRotationRequest& WithContactIds(const Aws::Vector<Aws::String>& value) { SetContactIds(value); return *this;}
65 inline UpdateRotationRequest& WithContactIds(Aws::Vector<Aws::String>&& value) { SetContactIds(std::move(value)); return *this;}
66 inline UpdateRotationRequest& AddContactIds(const Aws::String& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
67 inline UpdateRotationRequest& AddContactIds(Aws::String&& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(std::move(value)); return *this; }
68 inline UpdateRotationRequest& AddContactIds(const char* value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
70
72
75 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
78 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
79 inline UpdateRotationRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
80 inline UpdateRotationRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
82
84
93 inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; }
94 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
95 inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; }
96 inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); }
97 inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); }
98 inline UpdateRotationRequest& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
99 inline UpdateRotationRequest& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
100 inline UpdateRotationRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
102
104
108 inline const RecurrenceSettings& GetRecurrence() const{ return m_recurrence; }
109 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
110 inline void SetRecurrence(const RecurrenceSettings& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
111 inline void SetRecurrence(RecurrenceSettings&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
112 inline UpdateRotationRequest& WithRecurrence(const RecurrenceSettings& value) { SetRecurrence(value); return *this;}
113 inline UpdateRotationRequest& WithRecurrence(RecurrenceSettings&& value) { SetRecurrence(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_rotationId;
118 bool m_rotationIdHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_contactIds;
121 bool m_contactIdsHasBeenSet = false;
122
123 Aws::Utils::DateTime m_startTime;
124 bool m_startTimeHasBeenSet = false;
125
126 Aws::String m_timeZoneId;
127 bool m_timeZoneIdHasBeenSet = false;
128
129 RecurrenceSettings m_recurrence;
130 bool m_recurrenceHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SSMContacts
135} // namespace Aws
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStartTime(const Aws::Utils::DateTime &value)
UpdateRotationRequest & WithRotationId(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
UpdateRotationRequest & AddContactIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetContactIds() const
UpdateRotationRequest & WithContactIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
void SetStartTime(Aws::Utils::DateTime &&value)
UpdateRotationRequest & WithStartTime(const Aws::Utils::DateTime &value)
UpdateRotationRequest & WithTimeZoneId(const char *value)
UpdateRotationRequest & AddContactIds(const char *value)
UpdateRotationRequest & WithTimeZoneId(Aws::String &&value)
UpdateRotationRequest & WithRecurrence(const RecurrenceSettings &value)
UpdateRotationRequest & WithRotationId(Aws::String &&value)
UpdateRotationRequest & WithStartTime(Aws::Utils::DateTime &&value)
const RecurrenceSettings & GetRecurrence() const
UpdateRotationRequest & WithRotationId(const Aws::String &value)
void SetContactIds(Aws::Vector< Aws::String > &&value)
void SetRecurrence(const RecurrenceSettings &value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
UpdateRotationRequest & AddContactIds(Aws::String &&value)
void SetContactIds(const Aws::Vector< Aws::String > &value)
UpdateRotationRequest & WithContactIds(Aws::Vector< Aws::String > &&value)
UpdateRotationRequest & WithRecurrence(RecurrenceSettings &&value)
UpdateRotationRequest & WithTimeZoneId(const Aws::String &value)
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