AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResponsePlanRequest.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/SSMIncidentsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-incidents/model/ChatChannel.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ssm-incidents/model/IncidentTemplate.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/ssm-incidents/model/Action.h>
15#include <aws/ssm-incidents/model/Integration.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace SSMIncidents
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SSMINCIDENTS_API CreateResponsePlanRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateResponsePlan"; }
38
39 AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
48 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
49 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
50 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
51 inline CreateResponsePlanRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
52 inline CreateResponsePlanRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
53 inline CreateResponsePlanRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
54 inline CreateResponsePlanRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
56
58
61 inline const ChatChannel& GetChatChannel() const{ return m_chatChannel; }
62 inline bool ChatChannelHasBeenSet() const { return m_chatChannelHasBeenSet; }
63 inline void SetChatChannel(const ChatChannel& value) { m_chatChannelHasBeenSet = true; m_chatChannel = value; }
64 inline void SetChatChannel(ChatChannel&& value) { m_chatChannelHasBeenSet = true; m_chatChannel = std::move(value); }
65 inline CreateResponsePlanRequest& WithChatChannel(const ChatChannel& value) { SetChatChannel(value); return *this;}
66 inline CreateResponsePlanRequest& WithChatChannel(ChatChannel&& value) { SetChatChannel(std::move(value)); return *this;}
68
70
74 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
77 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
78 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
79 inline CreateResponsePlanRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
80 inline CreateResponsePlanRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
81 inline CreateResponsePlanRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
83
85
88 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
89 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
90 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
91 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
92 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
93 inline CreateResponsePlanRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
94 inline CreateResponsePlanRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
95 inline CreateResponsePlanRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
97
99
103 inline const Aws::Vector<Aws::String>& GetEngagements() const{ return m_engagements; }
104 inline bool EngagementsHasBeenSet() const { return m_engagementsHasBeenSet; }
105 inline void SetEngagements(const Aws::Vector<Aws::String>& value) { m_engagementsHasBeenSet = true; m_engagements = value; }
106 inline void SetEngagements(Aws::Vector<Aws::String>&& value) { m_engagementsHasBeenSet = true; m_engagements = std::move(value); }
108 inline CreateResponsePlanRequest& WithEngagements(Aws::Vector<Aws::String>&& value) { SetEngagements(std::move(value)); return *this;}
109 inline CreateResponsePlanRequest& AddEngagements(const Aws::String& value) { m_engagementsHasBeenSet = true; m_engagements.push_back(value); return *this; }
110 inline CreateResponsePlanRequest& AddEngagements(Aws::String&& value) { m_engagementsHasBeenSet = true; m_engagements.push_back(std::move(value)); return *this; }
111 inline CreateResponsePlanRequest& AddEngagements(const char* value) { m_engagementsHasBeenSet = true; m_engagements.push_back(value); return *this; }
113
115
118 inline const IncidentTemplate& GetIncidentTemplate() const{ return m_incidentTemplate; }
119 inline bool IncidentTemplateHasBeenSet() const { return m_incidentTemplateHasBeenSet; }
120 inline void SetIncidentTemplate(const IncidentTemplate& value) { m_incidentTemplateHasBeenSet = true; m_incidentTemplate = value; }
121 inline void SetIncidentTemplate(IncidentTemplate&& value) { m_incidentTemplateHasBeenSet = true; m_incidentTemplate = std::move(value); }
123 inline CreateResponsePlanRequest& WithIncidentTemplate(IncidentTemplate&& value) { SetIncidentTemplate(std::move(value)); return *this;}
125
127
130 inline const Aws::Vector<Integration>& GetIntegrations() const{ return m_integrations; }
131 inline bool IntegrationsHasBeenSet() const { return m_integrationsHasBeenSet; }
132 inline void SetIntegrations(const Aws::Vector<Integration>& value) { m_integrationsHasBeenSet = true; m_integrations = value; }
133 inline void SetIntegrations(Aws::Vector<Integration>&& value) { m_integrationsHasBeenSet = true; m_integrations = std::move(value); }
135 inline CreateResponsePlanRequest& WithIntegrations(Aws::Vector<Integration>&& value) { SetIntegrations(std::move(value)); return *this;}
136 inline CreateResponsePlanRequest& AddIntegrations(const Integration& value) { m_integrationsHasBeenSet = true; m_integrations.push_back(value); return *this; }
137 inline CreateResponsePlanRequest& AddIntegrations(Integration&& value) { m_integrationsHasBeenSet = true; m_integrations.push_back(std::move(value)); return *this; }
139
141
144 inline const Aws::String& GetName() const{ return m_name; }
145 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
146 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
147 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
148 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 inline CreateResponsePlanRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
150 inline CreateResponsePlanRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
151 inline CreateResponsePlanRequest& WithName(const char* value) { SetName(value); return *this;}
153
155
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
161 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline CreateResponsePlanRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
164 inline CreateResponsePlanRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
165 inline CreateResponsePlanRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 inline CreateResponsePlanRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
167 inline CreateResponsePlanRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
168 inline CreateResponsePlanRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
169 inline CreateResponsePlanRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
170 inline CreateResponsePlanRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
172 private:
173
174 Aws::Vector<Action> m_actions;
175 bool m_actionsHasBeenSet = false;
176
177 ChatChannel m_chatChannel;
178 bool m_chatChannelHasBeenSet = false;
179
180 Aws::String m_clientToken;
181 bool m_clientTokenHasBeenSet = false;
182
183 Aws::String m_displayName;
184 bool m_displayNameHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_engagements;
187 bool m_engagementsHasBeenSet = false;
188
189 IncidentTemplate m_incidentTemplate;
190 bool m_incidentTemplateHasBeenSet = false;
191
192 Aws::Vector<Integration> m_integrations;
193 bool m_integrationsHasBeenSet = false;
194
195 Aws::String m_name;
196 bool m_nameHasBeenSet = false;
197
199 bool m_tagsHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace SSMIncidents
204} // namespace Aws
CreateResponsePlanRequest & WithName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateResponsePlanRequest & AddIntegrations(const Integration &value)
CreateResponsePlanRequest & WithChatChannel(ChatChannel &&value)
virtual const char * GetServiceRequestName() const override
CreateResponsePlanRequest & AddActions(Action &&value)
CreateResponsePlanRequest & WithIntegrations(Aws::Vector< Integration > &&value)
CreateResponsePlanRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateResponsePlanRequest & AddEngagements(const char *value)
CreateResponsePlanRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetEngagements() const
CreateResponsePlanRequest & WithEngagements(Aws::Vector< Aws::String > &&value)
CreateResponsePlanRequest & AddTags(const char *key, const char *value)
CreateResponsePlanRequest & WithDisplayName(const char *value)
CreateResponsePlanRequest & WithActions(const Aws::Vector< Action > &value)
CreateResponsePlanRequest & AddEngagements(Aws::String &&value)
CreateResponsePlanRequest & AddTags(Aws::String &&key, const char *value)
void SetIntegrations(Aws::Vector< Integration > &&value)
CreateResponsePlanRequest & AddActions(const Action &value)
CreateResponsePlanRequest & WithEngagements(const Aws::Vector< Aws::String > &value)
CreateResponsePlanRequest & WithIncidentTemplate(IncidentTemplate &&value)
void SetIntegrations(const Aws::Vector< Integration > &value)
CreateResponsePlanRequest & AddIntegrations(Integration &&value)
CreateResponsePlanRequest & WithName(const char *value)
CreateResponsePlanRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateResponsePlanRequest & WithClientToken(const Aws::String &value)
CreateResponsePlanRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateResponsePlanRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateResponsePlanRequest & WithClientToken(Aws::String &&value)
CreateResponsePlanRequest & WithIntegrations(const Aws::Vector< Integration > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetEngagements(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Integration > & GetIntegrations() const
CreateResponsePlanRequest & AddTags(const char *key, Aws::String &&value)
void SetActions(const Aws::Vector< Action > &value)
CreateResponsePlanRequest & WithActions(Aws::Vector< Action > &&value)
CreateResponsePlanRequest & WithName(const Aws::String &value)
CreateResponsePlanRequest & WithClientToken(const char *value)
CreateResponsePlanRequest & WithDisplayName(Aws::String &&value)
CreateResponsePlanRequest & AddEngagements(const Aws::String &value)
CreateResponsePlanRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateResponsePlanRequest & WithChatChannel(const ChatChannel &value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
void SetEngagements(const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateResponsePlanRequest & WithIncidentTemplate(const IncidentTemplate &value)
CreateResponsePlanRequest & WithDisplayName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector