AWS SDK for C++  1.9.160
AWS SDK for C++
StartIncidentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace SSMIncidents
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "StartIncident"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 
49  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 
55  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
56 
61  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
62 
67  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
68 
73  inline StartIncidentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
74 
79  inline StartIncidentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
80 
85  inline StartIncidentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
86 
87 
100  inline int GetImpact() const{ return m_impact; }
101 
114  inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
115 
128  inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
129 
142  inline StartIncidentRequest& WithImpact(int value) { SetImpact(value); return *this;}
143 
144 
150  inline const Aws::Vector<RelatedItem>& GetRelatedItems() const{ return m_relatedItems; }
151 
157  inline bool RelatedItemsHasBeenSet() const { return m_relatedItemsHasBeenSet; }
158 
164  inline void SetRelatedItems(const Aws::Vector<RelatedItem>& value) { m_relatedItemsHasBeenSet = true; m_relatedItems = value; }
165 
171  inline void SetRelatedItems(Aws::Vector<RelatedItem>&& value) { m_relatedItemsHasBeenSet = true; m_relatedItems = std::move(value); }
172 
178  inline StartIncidentRequest& WithRelatedItems(const Aws::Vector<RelatedItem>& value) { SetRelatedItems(value); return *this;}
179 
185  inline StartIncidentRequest& WithRelatedItems(Aws::Vector<RelatedItem>&& value) { SetRelatedItems(std::move(value)); return *this;}
186 
192  inline StartIncidentRequest& AddRelatedItems(const RelatedItem& value) { m_relatedItemsHasBeenSet = true; m_relatedItems.push_back(value); return *this; }
193 
199  inline StartIncidentRequest& AddRelatedItems(RelatedItem&& value) { m_relatedItemsHasBeenSet = true; m_relatedItems.push_back(std::move(value)); return *this; }
200 
201 
207  inline const Aws::String& GetResponsePlanArn() const{ return m_responsePlanArn; }
208 
214  inline bool ResponsePlanArnHasBeenSet() const { return m_responsePlanArnHasBeenSet; }
215 
221  inline void SetResponsePlanArn(const Aws::String& value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn = value; }
222 
228  inline void SetResponsePlanArn(Aws::String&& value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn = std::move(value); }
229 
235  inline void SetResponsePlanArn(const char* value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn.assign(value); }
236 
242  inline StartIncidentRequest& WithResponsePlanArn(const Aws::String& value) { SetResponsePlanArn(value); return *this;}
243 
249  inline StartIncidentRequest& WithResponsePlanArn(Aws::String&& value) { SetResponsePlanArn(std::move(value)); return *this;}
250 
256  inline StartIncidentRequest& WithResponsePlanArn(const char* value) { SetResponsePlanArn(value); return *this;}
257 
258 
263  inline const Aws::String& GetTitle() const{ return m_title; }
264 
269  inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
270 
275  inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
276 
281  inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
282 
287  inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
288 
293  inline StartIncidentRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
294 
299  inline StartIncidentRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
300 
305  inline StartIncidentRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
306 
307 
311  inline const TriggerDetails& GetTriggerDetails() const{ return m_triggerDetails; }
312 
316  inline bool TriggerDetailsHasBeenSet() const { return m_triggerDetailsHasBeenSet; }
317 
321  inline void SetTriggerDetails(const TriggerDetails& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = value; }
322 
326  inline void SetTriggerDetails(TriggerDetails&& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = std::move(value); }
327 
331  inline StartIncidentRequest& WithTriggerDetails(const TriggerDetails& value) { SetTriggerDetails(value); return *this;}
332 
336  inline StartIncidentRequest& WithTriggerDetails(TriggerDetails&& value) { SetTriggerDetails(std::move(value)); return *this;}
337 
338  private:
339 
340  Aws::String m_clientToken;
341  bool m_clientTokenHasBeenSet;
342 
343  int m_impact;
344  bool m_impactHasBeenSet;
345 
346  Aws::Vector<RelatedItem> m_relatedItems;
347  bool m_relatedItemsHasBeenSet;
348 
349  Aws::String m_responsePlanArn;
350  bool m_responsePlanArnHasBeenSet;
351 
352  Aws::String m_title;
353  bool m_titleHasBeenSet;
354 
355  TriggerDetails m_triggerDetails;
356  bool m_triggerDetailsHasBeenSet;
357  };
358 
359 } // namespace Model
360 } // namespace SSMIncidents
361 } // namespace Aws
Aws::SSMIncidents::Model::StartIncidentRequest::GetTriggerDetails
const TriggerDetails & GetTriggerDetails() const
Definition: StartIncidentRequest.h:311
Aws::SSMIncidents::Model::StartIncidentRequest::GetTitle
const Aws::String & GetTitle() const
Definition: StartIncidentRequest.h:263
Aws::SSMIncidents::Model::StartIncidentRequest::GetRelatedItems
const Aws::Vector< RelatedItem > & GetRelatedItems() const
Definition: StartIncidentRequest.h:150
Aws::SSMIncidents::Model::StartIncidentRequest::SetRelatedItems
void SetRelatedItems(Aws::Vector< RelatedItem > &&value)
Definition: StartIncidentRequest.h:171
Aws::SSMIncidents::Model::StartIncidentRequest::StartIncidentRequest
StartIncidentRequest()
Aws::SSMIncidents::Model::StartIncidentRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: StartIncidentRequest.h:61
Aws::SSMIncidents::Model::StartIncidentRequest::TitleHasBeenSet
bool TitleHasBeenSet() const
Definition: StartIncidentRequest.h:269
Aws::SSMIncidents::Model::StartIncidentRequest::SetResponsePlanArn
void SetResponsePlanArn(const char *value)
Definition: StartIncidentRequest.h:235
Aws::SSMIncidents::Model::StartIncidentRequest::WithImpact
StartIncidentRequest & WithImpact(int value)
Definition: StartIncidentRequest.h:142
AWS_SSMINCIDENTS_API
#define AWS_SSMINCIDENTS_API
Definition: SSMIncidents_EXPORTS.h:28
Aws::SSMIncidents::Model::TriggerDetails
Definition: TriggerDetails.h:34
SSMIncidentsRequest.h
Aws::SSMIncidents::Model::StartIncidentRequest::SetTitle
void SetTitle(Aws::String &&value)
Definition: StartIncidentRequest.h:281
Aws::SSMIncidents::Model::StartIncidentRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: StartIncidentRequest.h:49
Aws::SSMIncidents::Model::StartIncidentRequest::TriggerDetailsHasBeenSet
bool TriggerDetailsHasBeenSet() const
Definition: StartIncidentRequest.h:316
Aws::SSMIncidents::Model::StartIncidentRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: StartIncidentRequest.h:43
SSMIncidents_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSMIncidents::Model::StartIncidentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartIncidentRequest.h:34
TriggerDetails.h
Aws::SSMIncidents::Model::StartIncidentRequest::WithClientToken
StartIncidentRequest & WithClientToken(Aws::String &&value)
Definition: StartIncidentRequest.h:79
Aws::SSMIncidents::Model::StartIncidentRequest::WithClientToken
StartIncidentRequest & WithClientToken(const Aws::String &value)
Definition: StartIncidentRequest.h:73
AWSVector.h
Aws::SSMIncidents::Model::StartIncidentRequest::ResponsePlanArnHasBeenSet
bool ResponsePlanArnHasBeenSet() const
Definition: StartIncidentRequest.h:214
Aws::SSMIncidents::Model::StartIncidentRequest::SetTriggerDetails
void SetTriggerDetails(TriggerDetails &&value)
Definition: StartIncidentRequest.h:326
Aws::SSMIncidents::Model::StartIncidentRequest::AddRelatedItems
StartIncidentRequest & AddRelatedItems(const RelatedItem &value)
Definition: StartIncidentRequest.h:192
Aws::SSMIncidents::Model::StartIncidentRequest::WithClientToken
StartIncidentRequest & WithClientToken(const char *value)
Definition: StartIncidentRequest.h:85
Aws::SSMIncidents::Model::StartIncidentRequest::SetImpact
void SetImpact(int value)
Definition: StartIncidentRequest.h:128
Aws::SSMIncidents::Model::StartIncidentRequest::WithTitle
StartIncidentRequest & WithTitle(const char *value)
Definition: StartIncidentRequest.h:305
Aws::SSMIncidents::Model::StartIncidentRequest::WithRelatedItems
StartIncidentRequest & WithRelatedItems(Aws::Vector< RelatedItem > &&value)
Definition: StartIncidentRequest.h:185
Aws::SSMIncidents::Model::StartIncidentRequest::SetResponsePlanArn
void SetResponsePlanArn(Aws::String &&value)
Definition: StartIncidentRequest.h:228
Aws::SSMIncidents::Model::StartIncidentRequest::SetClientToken
void SetClientToken(const char *value)
Definition: StartIncidentRequest.h:67
Aws::SSMIncidents::Model::StartIncidentRequest::RelatedItemsHasBeenSet
bool RelatedItemsHasBeenSet() const
Definition: StartIncidentRequest.h:157
Aws::SSMIncidents::Model::StartIncidentRequest::SetTitle
void SetTitle(const Aws::String &value)
Definition: StartIncidentRequest.h:275
Aws::SSMIncidents::Model::StartIncidentRequest::WithResponsePlanArn
StartIncidentRequest & WithResponsePlanArn(const Aws::String &value)
Definition: StartIncidentRequest.h:242
Aws::SSMIncidents::Model::StartIncidentRequest::ImpactHasBeenSet
bool ImpactHasBeenSet() const
Definition: StartIncidentRequest.h:114
AWSString.h
Aws::SSMIncidents::Model::StartIncidentRequest::WithRelatedItems
StartIncidentRequest & WithRelatedItems(const Aws::Vector< RelatedItem > &value)
Definition: StartIncidentRequest.h:178
Aws::SSMIncidents::Model::StartIncidentRequest::GetImpact
int GetImpact() const
Definition: StartIncidentRequest.h:100
Aws::SSMIncidents::Model::StartIncidentRequest::SetResponsePlanArn
void SetResponsePlanArn(const Aws::String &value)
Definition: StartIncidentRequest.h:221
Aws::SSMIncidents::Model::StartIncidentRequest::WithTitle
StartIncidentRequest & WithTitle(const Aws::String &value)
Definition: StartIncidentRequest.h:293
Aws::SSMIncidents::Model::StartIncidentRequest::AddRelatedItems
StartIncidentRequest & AddRelatedItems(RelatedItem &&value)
Definition: StartIncidentRequest.h:199
Aws::SSMIncidents::Model::StartIncidentRequest
Definition: StartIncidentRequest.h:26
Aws::SSMIncidents::Model::StartIncidentRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: StartIncidentRequest.h:55
Aws::SSMIncidents::Model::StartIncidentRequest::WithTriggerDetails
StartIncidentRequest & WithTriggerDetails(TriggerDetails &&value)
Definition: StartIncidentRequest.h:336
Aws::SSMIncidents::Model::StartIncidentRequest::SetTitle
void SetTitle(const char *value)
Definition: StartIncidentRequest.h:287
Aws::SSMIncidents::Model::StartIncidentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSMIncidents::Model::StartIncidentRequest::WithTriggerDetails
StartIncidentRequest & WithTriggerDetails(const TriggerDetails &value)
Definition: StartIncidentRequest.h:331
Aws
Definition: AccessManagementClient.h:15
Aws::SSMIncidents::Model::StartIncidentRequest::SetTriggerDetails
void SetTriggerDetails(const TriggerDetails &value)
Definition: StartIncidentRequest.h:321
Aws::SSMIncidents::Model::StartIncidentRequest::WithResponsePlanArn
StartIncidentRequest & WithResponsePlanArn(Aws::String &&value)
Definition: StartIncidentRequest.h:249
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSMIncidents::Model::StartIncidentRequest::SetRelatedItems
void SetRelatedItems(const Aws::Vector< RelatedItem > &value)
Definition: StartIncidentRequest.h:164
Aws::SSMIncidents::Model::StartIncidentRequest::GetResponsePlanArn
const Aws::String & GetResponsePlanArn() const
Definition: StartIncidentRequest.h:207
UUID.h
Aws::SSMIncidents::Model::StartIncidentRequest::WithResponsePlanArn
StartIncidentRequest & WithResponsePlanArn(const char *value)
Definition: StartIncidentRequest.h:256
Aws::SSMIncidents::Model::StartIncidentRequest::WithTitle
StartIncidentRequest & WithTitle(Aws::String &&value)
Definition: StartIncidentRequest.h:299
Aws::SSMIncidents::SSMIncidentsRequest
Definition: SSMIncidentsRequest.h:17