AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRotationRequest.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 <aws/ssm-contacts/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSMContacts
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSMCONTACTS_API CreateRotationRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateRotation"; }
35
36 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
37
38 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateRotationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateRotationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateRotationRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
62 inline const Aws::Vector<Aws::String>& GetContactIds() const{ return m_contactIds; }
63 inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; }
64 inline void SetContactIds(const Aws::Vector<Aws::String>& value) { m_contactIdsHasBeenSet = true; m_contactIds = value; }
65 inline void SetContactIds(Aws::Vector<Aws::String>&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::move(value); }
66 inline CreateRotationRequest& WithContactIds(const Aws::Vector<Aws::String>& value) { SetContactIds(value); return *this;}
67 inline CreateRotationRequest& WithContactIds(Aws::Vector<Aws::String>&& value) { SetContactIds(std::move(value)); return *this;}
68 inline CreateRotationRequest& AddContactIds(const Aws::String& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
69 inline CreateRotationRequest& AddContactIds(Aws::String&& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(std::move(value)); return *this; }
70 inline CreateRotationRequest& AddContactIds(const char* value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
72
74
77 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
78 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
79 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
80 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
81 inline CreateRotationRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
82 inline CreateRotationRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
84
86
95 inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; }
96 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
97 inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; }
98 inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); }
99 inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); }
100 inline CreateRotationRequest& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
101 inline CreateRotationRequest& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
102 inline CreateRotationRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
104
106
110 inline const RecurrenceSettings& GetRecurrence() const{ return m_recurrence; }
111 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
112 inline void SetRecurrence(const RecurrenceSettings& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
113 inline void SetRecurrence(RecurrenceSettings&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
114 inline CreateRotationRequest& WithRecurrence(const RecurrenceSettings& value) { SetRecurrence(value); return *this;}
115 inline CreateRotationRequest& WithRecurrence(RecurrenceSettings&& value) { SetRecurrence(std::move(value)); return *this;}
117
119
126 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
129 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
130 inline CreateRotationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
131 inline CreateRotationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
132 inline CreateRotationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
133 inline CreateRotationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
135
137
141 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
142 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
143 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
144 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
145 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
146 inline CreateRotationRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
147 inline CreateRotationRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
148 inline CreateRotationRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
150 private:
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_contactIds;
156 bool m_contactIdsHasBeenSet = false;
157
158 Aws::Utils::DateTime m_startTime;
159 bool m_startTimeHasBeenSet = false;
160
161 Aws::String m_timeZoneId;
162 bool m_timeZoneIdHasBeenSet = false;
163
164 RecurrenceSettings m_recurrence;
165 bool m_recurrenceHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169
170 Aws::String m_idempotencyToken;
171 bool m_idempotencyTokenHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace SSMContacts
176} // namespace Aws
CreateRotationRequest & AddTags(Tag &&value)
CreateRotationRequest & WithIdempotencyToken(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
CreateRotationRequest & WithName(const char *value)
CreateRotationRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRotationRequest & AddTags(const Tag &value)
void SetRecurrence(const RecurrenceSettings &value)
CreateRotationRequest & AddContactIds(const char *value)
CreateRotationRequest & WithIdempotencyToken(const Aws::String &value)
CreateRotationRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateRotationRequest & WithStartTime(Aws::Utils::DateTime &&value)
CreateRotationRequest & WithName(const Aws::String &value)
CreateRotationRequest & WithTimeZoneId(Aws::String &&value)
void SetContactIds(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetTags(const Aws::Vector< Tag > &value)
CreateRotationRequest & WithRecurrence(const RecurrenceSettings &value)
CreateRotationRequest & WithIdempotencyToken(Aws::String &&value)
const RecurrenceSettings & GetRecurrence() const
const Aws::Vector< Aws::String > & GetContactIds() const
CreateRotationRequest & AddContactIds(const Aws::String &value)
CreateRotationRequest & WithTimeZoneId(const char *value)
CreateRotationRequest & WithStartTime(const Aws::Utils::DateTime &value)
CreateRotationRequest & WithContactIds(const Aws::Vector< Aws::String > &value)
CreateRotationRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
void SetContactIds(const Aws::Vector< Aws::String > &value)
CreateRotationRequest & WithTimeZoneId(const Aws::String &value)
CreateRotationRequest & WithContactIds(Aws::Vector< Aws::String > &&value)
CreateRotationRequest & AddContactIds(Aws::String &&value)
CreateRotationRequest & WithRecurrence(RecurrenceSettings &&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