AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ActionsT = Aws::Vector<Action>>
50 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
51 template<typename ActionsT = Aws::Vector<Action>>
52 CreateResponsePlanRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
53 template<typename ActionsT = Action>
54 CreateResponsePlanRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
56
58
61 inline const ChatChannel& GetChatChannel() const { return m_chatChannel; }
62 inline bool ChatChannelHasBeenSet() const { return m_chatChannelHasBeenSet; }
63 template<typename ChatChannelT = ChatChannel>
64 void SetChatChannel(ChatChannelT&& value) { m_chatChannelHasBeenSet = true; m_chatChannel = std::forward<ChatChannelT>(value); }
65 template<typename ChatChannelT = ChatChannel>
66 CreateResponsePlanRequest& WithChatChannel(ChatChannelT&& value) { SetChatChannel(std::forward<ChatChannelT>(value)); return *this;}
68
70
74 inline const Aws::String& GetClientToken() const { return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 template<typename ClientTokenT = Aws::String>
77 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
78 template<typename ClientTokenT = Aws::String>
79 CreateResponsePlanRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDisplayName() const { return m_displayName; }
87 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
88 template<typename DisplayNameT = Aws::String>
89 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
90 template<typename DisplayNameT = Aws::String>
91 CreateResponsePlanRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
93
95
99 inline const Aws::Vector<Aws::String>& GetEngagements() const { return m_engagements; }
100 inline bool EngagementsHasBeenSet() const { return m_engagementsHasBeenSet; }
101 template<typename EngagementsT = Aws::Vector<Aws::String>>
102 void SetEngagements(EngagementsT&& value) { m_engagementsHasBeenSet = true; m_engagements = std::forward<EngagementsT>(value); }
103 template<typename EngagementsT = Aws::Vector<Aws::String>>
104 CreateResponsePlanRequest& WithEngagements(EngagementsT&& value) { SetEngagements(std::forward<EngagementsT>(value)); return *this;}
105 template<typename EngagementsT = Aws::String>
106 CreateResponsePlanRequest& AddEngagements(EngagementsT&& value) { m_engagementsHasBeenSet = true; m_engagements.emplace_back(std::forward<EngagementsT>(value)); return *this; }
108
110
113 inline const IncidentTemplate& GetIncidentTemplate() const { return m_incidentTemplate; }
114 inline bool IncidentTemplateHasBeenSet() const { return m_incidentTemplateHasBeenSet; }
115 template<typename IncidentTemplateT = IncidentTemplate>
116 void SetIncidentTemplate(IncidentTemplateT&& value) { m_incidentTemplateHasBeenSet = true; m_incidentTemplate = std::forward<IncidentTemplateT>(value); }
117 template<typename IncidentTemplateT = IncidentTemplate>
118 CreateResponsePlanRequest& WithIncidentTemplate(IncidentTemplateT&& value) { SetIncidentTemplate(std::forward<IncidentTemplateT>(value)); return *this;}
120
122
125 inline const Aws::Vector<Integration>& GetIntegrations() const { return m_integrations; }
126 inline bool IntegrationsHasBeenSet() const { return m_integrationsHasBeenSet; }
127 template<typename IntegrationsT = Aws::Vector<Integration>>
128 void SetIntegrations(IntegrationsT&& value) { m_integrationsHasBeenSet = true; m_integrations = std::forward<IntegrationsT>(value); }
129 template<typename IntegrationsT = Aws::Vector<Integration>>
130 CreateResponsePlanRequest& WithIntegrations(IntegrationsT&& value) { SetIntegrations(std::forward<IntegrationsT>(value)); return *this;}
131 template<typename IntegrationsT = Integration>
132 CreateResponsePlanRequest& AddIntegrations(IntegrationsT&& value) { m_integrationsHasBeenSet = true; m_integrations.emplace_back(std::forward<IntegrationsT>(value)); return *this; }
134
136
139 inline const Aws::String& GetName() const { return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 template<typename NameT = Aws::String>
142 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
143 template<typename NameT = Aws::String>
144 CreateResponsePlanRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
146
148
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
155 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 CreateResponsePlanRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
157 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
158 CreateResponsePlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
159 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
160 }
162 private:
163
164 Aws::Vector<Action> m_actions;
165 bool m_actionsHasBeenSet = false;
166
167 ChatChannel m_chatChannel;
168 bool m_chatChannelHasBeenSet = false;
169
171 bool m_clientTokenHasBeenSet = true;
172
173 Aws::String m_displayName;
174 bool m_displayNameHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_engagements;
177 bool m_engagementsHasBeenSet = false;
178
179 IncidentTemplate m_incidentTemplate;
180 bool m_incidentTemplateHasBeenSet = false;
181
182 Aws::Vector<Integration> m_integrations;
183 bool m_integrationsHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace SSMIncidents
194} // namespace Aws
CreateResponsePlanRequest & WithIncidentTemplate(IncidentTemplateT &&value)
CreateResponsePlanRequest & AddActions(ActionsT &&value)
virtual const char * GetServiceRequestName() const override
CreateResponsePlanRequest & AddIntegrations(IntegrationsT &&value)
AWS_SSMINCIDENTS_API CreateResponsePlanRequest()=default
CreateResponsePlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< Aws::String > & GetEngagements() const
CreateResponsePlanRequest & WithName(NameT &&value)
CreateResponsePlanRequest & WithChatChannel(ChatChannelT &&value)
CreateResponsePlanRequest & WithActions(ActionsT &&value)
CreateResponsePlanRequest & AddEngagements(EngagementsT &&value)
CreateResponsePlanRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Integration > & GetIntegrations() const
CreateResponsePlanRequest & WithEngagements(EngagementsT &&value)
CreateResponsePlanRequest & WithIntegrations(IntegrationsT &&value)
CreateResponsePlanRequest & WithDisplayName(DisplayNameT &&value)
CreateResponsePlanRequest & WithTags(TagsT &&value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
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