AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateTaintsPayload.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eks/model/Taint.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 EKS
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_EKS_API UpdateTaintsPayload() = default;
43
44
46
49 inline const Aws::Vector<Taint>& GetAddOrUpdateTaints() const { return m_addOrUpdateTaints; }
50 inline bool AddOrUpdateTaintsHasBeenSet() const { return m_addOrUpdateTaintsHasBeenSet; }
51 template<typename AddOrUpdateTaintsT = Aws::Vector<Taint>>
52 void SetAddOrUpdateTaints(AddOrUpdateTaintsT&& value) { m_addOrUpdateTaintsHasBeenSet = true; m_addOrUpdateTaints = std::forward<AddOrUpdateTaintsT>(value); }
53 template<typename AddOrUpdateTaintsT = Aws::Vector<Taint>>
54 UpdateTaintsPayload& WithAddOrUpdateTaints(AddOrUpdateTaintsT&& value) { SetAddOrUpdateTaints(std::forward<AddOrUpdateTaintsT>(value)); return *this;}
55 template<typename AddOrUpdateTaintsT = Taint>
56 UpdateTaintsPayload& AddAddOrUpdateTaints(AddOrUpdateTaintsT&& value) { m_addOrUpdateTaintsHasBeenSet = true; m_addOrUpdateTaints.emplace_back(std::forward<AddOrUpdateTaintsT>(value)); return *this; }
58
60
63 inline const Aws::Vector<Taint>& GetRemoveTaints() const { return m_removeTaints; }
64 inline bool RemoveTaintsHasBeenSet() const { return m_removeTaintsHasBeenSet; }
65 template<typename RemoveTaintsT = Aws::Vector<Taint>>
66 void SetRemoveTaints(RemoveTaintsT&& value) { m_removeTaintsHasBeenSet = true; m_removeTaints = std::forward<RemoveTaintsT>(value); }
67 template<typename RemoveTaintsT = Aws::Vector<Taint>>
68 UpdateTaintsPayload& WithRemoveTaints(RemoveTaintsT&& value) { SetRemoveTaints(std::forward<RemoveTaintsT>(value)); return *this;}
69 template<typename RemoveTaintsT = Taint>
70 UpdateTaintsPayload& AddRemoveTaints(RemoveTaintsT&& value) { m_removeTaintsHasBeenSet = true; m_removeTaints.emplace_back(std::forward<RemoveTaintsT>(value)); return *this; }
72 private:
73
74 Aws::Vector<Taint> m_addOrUpdateTaints;
75 bool m_addOrUpdateTaintsHasBeenSet = false;
76
77 Aws::Vector<Taint> m_removeTaints;
78 bool m_removeTaintsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EKS
83} // namespace Aws
UpdateTaintsPayload & WithAddOrUpdateTaints(AddOrUpdateTaintsT &&value)
const Aws::Vector< Taint > & GetRemoveTaints() const
AWS_EKS_API UpdateTaintsPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Taint > & GetAddOrUpdateTaints() const
void SetAddOrUpdateTaints(AddOrUpdateTaintsT &&value)
AWS_EKS_API UpdateTaintsPayload(Aws::Utils::Json::JsonView jsonValue)
UpdateTaintsPayload & WithRemoveTaints(RemoveTaintsT &&value)
AWS_EKS_API UpdateTaintsPayload()=default
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRemoveTaints(RemoveTaintsT &&value)
UpdateTaintsPayload & AddRemoveTaints(RemoveTaintsT &&value)
UpdateTaintsPayload & AddAddOrUpdateTaints(AddOrUpdateTaintsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue