AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OutpostConfigRequest.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/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/ControlPlanePlacementRequest.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
35 public:
36 AWS_EKS_API OutpostConfigRequest() = default;
40
42
46 inline const Aws::Vector<Aws::String>& GetOutpostArns() const { return m_outpostArns; }
47 inline bool OutpostArnsHasBeenSet() const { return m_outpostArnsHasBeenSet; }
48 template <typename OutpostArnsT = Aws::Vector<Aws::String>>
49 void SetOutpostArns(OutpostArnsT&& value) {
50 m_outpostArnsHasBeenSet = true;
51 m_outpostArns = std::forward<OutpostArnsT>(value);
52 }
53 template <typename OutpostArnsT = Aws::Vector<Aws::String>>
54 OutpostConfigRequest& WithOutpostArns(OutpostArnsT&& value) {
55 SetOutpostArns(std::forward<OutpostArnsT>(value));
56 return *this;
57 }
58 template <typename OutpostArnsT = Aws::String>
59 OutpostConfigRequest& AddOutpostArns(OutpostArnsT&& value) {
60 m_outpostArnsHasBeenSet = true;
61 m_outpostArns.emplace_back(std::forward<OutpostArnsT>(value));
62 return *this;
63 }
65
67
77 inline const Aws::String& GetControlPlaneInstanceType() const { return m_controlPlaneInstanceType; }
78 inline bool ControlPlaneInstanceTypeHasBeenSet() const { return m_controlPlaneInstanceTypeHasBeenSet; }
79 template <typename ControlPlaneInstanceTypeT = Aws::String>
80 void SetControlPlaneInstanceType(ControlPlaneInstanceTypeT&& value) {
81 m_controlPlaneInstanceTypeHasBeenSet = true;
82 m_controlPlaneInstanceType = std::forward<ControlPlaneInstanceTypeT>(value);
83 }
84 template <typename ControlPlaneInstanceTypeT = Aws::String>
85 OutpostConfigRequest& WithControlPlaneInstanceType(ControlPlaneInstanceTypeT&& value) {
86 SetControlPlaneInstanceType(std::forward<ControlPlaneInstanceTypeT>(value));
87 return *this;
88 }
90
92
99 inline const ControlPlanePlacementRequest& GetControlPlanePlacement() const { return m_controlPlanePlacement; }
100 inline bool ControlPlanePlacementHasBeenSet() const { return m_controlPlanePlacementHasBeenSet; }
101 template <typename ControlPlanePlacementT = ControlPlanePlacementRequest>
102 void SetControlPlanePlacement(ControlPlanePlacementT&& value) {
103 m_controlPlanePlacementHasBeenSet = true;
104 m_controlPlanePlacement = std::forward<ControlPlanePlacementT>(value);
105 }
106 template <typename ControlPlanePlacementT = ControlPlanePlacementRequest>
107 OutpostConfigRequest& WithControlPlanePlacement(ControlPlanePlacementT&& value) {
108 SetControlPlanePlacement(std::forward<ControlPlanePlacementT>(value));
109 return *this;
110 }
112 private:
113 Aws::Vector<Aws::String> m_outpostArns;
114
115 Aws::String m_controlPlaneInstanceType;
116
117 ControlPlanePlacementRequest m_controlPlanePlacement;
118 bool m_outpostArnsHasBeenSet = false;
119 bool m_controlPlaneInstanceTypeHasBeenSet = false;
120 bool m_controlPlanePlacementHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EKS
125} // namespace Aws
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API OutpostConfigRequest()=default
const ControlPlanePlacementRequest & GetControlPlanePlacement() const
OutpostConfigRequest & AddOutpostArns(OutpostArnsT &&value)
AWS_EKS_API OutpostConfigRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
OutpostConfigRequest & WithControlPlaneInstanceType(ControlPlaneInstanceTypeT &&value)
void SetOutpostArns(OutpostArnsT &&value)
OutpostConfigRequest & WithControlPlanePlacement(ControlPlanePlacementT &&value)
void SetControlPlanePlacement(ControlPlanePlacementT &&value)
const Aws::Vector< Aws::String > & GetOutpostArns() const
const Aws::String & GetControlPlaneInstanceType() const
AWS_EKS_API OutpostConfigRequest(Aws::Utils::Json::JsonView jsonValue)
void SetControlPlaneInstanceType(ControlPlaneInstanceTypeT &&value)
OutpostConfigRequest & WithOutpostArns(OutpostArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue