AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VPCDerivedInfo.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_OPENSEARCHSERVICE_API VPCDerivedInfo() = default;
42 AWS_OPENSEARCHSERVICE_API VPCDerivedInfo(Aws::Utils::Json::JsonView jsonValue);
43 AWS_OPENSEARCHSERVICE_API VPCDerivedInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetVPCId() const { return m_vPCId; }
53 inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; }
54 template<typename VPCIdT = Aws::String>
55 void SetVPCId(VPCIdT&& value) { m_vPCIdHasBeenSet = true; m_vPCId = std::forward<VPCIdT>(value); }
56 template<typename VPCIdT = Aws::String>
57 VPCDerivedInfo& WithVPCId(VPCIdT&& value) { SetVPCId(std::forward<VPCIdT>(value)); return *this;}
59
61
64 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
65 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
66 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
67 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
68 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
69 VPCDerivedInfo& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
70 template<typename SubnetIdsT = Aws::String>
71 VPCDerivedInfo& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
73
75
78 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
79 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
80 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
81 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
82 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
83 VPCDerivedInfo& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
84 template<typename AvailabilityZonesT = Aws::String>
85 VPCDerivedInfo& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
87
89
93 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
94 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
95 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
96 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
97 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
98 VPCDerivedInfo& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
99 template<typename SecurityGroupIdsT = Aws::String>
100 VPCDerivedInfo& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
102 private:
103
104 Aws::String m_vPCId;
105 bool m_vPCIdHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_subnetIds;
108 bool m_subnetIdsHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_availabilityZones;
111 bool m_availabilityZonesHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_securityGroupIds;
114 bool m_securityGroupIdsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace OpenSearchService
119} // namespace Aws
VPCDerivedInfo & AddAvailabilityZones(AvailabilityZonesT &&value)
VPCDerivedInfo & WithVPCId(VPCIdT &&value)
VPCDerivedInfo & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVICE_API VPCDerivedInfo()=default
void SetAvailabilityZones(AvailabilityZonesT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VPCDerivedInfo & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VPCDerivedInfo & WithSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVICE_API VPCDerivedInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API VPCDerivedInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
VPCDerivedInfo & WithAvailabilityZones(AvailabilityZonesT &&value)
VPCDerivedInfo & AddSubnetIds(SubnetIdsT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue