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/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/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 Batch
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BATCH_API ResourceRequirement();
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
124 inline const Aws::String& GetValue() const{ return m_value; }
125 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
126 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
127 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
128 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
129 inline ResourceRequirement& WithValue(const Aws::String& value) { SetValue(value); return *this;}
130 inline ResourceRequirement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
131 inline ResourceRequirement& WithValue(const char* value) { SetValue(value); return *this;}
133
135
139 inline const ResourceType& GetType() const{ return m_type; }
140 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
141 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
142 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
143 inline ResourceRequirement& WithType(const ResourceType& value) { SetType(value); return *this;}
144 inline ResourceRequirement& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
146 private:
147
148 Aws::String m_value;
149 bool m_valueHasBeenSet = false;
150
151 ResourceType m_type;
152 bool m_typeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Batch
157} // namespace Aws
void SetType(const ResourceType &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceRequirement & WithValue(Aws::String &&value)
void SetValue(const Aws::String &value)
ResourceRequirement & WithValue(const char *value)
ResourceRequirement & WithValue(const Aws::String &value)
ResourceRequirement & WithType(const ResourceType &value)
ResourceRequirement & WithType(ResourceType &&value)
AWS_BATCH_API ResourceRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ResourceRequirement(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue