AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEc2RouteTableDetails.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AssociationSetDetails.h>
11#include <aws/securityhub/model/PropagatingVgwSetDetails.h>
12#include <aws/securityhub/model/RouteSetDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
33 public:
34 AWS_SECURITYHUB_API AwsEc2RouteTableDetails() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<AssociationSetDetails>& GetAssociationSet() const { return m_associationSet; }
45 inline bool AssociationSetHasBeenSet() const { return m_associationSetHasBeenSet; }
46 template <typename AssociationSetT = Aws::Vector<AssociationSetDetails>>
47 void SetAssociationSet(AssociationSetT&& value) {
48 m_associationSetHasBeenSet = true;
49 m_associationSet = std::forward<AssociationSetT>(value);
50 }
51 template <typename AssociationSetT = Aws::Vector<AssociationSetDetails>>
52 AwsEc2RouteTableDetails& WithAssociationSet(AssociationSetT&& value) {
53 SetAssociationSet(std::forward<AssociationSetT>(value));
54 return *this;
55 }
56 template <typename AssociationSetT = AssociationSetDetails>
57 AwsEc2RouteTableDetails& AddAssociationSet(AssociationSetT&& value) {
58 m_associationSetHasBeenSet = true;
59 m_associationSet.emplace_back(std::forward<AssociationSetT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
69 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
70 template <typename OwnerIdT = Aws::String>
71 void SetOwnerId(OwnerIdT&& value) {
72 m_ownerIdHasBeenSet = true;
73 m_ownerId = std::forward<OwnerIdT>(value);
74 }
75 template <typename OwnerIdT = Aws::String>
77 SetOwnerId(std::forward<OwnerIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<PropagatingVgwSetDetails>& GetPropagatingVgwSet() const { return m_propagatingVgwSet; }
87 inline bool PropagatingVgwSetHasBeenSet() const { return m_propagatingVgwSetHasBeenSet; }
88 template <typename PropagatingVgwSetT = Aws::Vector<PropagatingVgwSetDetails>>
89 void SetPropagatingVgwSet(PropagatingVgwSetT&& value) {
90 m_propagatingVgwSetHasBeenSet = true;
91 m_propagatingVgwSet = std::forward<PropagatingVgwSetT>(value);
92 }
93 template <typename PropagatingVgwSetT = Aws::Vector<PropagatingVgwSetDetails>>
94 AwsEc2RouteTableDetails& WithPropagatingVgwSet(PropagatingVgwSetT&& value) {
95 SetPropagatingVgwSet(std::forward<PropagatingVgwSetT>(value));
96 return *this;
97 }
98 template <typename PropagatingVgwSetT = PropagatingVgwSetDetails>
99 AwsEc2RouteTableDetails& AddPropagatingVgwSet(PropagatingVgwSetT&& value) {
100 m_propagatingVgwSetHasBeenSet = true;
101 m_propagatingVgwSet.emplace_back(std::forward<PropagatingVgwSetT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
111 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
112 template <typename RouteTableIdT = Aws::String>
113 void SetRouteTableId(RouteTableIdT&& value) {
114 m_routeTableIdHasBeenSet = true;
115 m_routeTableId = std::forward<RouteTableIdT>(value);
116 }
117 template <typename RouteTableIdT = Aws::String>
119 SetRouteTableId(std::forward<RouteTableIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<RouteSetDetails>& GetRouteSet() const { return m_routeSet; }
129 inline bool RouteSetHasBeenSet() const { return m_routeSetHasBeenSet; }
130 template <typename RouteSetT = Aws::Vector<RouteSetDetails>>
131 void SetRouteSet(RouteSetT&& value) {
132 m_routeSetHasBeenSet = true;
133 m_routeSet = std::forward<RouteSetT>(value);
134 }
135 template <typename RouteSetT = Aws::Vector<RouteSetDetails>>
137 SetRouteSet(std::forward<RouteSetT>(value));
138 return *this;
139 }
140 template <typename RouteSetT = RouteSetDetails>
142 m_routeSetHasBeenSet = true;
143 m_routeSet.emplace_back(std::forward<RouteSetT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetVpcId() const { return m_vpcId; }
153 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
154 template <typename VpcIdT = Aws::String>
155 void SetVpcId(VpcIdT&& value) {
156 m_vpcIdHasBeenSet = true;
157 m_vpcId = std::forward<VpcIdT>(value);
158 }
159 template <typename VpcIdT = Aws::String>
161 SetVpcId(std::forward<VpcIdT>(value));
162 return *this;
163 }
165 private:
166 Aws::Vector<AssociationSetDetails> m_associationSet;
167
168 Aws::String m_ownerId;
169
170 Aws::Vector<PropagatingVgwSetDetails> m_propagatingVgwSet;
171
172 Aws::String m_routeTableId;
173
175
176 Aws::String m_vpcId;
177 bool m_associationSetHasBeenSet = false;
178 bool m_ownerIdHasBeenSet = false;
179 bool m_propagatingVgwSetHasBeenSet = false;
180 bool m_routeTableIdHasBeenSet = false;
181 bool m_routeSetHasBeenSet = false;
182 bool m_vpcIdHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace SecurityHub
187} // namespace Aws
AWS_SECURITYHUB_API AwsEc2RouteTableDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsEc2RouteTableDetails()=default
AwsEc2RouteTableDetails & WithVpcId(VpcIdT &&value)
AwsEc2RouteTableDetails & AddPropagatingVgwSet(PropagatingVgwSetT &&value)
AwsEc2RouteTableDetails & AddRouteSet(RouteSetT &&value)
AwsEc2RouteTableDetails & WithRouteSet(RouteSetT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2RouteTableDetails & AddAssociationSet(AssociationSetT &&value)
AwsEc2RouteTableDetails & WithAssociationSet(AssociationSetT &&value)
AwsEc2RouteTableDetails & WithPropagatingVgwSet(PropagatingVgwSetT &&value)
AWS_SECURITYHUB_API AwsEc2RouteTableDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2RouteTableDetails & WithRouteTableId(RouteTableIdT &&value)
const Aws::Vector< PropagatingVgwSetDetails > & GetPropagatingVgwSet() const
const Aws::Vector< AssociationSetDetails > & GetAssociationSet() const
const Aws::Vector< RouteSetDetails > & GetRouteSet() const
AwsEc2RouteTableDetails & WithOwnerId(OwnerIdT &&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