AWS SDK for C++

AWS SDK for C++ Version 1.11.917

Loading...
Searching...
No Matches
GatewayElbNetworkConfiguration.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#include <aws/ecs/model/GatewayElbIpAddressType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API GatewayElbNetworkConfiguration() = default;
36
38
43 inline const Aws::String& GetInboundSecurityGroup() const { return m_inboundSecurityGroup; }
44 inline bool InboundSecurityGroupHasBeenSet() const { return m_inboundSecurityGroupHasBeenSet; }
45 template <typename InboundSecurityGroupT = Aws::String>
46 void SetInboundSecurityGroup(InboundSecurityGroupT&& value) {
47 m_inboundSecurityGroupHasBeenSet = true;
48 m_inboundSecurityGroup = std::forward<InboundSecurityGroupT>(value);
49 }
50 template <typename InboundSecurityGroupT = Aws::String>
52 SetInboundSecurityGroup(std::forward<InboundSecurityGroupT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
63 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
64 template <typename SubnetsT = Aws::Vector<Aws::String>>
65 void SetSubnets(SubnetsT&& value) {
66 m_subnetsHasBeenSet = true;
67 m_subnets = std::forward<SubnetsT>(value);
68 }
69 template <typename SubnetsT = Aws::Vector<Aws::String>>
71 SetSubnets(std::forward<SubnetsT>(value));
72 return *this;
73 }
74 template <typename SubnetsT = Aws::String>
76 m_subnetsHasBeenSet = true;
77 m_subnets.emplace_back(std::forward<SubnetsT>(value));
78 return *this;
79 }
81
83
87 inline GatewayElbIpAddressType GetIpAddressType() const { return m_ipAddressType; }
88 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
90 m_ipAddressTypeHasBeenSet = true;
91 m_ipAddressType = value;
92 }
94 SetIpAddressType(value);
95 return *this;
96 }
98 private:
99 Aws::String m_inboundSecurityGroup;
100
101 Aws::Vector<Aws::String> m_subnets;
102
104 bool m_inboundSecurityGroupHasBeenSet = false;
105 bool m_subnetsHasBeenSet = false;
106 bool m_ipAddressTypeHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ECS
111} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnets() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayElbNetworkConfiguration & WithInboundSecurityGroup(InboundSecurityGroupT &&value)
GatewayElbNetworkConfiguration & AddSubnets(SubnetsT &&value)
AWS_ECS_API GatewayElbNetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
GatewayElbNetworkConfiguration & WithIpAddressType(GatewayElbIpAddressType value)
AWS_ECS_API GatewayElbNetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayElbNetworkConfiguration & WithSubnets(SubnetsT &&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