AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ManagedInstancesNetworkConfiguration.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
36 public:
37 AWS_ECS_API ManagedInstancesNetworkConfiguration() = default;
41
43
48 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
49 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
50 template <typename SubnetsT = Aws::Vector<Aws::String>>
51 void SetSubnets(SubnetsT&& value) {
52 m_subnetsHasBeenSet = true;
53 m_subnets = std::forward<SubnetsT>(value);
54 }
55 template <typename SubnetsT = Aws::Vector<Aws::String>>
57 SetSubnets(std::forward<SubnetsT>(value));
58 return *this;
59 }
60 template <typename SubnetsT = Aws::String>
62 m_subnetsHasBeenSet = true;
63 m_subnets.emplace_back(std::forward<SubnetsT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
75 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
76 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
77 void SetSecurityGroups(SecurityGroupsT&& value) {
78 m_securityGroupsHasBeenSet = true;
79 m_securityGroups = std::forward<SecurityGroupsT>(value);
80 }
81 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
83 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
84 return *this;
85 }
86 template <typename SecurityGroupsT = Aws::String>
88 m_securityGroupsHasBeenSet = true;
89 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
90 return *this;
91 }
93 private:
95
96 Aws::Vector<Aws::String> m_securityGroups;
97 bool m_subnetsHasBeenSet = false;
98 bool m_securityGroupsHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ECS
103} // namespace Aws
AWS_ECS_API ManagedInstancesNetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
ManagedInstancesNetworkConfiguration & AddSubnets(SubnetsT &&value)
AWS_ECS_API ManagedInstancesNetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedInstancesNetworkConfiguration & WithSubnets(SubnetsT &&value)
ManagedInstancesNetworkConfiguration & WithSecurityGroups(SecurityGroupsT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedInstancesNetworkConfiguration & AddSecurityGroups(SecurityGroupsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue