AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ResourceRequirement.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Batch {
21namespace Model {
22
31 public:
32 AWS_BATCH_API ResourceRequirement() = default;
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
122 inline const Aws::String& GetValue() const { return m_value; }
123 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
124 template <typename ValueT = Aws::String>
125 void SetValue(ValueT&& value) {
126 m_valueHasBeenSet = true;
127 m_value = std::forward<ValueT>(value);
128 }
129 template <typename ValueT = Aws::String>
131 SetValue(std::forward<ValueT>(value));
132 return *this;
133 }
135
137
141 inline ResourceType GetType() const { return m_type; }
142 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
143 inline void SetType(ResourceType value) {
144 m_typeHasBeenSet = true;
145 m_type = value;
146 }
148 SetType(value);
149 return *this;
150 }
152 private:
153 Aws::String m_value;
154
156 bool m_valueHasBeenSet = false;
157 bool m_typeHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Batch
162} // namespace Aws
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceRequirement & WithType(ResourceType value)
AWS_BATCH_API ResourceRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ResourceRequirement(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ResourceRequirement()=default
ResourceRequirement & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue