AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ConfigurationEvent.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/ConfigurationEventResourceType.h>
9#include <aws/application-insights/model/ConfigurationEventStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationInsights {
23namespace Model {
24
31 public:
32 AWS_APPLICATIONINSIGHTS_API ConfigurationEvent() = default;
33 AWS_APPLICATIONINSIGHTS_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONINSIGHTS_API ConfigurationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
43 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
44 template <typename ResourceGroupNameT = Aws::String>
45 void SetResourceGroupName(ResourceGroupNameT&& value) {
46 m_resourceGroupNameHasBeenSet = true;
47 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
48 }
49 template <typename ResourceGroupNameT = Aws::String>
50 ConfigurationEvent& WithResourceGroupName(ResourceGroupNameT&& value) {
51 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetAccountId() const { return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 template <typename AccountIdT = Aws::String>
64 void SetAccountId(AccountIdT&& value) {
65 m_accountIdHasBeenSet = true;
66 m_accountId = std::forward<AccountIdT>(value);
67 }
68 template <typename AccountIdT = Aws::String>
69 ConfigurationEvent& WithAccountId(AccountIdT&& value) {
70 SetAccountId(std::forward<AccountIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetMonitoredResourceARN() const { return m_monitoredResourceARN; }
80 inline bool MonitoredResourceARNHasBeenSet() const { return m_monitoredResourceARNHasBeenSet; }
81 template <typename MonitoredResourceARNT = Aws::String>
82 void SetMonitoredResourceARN(MonitoredResourceARNT&& value) {
83 m_monitoredResourceARNHasBeenSet = true;
84 m_monitoredResourceARN = std::forward<MonitoredResourceARNT>(value);
85 }
86 template <typename MonitoredResourceARNT = Aws::String>
87 ConfigurationEvent& WithMonitoredResourceARN(MonitoredResourceARNT&& value) {
88 SetMonitoredResourceARN(std::forward<MonitoredResourceARNT>(value));
89 return *this;
90 }
92
94
98 inline ConfigurationEventStatus GetEventStatus() const { return m_eventStatus; }
99 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
101 m_eventStatusHasBeenSet = true;
102 m_eventStatus = value;
103 }
105 SetEventStatus(value);
106 return *this;
107 }
109
111
115 inline ConfigurationEventResourceType GetEventResourceType() const { return m_eventResourceType; }
116 inline bool EventResourceTypeHasBeenSet() const { return m_eventResourceTypeHasBeenSet; }
118 m_eventResourceTypeHasBeenSet = true;
119 m_eventResourceType = value;
120 }
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
132 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
133 template <typename EventTimeT = Aws::Utils::DateTime>
134 void SetEventTime(EventTimeT&& value) {
135 m_eventTimeHasBeenSet = true;
136 m_eventTime = std::forward<EventTimeT>(value);
137 }
138 template <typename EventTimeT = Aws::Utils::DateTime>
139 ConfigurationEvent& WithEventTime(EventTimeT&& value) {
140 SetEventTime(std::forward<EventTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetEventDetail() const { return m_eventDetail; }
150 inline bool EventDetailHasBeenSet() const { return m_eventDetailHasBeenSet; }
151 template <typename EventDetailT = Aws::String>
152 void SetEventDetail(EventDetailT&& value) {
153 m_eventDetailHasBeenSet = true;
154 m_eventDetail = std::forward<EventDetailT>(value);
155 }
156 template <typename EventDetailT = Aws::String>
157 ConfigurationEvent& WithEventDetail(EventDetailT&& value) {
158 SetEventDetail(std::forward<EventDetailT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetEventResourceName() const { return m_eventResourceName; }
168 inline bool EventResourceNameHasBeenSet() const { return m_eventResourceNameHasBeenSet; }
169 template <typename EventResourceNameT = Aws::String>
170 void SetEventResourceName(EventResourceNameT&& value) {
171 m_eventResourceNameHasBeenSet = true;
172 m_eventResourceName = std::forward<EventResourceNameT>(value);
173 }
174 template <typename EventResourceNameT = Aws::String>
175 ConfigurationEvent& WithEventResourceName(EventResourceNameT&& value) {
176 SetEventResourceName(std::forward<EventResourceNameT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_resourceGroupName;
182
183 Aws::String m_accountId;
184
185 Aws::String m_monitoredResourceARN;
186
188
190
191 Aws::Utils::DateTime m_eventTime{};
192
193 Aws::String m_eventDetail;
194
195 Aws::String m_eventResourceName;
196 bool m_resourceGroupNameHasBeenSet = false;
197 bool m_accountIdHasBeenSet = false;
198 bool m_monitoredResourceARNHasBeenSet = false;
199 bool m_eventStatusHasBeenSet = false;
200 bool m_eventResourceTypeHasBeenSet = false;
201 bool m_eventTimeHasBeenSet = false;
202 bool m_eventDetailHasBeenSet = false;
203 bool m_eventResourceNameHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace ApplicationInsights
208} // namespace Aws
ConfigurationEvent & WithResourceGroupName(ResourceGroupNameT &&value)
AWS_APPLICATIONINSIGHTS_API ConfigurationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationEventResourceType GetEventResourceType() const
ConfigurationEvent & WithEventStatus(ConfigurationEventStatus value)
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationEvent & WithEventResourceType(ConfigurationEventResourceType value)
ConfigurationEvent & WithEventResourceName(EventResourceNameT &&value)
void SetMonitoredResourceARN(MonitoredResourceARNT &&value)
void SetEventStatus(ConfigurationEventStatus value)
ConfigurationEvent & WithEventTime(EventTimeT &&value)
ConfigurationEvent & WithEventDetail(EventDetailT &&value)
void SetEventResourceType(ConfigurationEventResourceType value)
ConfigurationEvent & WithAccountId(AccountIdT &&value)
void SetResourceGroupName(ResourceGroupNameT &&value)
ConfigurationEvent & WithMonitoredResourceARN(MonitoredResourceARNT &&value)
AWS_APPLICATIONINSIGHTS_API ConfigurationEvent()=default
const Aws::Utils::DateTime & GetEventTime() const
AWS_APPLICATIONINSIGHTS_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue