AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksContainerResourceRequirements.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.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
34 public:
35 AWS_BATCH_API EksContainerResourceRequirements() = default;
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
69 inline const Aws::Map<Aws::String, Aws::String>& GetLimits() const { return m_limits; }
70 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
71 template <typename LimitsT = Aws::Map<Aws::String, Aws::String>>
72 void SetLimits(LimitsT&& value) {
73 m_limitsHasBeenSet = true;
74 m_limits = std::forward<LimitsT>(value);
75 }
76 template <typename LimitsT = Aws::Map<Aws::String, Aws::String>>
78 SetLimits(std::forward<LimitsT>(value));
79 return *this;
80 }
81 template <typename LimitsKeyT = Aws::String, typename LimitsValueT = Aws::String>
82 EksContainerResourceRequirements& AddLimits(LimitsKeyT&& key, LimitsValueT&& value) {
83 m_limitsHasBeenSet = true;
84 m_limits.emplace(std::forward<LimitsKeyT>(key), std::forward<LimitsValueT>(value));
85 return *this;
86 }
88
90
117 inline const Aws::Map<Aws::String, Aws::String>& GetRequests() const { return m_requests; }
118 inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; }
119 template <typename RequestsT = Aws::Map<Aws::String, Aws::String>>
120 void SetRequests(RequestsT&& value) {
121 m_requestsHasBeenSet = true;
122 m_requests = std::forward<RequestsT>(value);
123 }
124 template <typename RequestsT = Aws::Map<Aws::String, Aws::String>>
126 SetRequests(std::forward<RequestsT>(value));
127 return *this;
128 }
129 template <typename RequestsKeyT = Aws::String, typename RequestsValueT = Aws::String>
130 EksContainerResourceRequirements& AddRequests(RequestsKeyT&& key, RequestsValueT&& value) {
131 m_requestsHasBeenSet = true;
132 m_requests.emplace(std::forward<RequestsKeyT>(key), std::forward<RequestsValueT>(value));
133 return *this;
134 }
136 private:
138
140 bool m_limitsHasBeenSet = false;
141 bool m_requestsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Batch
146} // namespace Aws
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksContainerResourceRequirements & WithLimits(LimitsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLimits() const
AWS_BATCH_API EksContainerResourceRequirements & operator=(Aws::Utils::Json::JsonView jsonValue)
EksContainerResourceRequirements & AddLimits(LimitsKeyT &&key, LimitsValueT &&value)
AWS_BATCH_API EksContainerResourceRequirements(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetRequests() const
EksContainerResourceRequirements & AddRequests(RequestsKeyT &&key, RequestsValueT &&value)
EksContainerResourceRequirements & WithRequests(RequestsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue