AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
EnvironmentVpc.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MigrationHubRefactorSpaces {
22namespace Model {
23
31 public:
32 AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentVpc() = default;
33 AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentVpc(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentVpc& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
50 EnvironmentVpc& WithAccountId(AccountIdT&& value) {
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetCidrBlocks() const { return m_cidrBlocks; }
61 inline bool CidrBlocksHasBeenSet() const { return m_cidrBlocksHasBeenSet; }
62 template <typename CidrBlocksT = Aws::Vector<Aws::String>>
63 void SetCidrBlocks(CidrBlocksT&& value) {
64 m_cidrBlocksHasBeenSet = true;
65 m_cidrBlocks = std::forward<CidrBlocksT>(value);
66 }
67 template <typename CidrBlocksT = Aws::Vector<Aws::String>>
68 EnvironmentVpc& WithCidrBlocks(CidrBlocksT&& value) {
69 SetCidrBlocks(std::forward<CidrBlocksT>(value));
70 return *this;
71 }
72 template <typename CidrBlocksT = Aws::String>
73 EnvironmentVpc& AddCidrBlocks(CidrBlocksT&& value) {
74 m_cidrBlocksHasBeenSet = true;
75 m_cidrBlocks.emplace_back(std::forward<CidrBlocksT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
86 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
87 template <typename CreatedTimeT = Aws::Utils::DateTime>
88 void SetCreatedTime(CreatedTimeT&& value) {
89 m_createdTimeHasBeenSet = true;
90 m_createdTime = std::forward<CreatedTimeT>(value);
91 }
92 template <typename CreatedTimeT = Aws::Utils::DateTime>
93 EnvironmentVpc& WithCreatedTime(CreatedTimeT&& value) {
94 SetCreatedTime(std::forward<CreatedTimeT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
104 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
105 template <typename EnvironmentIdT = Aws::String>
106 void SetEnvironmentId(EnvironmentIdT&& value) {
107 m_environmentIdHasBeenSet = true;
108 m_environmentId = std::forward<EnvironmentIdT>(value);
109 }
110 template <typename EnvironmentIdT = Aws::String>
111 EnvironmentVpc& WithEnvironmentId(EnvironmentIdT&& value) {
112 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
123 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
124 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
125 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
126 m_lastUpdatedTimeHasBeenSet = true;
127 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
128 }
129 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
130 EnvironmentVpc& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
131 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetVpcId() const { return m_vpcId; }
141 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
142 template <typename VpcIdT = Aws::String>
143 void SetVpcId(VpcIdT&& value) {
144 m_vpcIdHasBeenSet = true;
145 m_vpcId = std::forward<VpcIdT>(value);
146 }
147 template <typename VpcIdT = Aws::String>
148 EnvironmentVpc& WithVpcId(VpcIdT&& value) {
149 SetVpcId(std::forward<VpcIdT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetVpcName() const { return m_vpcName; }
159 inline bool VpcNameHasBeenSet() const { return m_vpcNameHasBeenSet; }
160 template <typename VpcNameT = Aws::String>
161 void SetVpcName(VpcNameT&& value) {
162 m_vpcNameHasBeenSet = true;
163 m_vpcName = std::forward<VpcNameT>(value);
164 }
165 template <typename VpcNameT = Aws::String>
166 EnvironmentVpc& WithVpcName(VpcNameT&& value) {
167 SetVpcName(std::forward<VpcNameT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_accountId;
173
174 Aws::Vector<Aws::String> m_cidrBlocks;
175
176 Aws::Utils::DateTime m_createdTime{};
177
178 Aws::String m_environmentId;
179
180 Aws::Utils::DateTime m_lastUpdatedTime{};
181
182 Aws::String m_vpcId;
183
184 Aws::String m_vpcName;
185 bool m_accountIdHasBeenSet = false;
186 bool m_cidrBlocksHasBeenSet = false;
187 bool m_createdTimeHasBeenSet = false;
188 bool m_environmentIdHasBeenSet = false;
189 bool m_lastUpdatedTimeHasBeenSet = false;
190 bool m_vpcIdHasBeenSet = false;
191 bool m_vpcNameHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace MigrationHubRefactorSpaces
196} // namespace Aws
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentVpc & WithAccountId(AccountIdT &&value)
EnvironmentVpc & AddCidrBlocks(CidrBlocksT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentVpc()=default
EnvironmentVpc & WithEnvironmentId(EnvironmentIdT &&value)
EnvironmentVpc & WithCreatedTime(CreatedTimeT &&value)
EnvironmentVpc & WithLastUpdatedTime(LastUpdatedTimeT &&value)
EnvironmentVpc & WithCidrBlocks(CidrBlocksT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentVpc & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentVpc(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
const Aws::Vector< Aws::String > & GetCidrBlocks() 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