AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ApplicationComponent.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/OsType.h>
9#include <aws/application-insights/model/Tier.h>
10#include <aws/core/utils/memory/stl/AWSMap.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
32 public:
33 AWS_APPLICATIONINSIGHTS_API ApplicationComponent() = default;
34 AWS_APPLICATIONINSIGHTS_API ApplicationComponent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONINSIGHTS_API ApplicationComponent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetComponentName() const { return m_componentName; }
43 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
44 template <typename ComponentNameT = Aws::String>
45 void SetComponentName(ComponentNameT&& value) {
46 m_componentNameHasBeenSet = true;
47 m_componentName = std::forward<ComponentNameT>(value);
48 }
49 template <typename ComponentNameT = Aws::String>
50 ApplicationComponent& WithComponentName(ComponentNameT&& value) {
51 SetComponentName(std::forward<ComponentNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetComponentRemarks() const { return m_componentRemarks; }
62 inline bool ComponentRemarksHasBeenSet() const { return m_componentRemarksHasBeenSet; }
63 template <typename ComponentRemarksT = Aws::String>
64 void SetComponentRemarks(ComponentRemarksT&& value) {
65 m_componentRemarksHasBeenSet = true;
66 m_componentRemarks = std::forward<ComponentRemarksT>(value);
67 }
68 template <typename ComponentRemarksT = Aws::String>
69 ApplicationComponent& WithComponentRemarks(ComponentRemarksT&& value) {
70 SetComponentRemarks(std::forward<ComponentRemarksT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetResourceType() const { return m_resourceType; }
81 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
82 template <typename ResourceTypeT = Aws::String>
83 void SetResourceType(ResourceTypeT&& value) {
84 m_resourceTypeHasBeenSet = true;
85 m_resourceType = std::forward<ResourceTypeT>(value);
86 }
87 template <typename ResourceTypeT = Aws::String>
88 ApplicationComponent& WithResourceType(ResourceTypeT&& value) {
89 SetResourceType(std::forward<ResourceTypeT>(value));
90 return *this;
91 }
93
95
98 inline OsType GetOsType() const { return m_osType; }
99 inline bool OsTypeHasBeenSet() const { return m_osTypeHasBeenSet; }
100 inline void SetOsType(OsType value) {
101 m_osTypeHasBeenSet = true;
102 m_osType = value;
103 }
105 SetOsType(value);
106 return *this;
107 }
109
111
114 inline Tier GetTier() const { return m_tier; }
115 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
116 inline void SetTier(Tier value) {
117 m_tierHasBeenSet = true;
118 m_tier = value;
119 }
121 SetTier(value);
122 return *this;
123 }
125
127
130 inline bool GetMonitor() const { return m_monitor; }
131 inline bool MonitorHasBeenSet() const { return m_monitorHasBeenSet; }
132 inline void SetMonitor(bool value) {
133 m_monitorHasBeenSet = true;
134 m_monitor = value;
135 }
136 inline ApplicationComponent& WithMonitor(bool value) {
137 SetMonitor(value);
138 return *this;
139 }
141
143
146 inline const Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>& GetDetectedWorkload() const { return m_detectedWorkload; }
147 inline bool DetectedWorkloadHasBeenSet() const { return m_detectedWorkloadHasBeenSet; }
148 template <typename DetectedWorkloadT = Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>>
149 void SetDetectedWorkload(DetectedWorkloadT&& value) {
150 m_detectedWorkloadHasBeenSet = true;
151 m_detectedWorkload = std::forward<DetectedWorkloadT>(value);
152 }
153 template <typename DetectedWorkloadT = Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>>
154 ApplicationComponent& WithDetectedWorkload(DetectedWorkloadT&& value) {
155 SetDetectedWorkload(std::forward<DetectedWorkloadT>(value));
156 return *this;
157 }
159 m_detectedWorkloadHasBeenSet = true;
160 m_detectedWorkload.emplace(key, value);
161 return *this;
162 }
164 private:
165 Aws::String m_componentName;
166
167 Aws::String m_componentRemarks;
168
169 Aws::String m_resourceType;
170
171 OsType m_osType{OsType::NOT_SET};
172
173 Tier m_tier{Tier::NOT_SET};
174
175 bool m_monitor{false};
176
178 bool m_componentNameHasBeenSet = false;
179 bool m_componentRemarksHasBeenSet = false;
180 bool m_resourceTypeHasBeenSet = false;
181 bool m_osTypeHasBeenSet = false;
182 bool m_tierHasBeenSet = false;
183 bool m_monitorHasBeenSet = false;
184 bool m_detectedWorkloadHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace ApplicationInsights
189} // namespace Aws
ApplicationComponent & WithComponentRemarks(ComponentRemarksT &&value)
const Aws::Map< Tier, Aws::Map< Aws::String, Aws::String > > & GetDetectedWorkload() const
AWS_APPLICATIONINSIGHTS_API ApplicationComponent()=default
ApplicationComponent & WithDetectedWorkload(DetectedWorkloadT &&value)
AWS_APPLICATIONINSIGHTS_API ApplicationComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationComponent & WithResourceType(ResourceTypeT &&value)
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationComponent & WithComponentName(ComponentNameT &&value)
ApplicationComponent & AddDetectedWorkload(Tier key, Aws::Map< Aws::String, Aws::String > value)
AWS_APPLICATIONINSIGHTS_API ApplicationComponent(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue