AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ApplicationInsights {
21namespace Model {
22
29 public:
30 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration() = default;
31 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_APPLICATIONINSIGHTS_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 WorkloadConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkloadConfiguration & WithWorkloadName(WorkloadNameT &&value)
AWS_APPLICATIONINSIGHTS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
WorkloadConfiguration & WithConfiguration(ConfigurationT &&value)
AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_APPLICATIONINSIGHTS_API WorkloadConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String