AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KernelCapabilities.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
52 public:
53 AWS_ECS_API KernelCapabilities() = default;
57
59
74 inline const Aws::Vector<Aws::String>& GetAdd() const { return m_add; }
75 inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
76 template <typename AddT = Aws::Vector<Aws::String>>
77 void SetAdd(AddT&& value) {
78 m_addHasBeenSet = true;
79 m_add = std::forward<AddT>(value);
80 }
81 template <typename AddT = Aws::Vector<Aws::String>>
82 KernelCapabilities& WithAdd(AddT&& value) {
83 SetAdd(std::forward<AddT>(value));
84 return *this;
85 }
86 template <typename AddT = Aws::String>
87 KernelCapabilities& AddAdd(AddT&& value) {
88 m_addHasBeenSet = true;
89 m_add.emplace_back(std::forward<AddT>(value));
90 return *this;
91 }
93
95
109 inline const Aws::Vector<Aws::String>& GetDrop() const { return m_drop; }
110 inline bool DropHasBeenSet() const { return m_dropHasBeenSet; }
111 template <typename DropT = Aws::Vector<Aws::String>>
112 void SetDrop(DropT&& value) {
113 m_dropHasBeenSet = true;
114 m_drop = std::forward<DropT>(value);
115 }
116 template <typename DropT = Aws::Vector<Aws::String>>
117 KernelCapabilities& WithDrop(DropT&& value) {
118 SetDrop(std::forward<DropT>(value));
119 return *this;
120 }
121 template <typename DropT = Aws::String>
122 KernelCapabilities& AddDrop(DropT&& value) {
123 m_dropHasBeenSet = true;
124 m_drop.emplace_back(std::forward<DropT>(value));
125 return *this;
126 }
128 private:
130
132 bool m_addHasBeenSet = false;
133 bool m_dropHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace ECS
138} // namespace Aws
KernelCapabilities & WithAdd(AddT &&value)
AWS_ECS_API KernelCapabilities()=default
AWS_ECS_API KernelCapabilities(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetDrop() const
KernelCapabilities & AddAdd(AddT &&value)
AWS_ECS_API KernelCapabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
KernelCapabilities & WithDrop(DropT &&value)
const Aws::Vector< Aws::String > & GetAdd() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
KernelCapabilities & AddDrop(DropT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue