AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
118 inline const Aws::String& GetValue() const { return m_value; }
119 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
120 template <typename ValueT = Aws::String>
121 void SetValue(ValueT&& value) {
122 m_valueHasBeenSet = true;
123 m_value = std::forward<ValueT>(value);
124 }
125 template <typename ValueT = Aws::String>
127 SetValue(std::forward<ValueT>(value));
128 return *this;
129 }
131
133
137 inline ResourceType GetType() const { return m_type; }
138 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
139 inline void SetType(ResourceType value) {
140 m_typeHasBeenSet = true;
141 m_type = value;
142 }
144 SetType(value);
145 return *this;
146 }
148 private:
149 Aws::String m_value;
150
152 bool m_valueHasBeenSet = false;
153 bool m_typeHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Batch
158} // 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