AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WorkloadConfiguration.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/Tier.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationInsights
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration() = default;
36 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
46 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
47 template<typename WorkloadNameT = Aws::String>
48 void SetWorkloadName(WorkloadNameT&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::forward<WorkloadNameT>(value); }
49 template<typename WorkloadNameT = Aws::String>
50 WorkloadConfiguration& WithWorkloadName(WorkloadNameT&& value) { SetWorkloadName(std::forward<WorkloadNameT>(value)); return *this;}
52
54
57 inline Tier GetTier() const { return m_tier; }
58 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
59 inline void SetTier(Tier value) { m_tierHasBeenSet = true; m_tier = value; }
60 inline WorkloadConfiguration& WithTier(Tier value) { SetTier(value); return *this;}
62
64
67 inline const Aws::String& GetConfiguration() const { return m_configuration; }
68 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
69 template<typename ConfigurationT = Aws::String>
70 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
71 template<typename ConfigurationT = Aws::String>
72 WorkloadConfiguration& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
74 private:
75
76 Aws::String m_workloadName;
77 bool m_workloadNameHasBeenSet = false;
78
79 Tier m_tier{Tier::NOT_SET};
80 bool m_tierHasBeenSet = false;
81
82 Aws::String m_configuration;
83 bool m_configurationHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ApplicationInsights
88} // 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