AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ScopeName.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 ComputeOptimizer {
21namespace Model {
22
43class Scope {
44 public:
45 AWS_COMPUTEOPTIMIZER_API Scope() = default;
46 AWS_COMPUTEOPTIMIZER_API Scope(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
47 AWS_COMPUTEOPTIMIZER_API Scope& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
49
51
61 inline ScopeName GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(ScopeName value) {
64 m_nameHasBeenSet = true;
65 m_name = value;
66 }
67 inline Scope& WithName(ScopeName value) {
68 SetName(value);
69 return *this;
70 }
72
74
84 inline const Aws::String& GetValue() const { return m_value; }
85 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
86 template <typename ValueT = Aws::String>
87 void SetValue(ValueT&& value) {
88 m_valueHasBeenSet = true;
89 m_value = std::forward<ValueT>(value);
90 }
91 template <typename ValueT = Aws::String>
92 Scope& WithValue(ValueT&& value) {
93 SetValue(std::forward<ValueT>(value));
94 return *this;
95 }
97 private:
99
100 Aws::String m_value;
101 bool m_nameHasBeenSet = false;
102 bool m_valueHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ComputeOptimizer
107} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Scope & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ScopeName GetName() const
Definition Scope.h:61
void SetValue(ValueT &&value)
Definition Scope.h:87
Scope & WithValue(ValueT &&value)
Definition Scope.h:92
const Aws::String & GetValue() const
Definition Scope.h:84
void SetName(ScopeName value)
Definition Scope.h:63
Scope & WithName(ScopeName value)
Definition Scope.h:67
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZER_API Scope()=default
AWS_COMPUTEOPTIMIZER_API Scope(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String