AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#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
38 {
39 public:
40 AWS_BATCH_API EksContainerResourceRequirements() = default;
43 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
75 inline const Aws::Map<Aws::String, Aws::String>& GetLimits() const { return m_limits; }
76 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
77 template<typename LimitsT = Aws::Map<Aws::String, Aws::String>>
78 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet = true; m_limits = std::forward<LimitsT>(value); }
79 template<typename LimitsT = Aws::Map<Aws::String, Aws::String>>
80 EksContainerResourceRequirements& WithLimits(LimitsT&& value) { SetLimits(std::forward<LimitsT>(value)); return *this;}
81 template<typename LimitsKeyT = Aws::String, typename LimitsValueT = Aws::String>
82 EksContainerResourceRequirements& AddLimits(LimitsKeyT&& key, LimitsValueT&& value) {
83 m_limitsHasBeenSet = true; m_limits.emplace(std::forward<LimitsKeyT>(key), std::forward<LimitsValueT>(value)); return *this;
84 }
86
88
115 inline const Aws::Map<Aws::String, Aws::String>& GetRequests() const { return m_requests; }
116 inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; }
117 template<typename RequestsT = Aws::Map<Aws::String, Aws::String>>
118 void SetRequests(RequestsT&& value) { m_requestsHasBeenSet = true; m_requests = std::forward<RequestsT>(value); }
119 template<typename RequestsT = Aws::Map<Aws::String, Aws::String>>
120 EksContainerResourceRequirements& WithRequests(RequestsT&& value) { SetRequests(std::forward<RequestsT>(value)); return *this;}
121 template<typename RequestsKeyT = Aws::String, typename RequestsValueT = Aws::String>
122 EksContainerResourceRequirements& AddRequests(RequestsKeyT&& key, RequestsValueT&& value) {
123 m_requestsHasBeenSet = true; m_requests.emplace(std::forward<RequestsKeyT>(key), std::forward<RequestsValueT>(value)); return *this;
124 }
126 private:
127
129 bool m_limitsHasBeenSet = false;
130
132 bool m_requestsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Batch
137} // 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