AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigurationEvent.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-insights/model/ConfigurationEventStatus.h>
10#include <aws/application-insights/model/ConfigurationEventResourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationInsights
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_APPLICATIONINSIGHTS_API ConfigurationEvent() = default;
38 AWS_APPLICATIONINSIGHTS_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONINSIGHTS_API ConfigurationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
49 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
50 template<typename ResourceGroupNameT = Aws::String>
51 void SetResourceGroupName(ResourceGroupNameT&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::forward<ResourceGroupNameT>(value); }
52 template<typename ResourceGroupNameT = Aws::String>
53 ConfigurationEvent& WithResourceGroupName(ResourceGroupNameT&& value) { SetResourceGroupName(std::forward<ResourceGroupNameT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
65 template<typename AccountIdT = Aws::String>
66 ConfigurationEvent& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetMonitoredResourceARN() const { return m_monitoredResourceARN; }
74 inline bool MonitoredResourceARNHasBeenSet() const { return m_monitoredResourceARNHasBeenSet; }
75 template<typename MonitoredResourceARNT = Aws::String>
76 void SetMonitoredResourceARN(MonitoredResourceARNT&& value) { m_monitoredResourceARNHasBeenSet = true; m_monitoredResourceARN = std::forward<MonitoredResourceARNT>(value); }
77 template<typename MonitoredResourceARNT = Aws::String>
78 ConfigurationEvent& WithMonitoredResourceARN(MonitoredResourceARNT&& value) { SetMonitoredResourceARN(std::forward<MonitoredResourceARNT>(value)); return *this;}
80
82
86 inline ConfigurationEventStatus GetEventStatus() const { return m_eventStatus; }
87 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
88 inline void SetEventStatus(ConfigurationEventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
91
93
97 inline ConfigurationEventResourceType GetEventResourceType() const { return m_eventResourceType; }
98 inline bool EventResourceTypeHasBeenSet() const { return m_eventResourceTypeHasBeenSet; }
99 inline void SetEventResourceType(ConfigurationEventResourceType value) { m_eventResourceTypeHasBeenSet = true; m_eventResourceType = value; }
102
104
107 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
108 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
109 template<typename EventTimeT = Aws::Utils::DateTime>
110 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
111 template<typename EventTimeT = Aws::Utils::DateTime>
112 ConfigurationEvent& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
114
116
119 inline const Aws::String& GetEventDetail() const { return m_eventDetail; }
120 inline bool EventDetailHasBeenSet() const { return m_eventDetailHasBeenSet; }
121 template<typename EventDetailT = Aws::String>
122 void SetEventDetail(EventDetailT&& value) { m_eventDetailHasBeenSet = true; m_eventDetail = std::forward<EventDetailT>(value); }
123 template<typename EventDetailT = Aws::String>
124 ConfigurationEvent& WithEventDetail(EventDetailT&& value) { SetEventDetail(std::forward<EventDetailT>(value)); return *this;}
126
128
131 inline const Aws::String& GetEventResourceName() const { return m_eventResourceName; }
132 inline bool EventResourceNameHasBeenSet() const { return m_eventResourceNameHasBeenSet; }
133 template<typename EventResourceNameT = Aws::String>
134 void SetEventResourceName(EventResourceNameT&& value) { m_eventResourceNameHasBeenSet = true; m_eventResourceName = std::forward<EventResourceNameT>(value); }
135 template<typename EventResourceNameT = Aws::String>
136 ConfigurationEvent& WithEventResourceName(EventResourceNameT&& value) { SetEventResourceName(std::forward<EventResourceNameT>(value)); return *this;}
138 private:
139
140 Aws::String m_resourceGroupName;
141 bool m_resourceGroupNameHasBeenSet = false;
142
143 Aws::String m_accountId;
144 bool m_accountIdHasBeenSet = false;
145
146 Aws::String m_monitoredResourceARN;
147 bool m_monitoredResourceARNHasBeenSet = false;
148
150 bool m_eventStatusHasBeenSet = false;
151
153 bool m_eventResourceTypeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_eventTime{};
156 bool m_eventTimeHasBeenSet = false;
157
158 Aws::String m_eventDetail;
159 bool m_eventDetailHasBeenSet = false;
160
161 Aws::String m_eventResourceName;
162 bool m_eventResourceNameHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ApplicationInsights
167} // 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