AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartIncidentRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm-incidents/model/TriggerDetails.h>
12#include <aws/ssm-incidents/model/RelatedItem.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace SSMIncidents
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSMINCIDENTS_API StartIncidentRequest();
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_SSMINCIDENTS_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline StartIncidentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline StartIncidentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline StartIncidentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
63 inline int GetImpact() const{ return m_impact; }
64 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
65 inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
66 inline StartIncidentRequest& WithImpact(int value) { SetImpact(value); return *this;}
68
70
75 inline const Aws::Vector<RelatedItem>& GetRelatedItems() const{ return m_relatedItems; }
76 inline bool RelatedItemsHasBeenSet() const { return m_relatedItemsHasBeenSet; }
77 inline void SetRelatedItems(const Aws::Vector<RelatedItem>& value) { m_relatedItemsHasBeenSet = true; m_relatedItems = value; }
78 inline void SetRelatedItems(Aws::Vector<RelatedItem>&& value) { m_relatedItemsHasBeenSet = true; m_relatedItems = std::move(value); }
80 inline StartIncidentRequest& WithRelatedItems(Aws::Vector<RelatedItem>&& value) { SetRelatedItems(std::move(value)); return *this;}
81 inline StartIncidentRequest& AddRelatedItems(const RelatedItem& value) { m_relatedItemsHasBeenSet = true; m_relatedItems.push_back(value); return *this; }
82 inline StartIncidentRequest& AddRelatedItems(RelatedItem&& value) { m_relatedItemsHasBeenSet = true; m_relatedItems.push_back(std::move(value)); return *this; }
84
86
91 inline const Aws::String& GetResponsePlanArn() const{ return m_responsePlanArn; }
92 inline bool ResponsePlanArnHasBeenSet() const { return m_responsePlanArnHasBeenSet; }
93 inline void SetResponsePlanArn(const Aws::String& value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn = value; }
94 inline void SetResponsePlanArn(Aws::String&& value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn = std::move(value); }
95 inline void SetResponsePlanArn(const char* value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn.assign(value); }
96 inline StartIncidentRequest& WithResponsePlanArn(const Aws::String& value) { SetResponsePlanArn(value); return *this;}
97 inline StartIncidentRequest& WithResponsePlanArn(Aws::String&& value) { SetResponsePlanArn(std::move(value)); return *this;}
98 inline StartIncidentRequest& WithResponsePlanArn(const char* value) { SetResponsePlanArn(value); return *this;}
100
102
106 inline const Aws::String& GetTitle() const{ return m_title; }
107 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
108 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
109 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
110 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
111 inline StartIncidentRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
112 inline StartIncidentRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
113 inline StartIncidentRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
115
117
120 inline const TriggerDetails& GetTriggerDetails() const{ return m_triggerDetails; }
121 inline bool TriggerDetailsHasBeenSet() const { return m_triggerDetailsHasBeenSet; }
122 inline void SetTriggerDetails(const TriggerDetails& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = value; }
123 inline void SetTriggerDetails(TriggerDetails&& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = std::move(value); }
124 inline StartIncidentRequest& WithTriggerDetails(const TriggerDetails& value) { SetTriggerDetails(value); return *this;}
125 inline StartIncidentRequest& WithTriggerDetails(TriggerDetails&& value) { SetTriggerDetails(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_clientToken;
130 bool m_clientTokenHasBeenSet = false;
131
132 int m_impact;
133 bool m_impactHasBeenSet = false;
134
135 Aws::Vector<RelatedItem> m_relatedItems;
136 bool m_relatedItemsHasBeenSet = false;
137
138 Aws::String m_responsePlanArn;
139 bool m_responsePlanArnHasBeenSet = false;
140
141 Aws::String m_title;
142 bool m_titleHasBeenSet = false;
143
144 TriggerDetails m_triggerDetails;
145 bool m_triggerDetailsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SSMIncidents
150} // namespace Aws
void SetTriggerDetails(const TriggerDetails &value)
StartIncidentRequest & WithResponsePlanArn(const char *value)
StartIncidentRequest & WithClientToken(const Aws::String &value)
void SetRelatedItems(Aws::Vector< RelatedItem > &&value)
StartIncidentRequest & WithRelatedItems(Aws::Vector< RelatedItem > &&value)
StartIncidentRequest & WithTriggerDetails(TriggerDetails &&value)
StartIncidentRequest & WithClientToken(Aws::String &&value)
StartIncidentRequest & AddRelatedItems(const RelatedItem &value)
void SetRelatedItems(const Aws::Vector< RelatedItem > &value)
StartIncidentRequest & WithResponsePlanArn(const Aws::String &value)
StartIncidentRequest & WithTitle(Aws::String &&value)
const Aws::Vector< RelatedItem > & GetRelatedItems() const
virtual const char * GetServiceRequestName() const override
StartIncidentRequest & WithTitle(const char *value)
StartIncidentRequest & WithTitle(const Aws::String &value)
StartIncidentRequest & WithClientToken(const char *value)
StartIncidentRequest & AddRelatedItems(RelatedItem &&value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
StartIncidentRequest & WithResponsePlanArn(Aws::String &&value)
StartIncidentRequest & WithRelatedItems(const Aws::Vector< RelatedItem > &value)
StartIncidentRequest & WithTriggerDetails(const TriggerDetails &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector