AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ResourceRequirement.h
Go to the documentation of this file.
1
6#pragma once
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 ECS
23{
24namespace Model
25{
26
40 {
41 public:
46
47
58 inline const Aws::String& GetValue() const{ return m_value; }
59
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71
82 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
83
94 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
95
106 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
107
118 inline ResourceRequirement& WithValue(const Aws::String& value) { SetValue(value); return *this;}
119
130 inline ResourceRequirement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
131
142 inline ResourceRequirement& WithValue(const char* value) { SetValue(value); return *this;}
143
144
149 inline const ResourceType& GetType() const{ return m_type; }
150
155 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
156
161 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
162
167 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
168
173 inline ResourceRequirement& WithType(const ResourceType& value) { SetType(value); return *this;}
174
179 inline ResourceRequirement& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
180
181 private:
182
183 Aws::String m_value;
184 bool m_valueHasBeenSet = false;
185
186 ResourceType m_type;
187 bool m_typeHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ECS
192} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetValue(const Aws::String &value)
ResourceRequirement & WithValue(const char *value)
const ResourceType & GetType() const
AWS_ECS_API ResourceRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceRequirement & WithValue(Aws::String &&value)
void SetType(const ResourceType &value)
ResourceRequirement & WithType(const ResourceType &value)
AWS_ECS_API ResourceRequirement(Aws::Utils::Json::JsonView jsonValue)
ResourceRequirement & WithType(ResourceType &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
ResourceRequirement & WithValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String