AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
51 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
52 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
53 inline ApplicationComponent& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
54 inline ApplicationComponent& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
55 inline ApplicationComponent& WithComponentName(const char* value) { SetComponentName(value); return *this;}
57
59
63 inline const Aws::String& GetComponentRemarks() const{ return m_componentRemarks; }
64 inline bool ComponentRemarksHasBeenSet() const { return m_componentRemarksHasBeenSet; }
65 inline void SetComponentRemarks(const Aws::String& value) { m_componentRemarksHasBeenSet = true; m_componentRemarks = value; }
66 inline void SetComponentRemarks(Aws::String&& value) { m_componentRemarksHasBeenSet = true; m_componentRemarks = std::move(value); }
67 inline void SetComponentRemarks(const char* value) { m_componentRemarksHasBeenSet = true; m_componentRemarks.assign(value); }
68 inline ApplicationComponent& WithComponentRemarks(const Aws::String& value) { SetComponentRemarks(value); return *this;}
69 inline ApplicationComponent& WithComponentRemarks(Aws::String&& value) { SetComponentRemarks(std::move(value)); return *this;}
70 inline ApplicationComponent& WithComponentRemarks(const char* value) { SetComponentRemarks(value); return *this;}
72
74
78 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
79 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
80 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
81 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
82 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
83 inline ApplicationComponent& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
84 inline ApplicationComponent& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
85 inline ApplicationComponent& WithResourceType(const char* value) { SetResourceType(value); return *this;}
87
89
92 inline const OsType& GetOsType() const{ return m_osType; }
93 inline bool OsTypeHasBeenSet() const { return m_osTypeHasBeenSet; }
94 inline void SetOsType(const OsType& value) { m_osTypeHasBeenSet = true; m_osType = value; }
95 inline void SetOsType(OsType&& value) { m_osTypeHasBeenSet = true; m_osType = std::move(value); }
96 inline ApplicationComponent& WithOsType(const OsType& value) { SetOsType(value); return *this;}
97 inline ApplicationComponent& WithOsType(OsType&& value) { SetOsType(std::move(value)); return *this;}
99
101
104 inline const Tier& GetTier() const{ return m_tier; }
105 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
106 inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; }
107 inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
108 inline ApplicationComponent& WithTier(const Tier& value) { SetTier(value); return *this;}
109 inline ApplicationComponent& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;}
111
113
116 inline bool GetMonitor() const{ return m_monitor; }
117 inline bool MonitorHasBeenSet() const { return m_monitorHasBeenSet; }
118 inline void SetMonitor(bool value) { m_monitorHasBeenSet = true; m_monitor = value; }
119 inline ApplicationComponent& WithMonitor(bool value) { SetMonitor(value); return *this;}
121
123
126 inline const Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>& GetDetectedWorkload() const{ return m_detectedWorkload; }
127 inline bool DetectedWorkloadHasBeenSet() const { return m_detectedWorkloadHasBeenSet; }
128 inline void SetDetectedWorkload(const Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload = value; }
129 inline void SetDetectedWorkload(Aws::Map<Tier, Aws::Map<Aws::String, Aws::String>>&& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload = std::move(value); }
132 inline ApplicationComponent& AddDetectedWorkload(const Tier& key, const Aws::Map<Aws::String, Aws::String>& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload.emplace(key, value); return *this; }
133 inline ApplicationComponent& AddDetectedWorkload(Tier&& key, const Aws::Map<Aws::String, Aws::String>& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload.emplace(std::move(key), value); return *this; }
134 inline ApplicationComponent& AddDetectedWorkload(const Tier& key, Aws::Map<Aws::String, Aws::String>&& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload.emplace(key, std::move(value)); return *this; }
135 inline ApplicationComponent& AddDetectedWorkload(Tier&& key, Aws::Map<Aws::String, Aws::String>&& value) { m_detectedWorkloadHasBeenSet = true; m_detectedWorkload.emplace(std::move(key), std::move(value)); return *this; }
137 private:
138
139 Aws::String m_componentName;
140 bool m_componentNameHasBeenSet = false;
141
142 Aws::String m_componentRemarks;
143 bool m_componentRemarksHasBeenSet = false;
144
145 Aws::String m_resourceType;
146 bool m_resourceTypeHasBeenSet = false;
147
148 OsType m_osType;
149 bool m_osTypeHasBeenSet = false;
150
151 Tier m_tier;
152 bool m_tierHasBeenSet = false;
153
154 bool m_monitor;
155 bool m_monitorHasBeenSet = false;
156
158 bool m_detectedWorkloadHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace ApplicationInsights
163} // namespace Aws
ApplicationComponent & WithTier(const Tier &value)
ApplicationComponent & WithComponentName(const char *value)
ApplicationComponent & WithComponentName(const Aws::String &value)
const Aws::Map< Tier, Aws::Map< Aws::String, Aws::String > > & GetDetectedWorkload() const
ApplicationComponent & WithOsType(OsType &&value)
ApplicationComponent & WithResourceType(const char *value)
ApplicationComponent & AddDetectedWorkload(Tier &&key, const Aws::Map< Aws::String, Aws::String > &value)
ApplicationComponent & AddDetectedWorkload(const Tier &key, const Aws::Map< Aws::String, Aws::String > &value)
AWS_APPLICATIONINSIGHTS_API ApplicationComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationComponent & WithResourceType(const Aws::String &value)
ApplicationComponent & WithComponentRemarks(const char *value)
ApplicationComponent & WithComponentName(Aws::String &&value)
void SetDetectedWorkload(const Aws::Map< Tier, Aws::Map< Aws::String, Aws::String > > &value)
ApplicationComponent & AddDetectedWorkload(const Tier &key, Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetectedWorkload(Aws::Map< Tier, Aws::Map< Aws::String, Aws::String > > &&value)
AWS_APPLICATIONINSIGHTS_API ApplicationComponent()
ApplicationComponent & WithDetectedWorkload(Aws::Map< Tier, Aws::Map< Aws::String, Aws::String > > &&value)
ApplicationComponent & AddDetectedWorkload(Tier &&key, Aws::Map< Aws::String, Aws::String > &&value)
ApplicationComponent & WithComponentRemarks(Aws::String &&value)
ApplicationComponent & WithDetectedWorkload(const Aws::Map< Tier, Aws::Map< Aws::String, Aws::String > > &value)
AWS_APPLICATIONINSIGHTS_API ApplicationComponent(Aws::Utils::Json::JsonView jsonValue)
ApplicationComponent & WithResourceType(Aws::String &&value)
ApplicationComponent & WithComponentRemarks(const Aws::String &value)
ApplicationComponent & WithOsType(const OsType &value)
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