AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
47 class Scope
48 {
49 public:
50 AWS_COMPUTEOPTIMIZER_API Scope() = default;
51 AWS_COMPUTEOPTIMIZER_API Scope(Aws::Utils::Json::JsonView jsonValue);
52 AWS_COMPUTEOPTIMIZER_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
67 inline ScopeName GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(ScopeName value) { m_nameHasBeenSet = true; m_name = value; }
70 inline Scope& WithName(ScopeName value) { SetName(value); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
88 template<typename ValueT = Aws::String>
89 Scope& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
91 private:
92
94 bool m_nameHasBeenSet = false;
95
96 Aws::String m_value;
97 bool m_valueHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace ComputeOptimizer
102} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Scope(Aws::Utils::Json::JsonView jsonValue)
ScopeName GetName() const
Definition Scope.h:67
void SetValue(ValueT &&value)
Definition Scope.h:87
Scope & WithValue(ValueT &&value)
Definition Scope.h:89
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:69
Scope & WithName(ScopeName value)
Definition Scope.h:70
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