AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
43class Scope {
44 public:
45 AWS_COMPUTEOPTIMIZER_API Scope() = default;
46 AWS_COMPUTEOPTIMIZER_API Scope(Aws::Utils::Json::JsonView jsonValue);
47 AWS_COMPUTEOPTIMIZER_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() 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(Aws::Utils::Json::JsonView jsonValue)
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
AWS_COMPUTEOPTIMIZER_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(ScopeName value)
Definition Scope.h:63
Scope & WithName(ScopeName value)
Definition Scope.h:67
AWS_COMPUTEOPTIMIZER_API Scope()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue