AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
WorkloadConfiguration.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/Tier.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationInsights {
21namespace Model {
22
29 public:
30 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration() = default;
31 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
40 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
41 template <typename WorkloadNameT = Aws::String>
42 void SetWorkloadName(WorkloadNameT&& value) {
43 m_workloadNameHasBeenSet = true;
44 m_workloadName = std::forward<WorkloadNameT>(value);
45 }
46 template <typename WorkloadNameT = Aws::String>
47 WorkloadConfiguration& WithWorkloadName(WorkloadNameT&& value) {
48 SetWorkloadName(std::forward<WorkloadNameT>(value));
49 return *this;
50 }
52
54
57 inline Tier GetTier() const { return m_tier; }
58 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
59 inline void SetTier(Tier value) {
60 m_tierHasBeenSet = true;
61 m_tier = value;
62 }
64 SetTier(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetConfiguration() const { return m_configuration; }
74 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
75 template <typename ConfigurationT = Aws::String>
76 void SetConfiguration(ConfigurationT&& value) {
77 m_configurationHasBeenSet = true;
78 m_configuration = std::forward<ConfigurationT>(value);
79 }
80 template <typename ConfigurationT = Aws::String>
81 WorkloadConfiguration& WithConfiguration(ConfigurationT&& value) {
82 SetConfiguration(std::forward<ConfigurationT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_workloadName;
88
89 Tier m_tier{Tier::NOT_SET};
90
91 Aws::String m_configuration;
92 bool m_workloadNameHasBeenSet = false;
93 bool m_tierHasBeenSet = false;
94 bool m_configurationHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace ApplicationInsights
99} // namespace Aws
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkloadConfiguration & WithWorkloadName(WorkloadNameT &&value)
WorkloadConfiguration & WithConfiguration(ConfigurationT &&value)
AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue