AWS SDK for C++  1.9.71
AWS SDK for C++
ResourceRequirement.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace 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;
185 
186  ResourceType m_type;
187  bool m_typeHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace ECS
192 } // namespace Aws
ResourceType.h
Aws::ECS::Model::ResourceRequirement::WithValue
ResourceRequirement & WithValue(Aws::String &&value)
Definition: ResourceRequirement.h:130
Aws::ECS::Model::ResourceRequirement::SetValue
void SetValue(const char *value)
Definition: ResourceRequirement.h:106
Aws::ECS::Model::ResourceRequirement::WithValue
ResourceRequirement & WithValue(const Aws::String &value)
Definition: ResourceRequirement.h:118
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ResourceRequirement::SetValue
void SetValue(const Aws::String &value)
Definition: ResourceRequirement.h:82
Aws::ECS::Model::ResourceRequirement::SetValue
void SetValue(Aws::String &&value)
Definition: ResourceRequirement.h:94
Aws::ECS::Model::ResourceRequirement::SetType
void SetType(ResourceType &&value)
Definition: ResourceRequirement.h:167
Aws::ECS::Model::ResourceRequirement::ResourceRequirement
ResourceRequirement(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ResourceRequirement::WithType
ResourceRequirement & WithType(ResourceType &&value)
Definition: ResourceRequirement.h:179
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ResourceRequirement::GetType
const ResourceType & GetType() const
Definition: ResourceRequirement.h:149
Aws::ECS::Model::ResourceRequirement::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: ResourceRequirement.h:70
Aws::ECS::Model::ResourceRequirement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ResourceRequirement::ResourceRequirement
ResourceRequirement()
Aws::ECS::Model::ResourceRequirement::WithType
ResourceRequirement & WithType(const ResourceType &value)
Definition: ResourceRequirement.h:173
Aws::ECS::Model::ResourceRequirement::GetValue
const Aws::String & GetValue() const
Definition: ResourceRequirement.h:58
Aws::ECS::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::ResourceRequirement::SetType
void SetType(const ResourceType &value)
Definition: ResourceRequirement.h:161
Aws::ECS::Model::ResourceRequirement::WithValue
ResourceRequirement & WithValue(const char *value)
Definition: ResourceRequirement.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ResourceRequirement::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ResourceRequirement.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ResourceRequirement::operator=
ResourceRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h
Aws::ECS::Model::ResourceRequirement
Definition: ResourceRequirement.h:40