aws_sdk_evs/operation/create_environment/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_environment::_create_environment_output::CreateEnvironmentOutputBuilder;
3
4pub use crate::operation::create_environment::_create_environment_input::CreateEnvironmentInputBuilder;
5
6impl crate::operation::create_environment::builders::CreateEnvironmentInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_environment::CreateEnvironmentOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_environment::CreateEnvironmentError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_environment();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateEnvironment`.
24///
25/// <note>
26/// <p>Amazon EVS is in public preview release and is subject to change.</p>
27/// </note>
28/// <p>Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server.</p>
29/// <p>During environment creation, Amazon EVS performs validations on DNS settings, provisions VLAN subnets and hosts, and deploys the supplied version of VCF.</p>
30/// <p>It can take several hours to create an environment. After the deployment completes, you can configure VCF in the vSphere user interface according to your needs.</p><note>
31/// <p>You cannot use the <code>dedicatedHostId</code> and <code>placementGroupId</code> parameters together in the same <code>CreateEnvironment</code> action. This results in a <code>ValidationException</code> response.</p>
32/// </note>
33#[derive(::std::clone::Clone, ::std::fmt::Debug)]
34pub struct CreateEnvironmentFluentBuilder {
35 handle: ::std::sync::Arc<crate::client::Handle>,
36 inner: crate::operation::create_environment::builders::CreateEnvironmentInputBuilder,
37 config_override: ::std::option::Option<crate::config::Builder>,
38}
39impl
40 crate::client::customize::internal::CustomizableSend<
41 crate::operation::create_environment::CreateEnvironmentOutput,
42 crate::operation::create_environment::CreateEnvironmentError,
43 > for CreateEnvironmentFluentBuilder
44{
45 fn send(
46 self,
47 config_override: crate::config::Builder,
48 ) -> crate::client::customize::internal::BoxFuture<
49 crate::client::customize::internal::SendResult<
50 crate::operation::create_environment::CreateEnvironmentOutput,
51 crate::operation::create_environment::CreateEnvironmentError,
52 >,
53 > {
54 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
55 }
56}
57impl CreateEnvironmentFluentBuilder {
58 /// Creates a new `CreateEnvironmentFluentBuilder`.
59 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
60 Self {
61 handle,
62 inner: ::std::default::Default::default(),
63 config_override: ::std::option::Option::None,
64 }
65 }
66 /// Access the CreateEnvironment as a reference.
67 pub fn as_input(&self) -> &crate::operation::create_environment::builders::CreateEnvironmentInputBuilder {
68 &self.inner
69 }
70 /// Sends the request and returns the response.
71 ///
72 /// If an error occurs, an `SdkError` will be returned with additional details that
73 /// can be matched against.
74 ///
75 /// By default, any retryable failures will be retried twice. Retry behavior
76 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
77 /// set when configuring the client.
78 pub async fn send(
79 self,
80 ) -> ::std::result::Result<
81 crate::operation::create_environment::CreateEnvironmentOutput,
82 ::aws_smithy_runtime_api::client::result::SdkError<
83 crate::operation::create_environment::CreateEnvironmentError,
84 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
85 >,
86 > {
87 let input = self
88 .inner
89 .build()
90 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
91 let runtime_plugins = crate::operation::create_environment::CreateEnvironment::operation_runtime_plugins(
92 self.handle.runtime_plugins.clone(),
93 &self.handle.conf,
94 self.config_override,
95 );
96 crate::operation::create_environment::CreateEnvironment::orchestrate(&runtime_plugins, input).await
97 }
98
99 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
100 pub fn customize(
101 self,
102 ) -> crate::client::customize::CustomizableOperation<
103 crate::operation::create_environment::CreateEnvironmentOutput,
104 crate::operation::create_environment::CreateEnvironmentError,
105 Self,
106 > {
107 crate::client::customize::CustomizableOperation::new(self)
108 }
109 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
110 self.set_config_override(::std::option::Option::Some(config_override.into()));
111 self
112 }
113
114 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
115 self.config_override = config_override;
116 self
117 }
118 /// <note>
119 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
120 /// </note>
121 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment creation request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
122 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
123 self.inner = self.inner.client_token(input.into());
124 self
125 }
126 /// <note>
127 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
128 /// </note>
129 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment creation request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
130 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
131 self.inner = self.inner.set_client_token(input);
132 self
133 }
134 /// <note>
135 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
136 /// </note>
137 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment creation request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
138 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
139 self.inner.get_client_token()
140 }
141 /// <p>The name to give to your environment. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphanumeric character, and can't be longer than 100 characters. The name must be unique within the Amazon Web Services Region and Amazon Web Services account that you're creating the environment in.</p>
142 pub fn environment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143 self.inner = self.inner.environment_name(input.into());
144 self
145 }
146 /// <p>The name to give to your environment. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphanumeric character, and can't be longer than 100 characters. The name must be unique within the Amazon Web Services Region and Amazon Web Services account that you're creating the environment in.</p>
147 pub fn set_environment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
148 self.inner = self.inner.set_environment_name(input);
149 self
150 }
151 /// <p>The name to give to your environment. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphanumeric character, and can't be longer than 100 characters. The name must be unique within the Amazon Web Services Region and Amazon Web Services account that you're creating the environment in.</p>
152 pub fn get_environment_name(&self) -> &::std::option::Option<::std::string::String> {
153 self.inner.get_environment_name()
154 }
155 /// <p>A unique ID for the customer-managed KMS key that is used to encrypt the VCF credential pairs for SDDC Manager, NSX Manager, and vCenter appliances. These credentials are stored in Amazon Web Services Secrets Manager.</p>
156 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
157 self.inner = self.inner.kms_key_id(input.into());
158 self
159 }
160 /// <p>A unique ID for the customer-managed KMS key that is used to encrypt the VCF credential pairs for SDDC Manager, NSX Manager, and vCenter appliances. These credentials are stored in Amazon Web Services Secrets Manager.</p>
161 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
162 self.inner = self.inner.set_kms_key_id(input);
163 self
164 }
165 /// <p>A unique ID for the customer-managed KMS key that is used to encrypt the VCF credential pairs for SDDC Manager, NSX Manager, and vCenter appliances. These credentials are stored in Amazon Web Services Secrets Manager.</p>
166 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
167 self.inner.get_kms_key_id()
168 }
169 ///
170 /// Adds a key-value pair to `tags`.
171 ///
172 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
173 ///
174 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
175 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
176 self.inner = self.inner.tags(k.into(), v.into());
177 self
178 }
179 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
180 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
181 self.inner = self.inner.set_tags(input);
182 self
183 }
184 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
185 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
186 self.inner.get_tags()
187 }
188 /// <p>The security group that controls communication between the Amazon EVS control plane and VPC. The default security group is used if a custom security group isn't specified.</p>
189 /// <p>The security group should allow access to the following.</p>
190 /// <ul>
191 /// <li>
192 /// <p>TCP/UDP access to the DNS servers</p></li>
193 /// <li>
194 /// <p>HTTPS/SSH access to the host management VLAN subnet</p></li>
195 /// <li>
196 /// <p>HTTPS/SSH access to the Management VM VLAN subnet</p></li>
197 /// </ul>
198 /// <p>You should avoid modifying the security group rules after deployment, as this can break the persistent connection between the Amazon EVS control plane and VPC. This can cause future environment actions like adding or removing hosts to fail.</p>
199 pub fn service_access_security_groups(mut self, input: crate::types::ServiceAccessSecurityGroups) -> Self {
200 self.inner = self.inner.service_access_security_groups(input);
201 self
202 }
203 /// <p>The security group that controls communication between the Amazon EVS control plane and VPC. The default security group is used if a custom security group isn't specified.</p>
204 /// <p>The security group should allow access to the following.</p>
205 /// <ul>
206 /// <li>
207 /// <p>TCP/UDP access to the DNS servers</p></li>
208 /// <li>
209 /// <p>HTTPS/SSH access to the host management VLAN subnet</p></li>
210 /// <li>
211 /// <p>HTTPS/SSH access to the Management VM VLAN subnet</p></li>
212 /// </ul>
213 /// <p>You should avoid modifying the security group rules after deployment, as this can break the persistent connection between the Amazon EVS control plane and VPC. This can cause future environment actions like adding or removing hosts to fail.</p>
214 pub fn set_service_access_security_groups(mut self, input: ::std::option::Option<crate::types::ServiceAccessSecurityGroups>) -> Self {
215 self.inner = self.inner.set_service_access_security_groups(input);
216 self
217 }
218 /// <p>The security group that controls communication between the Amazon EVS control plane and VPC. The default security group is used if a custom security group isn't specified.</p>
219 /// <p>The security group should allow access to the following.</p>
220 /// <ul>
221 /// <li>
222 /// <p>TCP/UDP access to the DNS servers</p></li>
223 /// <li>
224 /// <p>HTTPS/SSH access to the host management VLAN subnet</p></li>
225 /// <li>
226 /// <p>HTTPS/SSH access to the Management VM VLAN subnet</p></li>
227 /// </ul>
228 /// <p>You should avoid modifying the security group rules after deployment, as this can break the persistent connection between the Amazon EVS control plane and VPC. This can cause future environment actions like adding or removing hosts to fail.</p>
229 pub fn get_service_access_security_groups(&self) -> &::std::option::Option<crate::types::ServiceAccessSecurityGroups> {
230 self.inner.get_service_access_security_groups()
231 }
232 /// <p>A unique ID for the VPC that the environment is deployed inside.</p>
233 /// <p>Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.</p>
234 /// <p>The VPC that you specify must have a valid DHCP option set with domain name, at least two DNS servers, and an NTP server. These settings are used to configure your VCF appliances and hosts. The VPC cannot be used with any other deployed Amazon EVS environment. Amazon EVS does not provide multi-VPC support for environments at this time.</p>
235 /// <p>Amazon EVS does not support the following Amazon Web Services networking options for NSX overlay connectivity: cross-Region VPC peering, Amazon S3 gateway endpoints, or Amazon Web Services Direct Connect virtual private gateway associations.</p><note>
236 /// <p>Ensure that you specify a VPC that is adequately sized to accommodate the {evws} subnets.</p>
237 /// </note>
238 pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
239 self.inner = self.inner.vpc_id(input.into());
240 self
241 }
242 /// <p>A unique ID for the VPC that the environment is deployed inside.</p>
243 /// <p>Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.</p>
244 /// <p>The VPC that you specify must have a valid DHCP option set with domain name, at least two DNS servers, and an NTP server. These settings are used to configure your VCF appliances and hosts. The VPC cannot be used with any other deployed Amazon EVS environment. Amazon EVS does not provide multi-VPC support for environments at this time.</p>
245 /// <p>Amazon EVS does not support the following Amazon Web Services networking options for NSX overlay connectivity: cross-Region VPC peering, Amazon S3 gateway endpoints, or Amazon Web Services Direct Connect virtual private gateway associations.</p><note>
246 /// <p>Ensure that you specify a VPC that is adequately sized to accommodate the {evws} subnets.</p>
247 /// </note>
248 pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
249 self.inner = self.inner.set_vpc_id(input);
250 self
251 }
252 /// <p>A unique ID for the VPC that the environment is deployed inside.</p>
253 /// <p>Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.</p>
254 /// <p>The VPC that you specify must have a valid DHCP option set with domain name, at least two DNS servers, and an NTP server. These settings are used to configure your VCF appliances and hosts. The VPC cannot be used with any other deployed Amazon EVS environment. Amazon EVS does not provide multi-VPC support for environments at this time.</p>
255 /// <p>Amazon EVS does not support the following Amazon Web Services networking options for NSX overlay connectivity: cross-Region VPC peering, Amazon S3 gateway endpoints, or Amazon Web Services Direct Connect virtual private gateway associations.</p><note>
256 /// <p>Ensure that you specify a VPC that is adequately sized to accommodate the {evws} subnets.</p>
257 /// </note>
258 pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
259 self.inner.get_vpc_id()
260 }
261 /// <p>The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. Amazon EVS uses this subnet to validate mandatory DNS records for your VCF appliances and hosts and create the environment.</p>
262 pub fn service_access_subnet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
263 self.inner = self.inner.service_access_subnet_id(input.into());
264 self
265 }
266 /// <p>The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. Amazon EVS uses this subnet to validate mandatory DNS records for your VCF appliances and hosts and create the environment.</p>
267 pub fn set_service_access_subnet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
268 self.inner = self.inner.set_service_access_subnet_id(input);
269 self
270 }
271 /// <p>The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. Amazon EVS uses this subnet to validate mandatory DNS records for your VCF appliances and hosts and create the environment.</p>
272 pub fn get_service_access_subnet_id(&self) -> &::std::option::Option<::std::string::String> {
273 self.inner.get_service_access_subnet_id()
274 }
275 /// <p>The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.</p>
276 pub fn vcf_version(mut self, input: crate::types::VcfVersion) -> Self {
277 self.inner = self.inner.vcf_version(input);
278 self
279 }
280 /// <p>The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.</p>
281 pub fn set_vcf_version(mut self, input: ::std::option::Option<crate::types::VcfVersion>) -> Self {
282 self.inner = self.inner.set_vcf_version(input);
283 self
284 }
285 /// <p>The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.</p>
286 pub fn get_vcf_version(&self) -> &::std::option::Option<crate::types::VcfVersion> {
287 self.inner.get_vcf_version()
288 }
289 /// <p>Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment. Information about your VCF software in Amazon EVS will be shared with Broadcom to verify license compliance. Amazon EVS does not validate license keys. To validate license keys, visit the Broadcom support portal.</p>
290 pub fn terms_accepted(mut self, input: bool) -> Self {
291 self.inner = self.inner.terms_accepted(input);
292 self
293 }
294 /// <p>Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment. Information about your VCF software in Amazon EVS will be shared with Broadcom to verify license compliance. Amazon EVS does not validate license keys. To validate license keys, visit the Broadcom support portal.</p>
295 pub fn set_terms_accepted(mut self, input: ::std::option::Option<bool>) -> Self {
296 self.inner = self.inner.set_terms_accepted(input);
297 self
298 }
299 /// <p>Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment. Information about your VCF software in Amazon EVS will be shared with Broadcom to verify license compliance. Amazon EVS does not validate license keys. To validate license keys, visit the Broadcom support portal.</p>
300 pub fn get_terms_accepted(&self) -> &::std::option::Option<bool> {
301 self.inner.get_terms_accepted()
302 }
303 ///
304 /// Appends an item to `licenseInfo`.
305 ///
306 /// To override the contents of this collection use [`set_license_info`](Self::set_license_info).
307 ///
308 /// <p>The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key. The VCF solution key must cover a minimum of 256 cores. The vSAN license key must provide at least 110 TiB of vSAN capacity.</p>
309 /// <p>VCF licenses can be used for only one Amazon EVS environment. Amazon EVS does not support reuse of VCF licenses for multiple environments.</p>
310 /// <p>VCF license information can be retrieved from the Broadcom portal.</p>
311 pub fn license_info(mut self, input: crate::types::LicenseInfo) -> Self {
312 self.inner = self.inner.license_info(input);
313 self
314 }
315 /// <p>The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key. The VCF solution key must cover a minimum of 256 cores. The vSAN license key must provide at least 110 TiB of vSAN capacity.</p>
316 /// <p>VCF licenses can be used for only one Amazon EVS environment. Amazon EVS does not support reuse of VCF licenses for multiple environments.</p>
317 /// <p>VCF license information can be retrieved from the Broadcom portal.</p>
318 pub fn set_license_info(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LicenseInfo>>) -> Self {
319 self.inner = self.inner.set_license_info(input);
320 self
321 }
322 /// <p>The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key. The VCF solution key must cover a minimum of 256 cores. The vSAN license key must provide at least 110 TiB of vSAN capacity.</p>
323 /// <p>VCF licenses can be used for only one Amazon EVS environment. Amazon EVS does not support reuse of VCF licenses for multiple environments.</p>
324 /// <p>VCF license information can be retrieved from the Broadcom portal.</p>
325 pub fn get_license_info(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LicenseInfo>> {
326 self.inner.get_license_info()
327 }
328 /// <p>The initial VLAN subnets for the Amazon EVS environment.</p><note>
329 /// <p>For each Amazon EVS VLAN subnet, you must specify a non-overlapping CIDR block. Amazon EVS VLAN subnets have a minimum CIDR block size of /28 and a maximum size of /24.</p>
330 /// </note>
331 pub fn initial_vlans(mut self, input: crate::types::InitialVlans) -> Self {
332 self.inner = self.inner.initial_vlans(input);
333 self
334 }
335 /// <p>The initial VLAN subnets for the Amazon EVS environment.</p><note>
336 /// <p>For each Amazon EVS VLAN subnet, you must specify a non-overlapping CIDR block. Amazon EVS VLAN subnets have a minimum CIDR block size of /28 and a maximum size of /24.</p>
337 /// </note>
338 pub fn set_initial_vlans(mut self, input: ::std::option::Option<crate::types::InitialVlans>) -> Self {
339 self.inner = self.inner.set_initial_vlans(input);
340 self
341 }
342 /// <p>The initial VLAN subnets for the Amazon EVS environment.</p><note>
343 /// <p>For each Amazon EVS VLAN subnet, you must specify a non-overlapping CIDR block. Amazon EVS VLAN subnets have a minimum CIDR block size of /28 and a maximum size of /24.</p>
344 /// </note>
345 pub fn get_initial_vlans(&self) -> &::std::option::Option<crate::types::InitialVlans> {
346 self.inner.get_initial_vlans()
347 }
348 ///
349 /// Appends an item to `hosts`.
350 ///
351 /// To override the contents of this collection use [`set_hosts`](Self::set_hosts).
352 ///
353 /// <p>The ESXi hosts to add to the environment. Amazon EVS requires that you provide details for a minimum of 4 hosts during environment creation.</p>
354 /// <p>For each host, you must provide the desired hostname, EC2 SSH keypair name, and EC2 instance type. Optionally, you can also provide a partition or cluster placement group to use, or use Amazon EC2 Dedicated Hosts.</p>
355 pub fn hosts(mut self, input: crate::types::HostInfoForCreate) -> Self {
356 self.inner = self.inner.hosts(input);
357 self
358 }
359 /// <p>The ESXi hosts to add to the environment. Amazon EVS requires that you provide details for a minimum of 4 hosts during environment creation.</p>
360 /// <p>For each host, you must provide the desired hostname, EC2 SSH keypair name, and EC2 instance type. Optionally, you can also provide a partition or cluster placement group to use, or use Amazon EC2 Dedicated Hosts.</p>
361 pub fn set_hosts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::HostInfoForCreate>>) -> Self {
362 self.inner = self.inner.set_hosts(input);
363 self
364 }
365 /// <p>The ESXi hosts to add to the environment. Amazon EVS requires that you provide details for a minimum of 4 hosts during environment creation.</p>
366 /// <p>For each host, you must provide the desired hostname, EC2 SSH keypair name, and EC2 instance type. Optionally, you can also provide a partition or cluster placement group to use, or use Amazon EC2 Dedicated Hosts.</p>
367 pub fn get_hosts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::HostInfoForCreate>> {
368 self.inner.get_hosts()
369 }
370 /// <p>The connectivity configuration for the environment. Amazon EVS requires that you specify two route server peer IDs. During environment creation, the route server endpoints peer with the NSX edges over the NSX uplink subnet, providing BGP-based dynamic routing for overlay networks.</p>
371 pub fn connectivity_info(mut self, input: crate::types::ConnectivityInfo) -> Self {
372 self.inner = self.inner.connectivity_info(input);
373 self
374 }
375 /// <p>The connectivity configuration for the environment. Amazon EVS requires that you specify two route server peer IDs. During environment creation, the route server endpoints peer with the NSX edges over the NSX uplink subnet, providing BGP-based dynamic routing for overlay networks.</p>
376 pub fn set_connectivity_info(mut self, input: ::std::option::Option<crate::types::ConnectivityInfo>) -> Self {
377 self.inner = self.inner.set_connectivity_info(input);
378 self
379 }
380 /// <p>The connectivity configuration for the environment. Amazon EVS requires that you specify two route server peer IDs. During environment creation, the route server endpoints peer with the NSX edges over the NSX uplink subnet, providing BGP-based dynamic routing for overlay networks.</p>
381 pub fn get_connectivity_info(&self) -> &::std::option::Option<crate::types::ConnectivityInfo> {
382 self.inner.get_connectivity_info()
383 }
384 /// <p>The DNS hostnames for the virtual machines that host the VCF management appliances. Amazon EVS requires that you provide DNS hostnames for the following appliances: vCenter, NSX Manager, SDDC Manager, and Cloud Builder.</p>
385 pub fn vcf_hostnames(mut self, input: crate::types::VcfHostnames) -> Self {
386 self.inner = self.inner.vcf_hostnames(input);
387 self
388 }
389 /// <p>The DNS hostnames for the virtual machines that host the VCF management appliances. Amazon EVS requires that you provide DNS hostnames for the following appliances: vCenter, NSX Manager, SDDC Manager, and Cloud Builder.</p>
390 pub fn set_vcf_hostnames(mut self, input: ::std::option::Option<crate::types::VcfHostnames>) -> Self {
391 self.inner = self.inner.set_vcf_hostnames(input);
392 self
393 }
394 /// <p>The DNS hostnames for the virtual machines that host the VCF management appliances. Amazon EVS requires that you provide DNS hostnames for the following appliances: vCenter, NSX Manager, SDDC Manager, and Cloud Builder.</p>
395 pub fn get_vcf_hostnames(&self) -> &::std::option::Option<crate::types::VcfHostnames> {
396 self.inner.get_vcf_hostnames()
397 }
398 /// <p>The Broadcom Site ID that is allocated to you as part of your electronic software delivery. This ID allows customer access to the Broadcom portal, and is provided to you by Broadcom at the close of your software contract or contract renewal. Amazon EVS uses the Broadcom Site ID that you provide to meet Broadcom VCF license usage reporting requirements for Amazon EVS.</p>
399 pub fn site_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
400 self.inner = self.inner.site_id(input.into());
401 self
402 }
403 /// <p>The Broadcom Site ID that is allocated to you as part of your electronic software delivery. This ID allows customer access to the Broadcom portal, and is provided to you by Broadcom at the close of your software contract or contract renewal. Amazon EVS uses the Broadcom Site ID that you provide to meet Broadcom VCF license usage reporting requirements for Amazon EVS.</p>
404 pub fn set_site_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
405 self.inner = self.inner.set_site_id(input);
406 self
407 }
408 /// <p>The Broadcom Site ID that is allocated to you as part of your electronic software delivery. This ID allows customer access to the Broadcom portal, and is provided to you by Broadcom at the close of your software contract or contract renewal. Amazon EVS uses the Broadcom Site ID that you provide to meet Broadcom VCF license usage reporting requirements for Amazon EVS.</p>
409 pub fn get_site_id(&self) -> &::std::option::Option<::std::string::String> {
410 self.inner.get_site_id()
411 }
412}