AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ScopeName& GetName() const{ return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(const ScopeName& value) { m_nameHasBeenSet = true; m_name = value; }
70 inline void SetName(ScopeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 inline Scope& WithName(const ScopeName& value) { SetName(value); return *this;}
72 inline Scope& WithName(ScopeName&& value) { SetName(std::move(value)); return *this;}
74
76
86 inline const Aws::String& GetValue() const{ return m_value; }
87 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
88 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
89 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
90 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
91 inline Scope& WithValue(const Aws::String& value) { SetValue(value); return *this;}
92 inline Scope& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
93 inline Scope& WithValue(const char* value) { SetValue(value); return *this;}
95 private:
96
97 ScopeName m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_value;
101 bool m_valueHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ComputeOptimizer
106} // namespace Aws
void SetValue(Aws::String &&value)
Definition Scope.h:89
Scope & WithName(ScopeName &&value)
Definition Scope.h:72
void SetName(ScopeName &&value)
Definition Scope.h:70
AWS_COMPUTEOPTIMIZER_API Scope(Aws::Utils::Json::JsonView jsonValue)
const ScopeName & GetName() const
Definition Scope.h:67
const Aws::String & GetValue() const
Definition Scope.h:86
AWS_COMPUTEOPTIMIZER_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
Scope & WithValue(const char *value)
Definition Scope.h:93
void SetValue(const Aws::String &value)
Definition Scope.h:88
Scope & WithName(const ScopeName &value)
Definition Scope.h:71
AWS_COMPUTEOPTIMIZER_API Scope()
Scope & WithValue(const Aws::String &value)
Definition Scope.h:91
Scope & WithValue(Aws::String &&value)
Definition Scope.h:92
void SetName(const ScopeName &value)
Definition Scope.h:69
void SetValue(const char *value)
Definition Scope.h:90
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