AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
ElasticLoadBalancing.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/GatewayApiConfiguration.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS {
20namespace Model {
21
31 public:
32 AWS_EKS_API ElasticLoadBalancing() = default;
36
38
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
49 inline ElasticLoadBalancing& WithEnabled(bool value) {
50 SetEnabled(value);
51 return *this;
52 }
54
56
62 inline const GatewayApiConfiguration& GetGatewayApi() const { return m_gatewayApi; }
63 inline bool GatewayApiHasBeenSet() const { return m_gatewayApiHasBeenSet; }
64 template <typename GatewayApiT = GatewayApiConfiguration>
65 void SetGatewayApi(GatewayApiT&& value) {
66 m_gatewayApiHasBeenSet = true;
67 m_gatewayApi = std::forward<GatewayApiT>(value);
68 }
69 template <typename GatewayApiT = GatewayApiConfiguration>
70 ElasticLoadBalancing& WithGatewayApi(GatewayApiT&& value) {
71 SetGatewayApi(std::forward<GatewayApiT>(value));
72 return *this;
73 }
75 private:
76 bool m_enabled{false};
77
78 GatewayApiConfiguration m_gatewayApi;
79 bool m_enabledHasBeenSet = false;
80 bool m_gatewayApiHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace EKS
85} // namespace Aws
AWS_EKS_API ElasticLoadBalancing(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API ElasticLoadBalancing()=default
ElasticLoadBalancing & WithEnabled(bool value)
ElasticLoadBalancing & WithGatewayApi(GatewayApiT &&value)
AWS_EKS_API ElasticLoadBalancing & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const GatewayApiConfiguration & GetGatewayApi() const
Aws::Utils::Json::JsonValue JsonValue