AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApplicationComponent.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/OsType.h>
10#include <aws/application-insights/model/Tier.h>
11#include <aws/core/utils/memory/stl/AWSMap.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
36 {
37 public:
38 AWS_APPLICATIONINSIGHTS_API ApplicationComponent() = default;
39 AWS_APPLICATIONINSIGHTS_API ApplicationComponent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONINSIGHTS_API ApplicationComponent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetComponentName() const { return m_componentName; }
49 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
50 template<typename ComponentNameT = Aws::String>
51 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
52 template<typename ComponentNameT = Aws::String>
53 ApplicationComponent& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
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) { m_componentRemarksHasBeenSet = true; m_componentRemarks = std::forward<ComponentRemarksT>(value); }
65 template<typename ComponentRemarksT = Aws::String>
66 ApplicationComponent& WithComponentRemarks(ComponentRemarksT&& value) { SetComponentRemarks(std::forward<ComponentRemarksT>(value)); return *this;}
68
70
74 inline const Aws::String& GetResourceType() const { return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 template<typename ResourceTypeT = Aws::String>
77 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
78 template<typename ResourceTypeT = Aws::String>
79 ApplicationComponent& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
81
83
86 inline OsType GetOsType() const { return m_osType; }
87 inline bool OsTypeHasBeenSet() const { return m_osTypeHasBeenSet; }
88 inline void SetOsType(OsType value) { m_osTypeHasBeenSet = true; m_osType = value; }
89 inline ApplicationComponent& WithOsType(OsType value) { SetOsType(value); return *this;}
91
93
96 inline Tier GetTier() const { return m_tier; }
97 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
98 inline void SetTier(Tier value) { m_tierHasBeenSet = true; m_tier = value; }
99 inline ApplicationComponent& WithTier(Tier value) { SetTier(value); return *this;}
101
103
106 inline bool GetMonitor() const { return m_monitor; }
107 inline bool MonitorHasBeenSet() const { return m_monitorHasBeenSet; }
108 inline void SetMonitor(bool value) { m_monitorHasBeenSet = true; m_monitor = value; }
109 inline ApplicationComponent& WithMonitor(bool value) { SetMonitor(value); return *this;}
111
113
116 inline const Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>& GetDetectedWorkload() const { return m_detectedWorkload; }
117 inline bool DetectedWorkloadHasBeenSet() const { return m_detectedWorkloadHasBeenSet; }
118 template<typename DetectedWorkloadT = Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>>
119 void SetDetectedWorkload(DetectedWorkloadT&& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload = std::forward<DetectedWorkloadT>(value); }
120 template<typename DetectedWorkloadT = Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>>
121 ApplicationComponent& WithDetectedWorkload(DetectedWorkloadT&& value) { SetDetectedWorkload(std::forward<DetectedWorkloadT>(value)); return *this;}
123 m_detectedWorkloadHasBeenSet = true; m_detectedWorkload.emplace(key, value); return *this;
124 }
126 private:
127
128 Aws::String m_componentName;
129 bool m_componentNameHasBeenSet = false;
130
131 Aws::String m_componentRemarks;
132 bool m_componentRemarksHasBeenSet = false;
133
134 Aws::String m_resourceType;
135 bool m_resourceTypeHasBeenSet = false;
136
137 OsType m_osType{OsType::NOT_SET};
138 bool m_osTypeHasBeenSet = false;
139
140 Tier m_tier{Tier::NOT_SET};
141 bool m_tierHasBeenSet = false;
142
143 bool m_monitor{false};
144 bool m_monitorHasBeenSet = false;
145
147 bool m_detectedWorkloadHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace ApplicationInsights
152} // 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