AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ManagedInstancesNetworkConfiguration.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Batch {
21namespace Model {
22
31 public:
32 AWS_BATCH_API ManagedInstancesNetworkConfiguration() = default;
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
44 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
45 template <typename SubnetsT = Aws::Vector<Aws::String>>
46 void SetSubnets(SubnetsT&& value) {
47 m_subnetsHasBeenSet = true;
48 m_subnets = std::forward<SubnetsT>(value);
49 }
50 template <typename SubnetsT = Aws::Vector<Aws::String>>
52 SetSubnets(std::forward<SubnetsT>(value));
53 return *this;
54 }
55 template <typename SubnetsT = Aws::String>
57 m_subnetsHasBeenSet = true;
58 m_subnets.emplace_back(std::forward<SubnetsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
68 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
69 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
70 void SetSecurityGroups(SecurityGroupsT&& value) {
71 m_securityGroupsHasBeenSet = true;
72 m_securityGroups = std::forward<SecurityGroupsT>(value);
73 }
74 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
76 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
77 return *this;
78 }
79 template <typename SecurityGroupsT = Aws::String>
81 m_securityGroupsHasBeenSet = true;
82 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::Vector<Aws::String> m_securityGroups;
90 bool m_subnetsHasBeenSet = false;
91 bool m_securityGroupsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Batch
96} // namespace Aws
ManagedInstancesNetworkConfiguration & AddSecurityGroups(SecurityGroupsT &&value)
AWS_BATCH_API ManagedInstancesNetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ManagedInstancesNetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
ManagedInstancesNetworkConfiguration & WithSecurityGroups(SecurityGroupsT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedInstancesNetworkConfiguration & AddSubnets(SubnetsT &&value)
ManagedInstancesNetworkConfiguration & WithSubnets(SubnetsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue