AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceRequirement.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/ResourceType.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 ECS
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_ECS_API ResourceRequirement();
46
47
49
60 inline const Aws::String& GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
63 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
64 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
65 inline ResourceRequirement& WithValue(const Aws::String& value) { SetValue(value); return *this;}
66 inline ResourceRequirement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
67 inline ResourceRequirement& WithValue(const char* value) { SetValue(value); return *this;}
69
71
74 inline const ResourceType& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline ResourceRequirement& WithType(const ResourceType& value) { SetType(value); return *this;}
79 inline ResourceRequirement& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_value;
84 bool m_valueHasBeenSet = false;
85
86 ResourceType m_type;
87 bool m_typeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ECS
92} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue