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/// <p>Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server.</p>
26/// <p>During environment creation, Amazon EVS performs validations on DNS settings, provisions VLAN subnets and hosts, and deploys the supplied version of VCF.</p>
27/// <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>
28/// <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>
29/// </note>
30#[derive(::std::clone::Clone, ::std::fmt::Debug)]
31pub struct CreateEnvironmentFluentBuilder {
32    handle: ::std::sync::Arc<crate::client::Handle>,
33    inner: crate::operation::create_environment::builders::CreateEnvironmentInputBuilder,
34    config_override: ::std::option::Option<crate::config::Builder>,
35}
36impl
37    crate::client::customize::internal::CustomizableSend<
38        crate::operation::create_environment::CreateEnvironmentOutput,
39        crate::operation::create_environment::CreateEnvironmentError,
40    > for CreateEnvironmentFluentBuilder
41{
42    fn send(
43        self,
44        config_override: crate::config::Builder,
45    ) -> crate::client::customize::internal::BoxFuture<
46        crate::client::customize::internal::SendResult<
47            crate::operation::create_environment::CreateEnvironmentOutput,
48            crate::operation::create_environment::CreateEnvironmentError,
49        >,
50    > {
51        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
52    }
53}
54impl CreateEnvironmentFluentBuilder {
55    /// Creates a new `CreateEnvironmentFluentBuilder`.
56    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
57        Self {
58            handle,
59            inner: ::std::default::Default::default(),
60            config_override: ::std::option::Option::None,
61        }
62    }
63    /// Access the CreateEnvironment as a reference.
64    pub fn as_input(&self) -> &crate::operation::create_environment::builders::CreateEnvironmentInputBuilder {
65        &self.inner
66    }
67    /// Sends the request and returns the response.
68    ///
69    /// If an error occurs, an `SdkError` will be returned with additional details that
70    /// can be matched against.
71    ///
72    /// By default, any retryable failures will be retried twice. Retry behavior
73    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
74    /// set when configuring the client.
75    pub async fn send(
76        self,
77    ) -> ::std::result::Result<
78        crate::operation::create_environment::CreateEnvironmentOutput,
79        ::aws_smithy_runtime_api::client::result::SdkError<
80            crate::operation::create_environment::CreateEnvironmentError,
81            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
82        >,
83    > {
84        let input = self
85            .inner
86            .build()
87            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
88        let runtime_plugins = crate::operation::create_environment::CreateEnvironment::operation_runtime_plugins(
89            self.handle.runtime_plugins.clone(),
90            &self.handle.conf,
91            self.config_override,
92        );
93        crate::operation::create_environment::CreateEnvironment::orchestrate(&runtime_plugins, input).await
94    }
95
96    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
97    pub fn customize(
98        self,
99    ) -> crate::client::customize::CustomizableOperation<
100        crate::operation::create_environment::CreateEnvironmentOutput,
101        crate::operation::create_environment::CreateEnvironmentError,
102        Self,
103    > {
104        crate::client::customize::CustomizableOperation::new(self)
105    }
106    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
107        self.set_config_override(::std::option::Option::Some(config_override.into()));
108        self
109    }
110
111    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
112        self.config_override = config_override;
113        self
114    }
115    /// <note>
116    /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
117    /// </note>
118    /// <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>
119    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
120        self.inner = self.inner.client_token(input.into());
121        self
122    }
123    /// <note>
124    /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
125    /// </note>
126    /// <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>
127    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128        self.inner = self.inner.set_client_token(input);
129        self
130    }
131    /// <note>
132    /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
133    /// </note>
134    /// <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>
135    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
136        self.inner.get_client_token()
137    }
138    /// <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>
139    pub fn environment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
140        self.inner = self.inner.environment_name(input.into());
141        self
142    }
143    /// <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>
144    pub fn set_environment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
145        self.inner = self.inner.set_environment_name(input);
146        self
147    }
148    /// <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>
149    pub fn get_environment_name(&self) -> &::std::option::Option<::std::string::String> {
150        self.inner.get_environment_name()
151    }
152    /// <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>
153    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154        self.inner = self.inner.kms_key_id(input.into());
155        self
156    }
157    /// <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>
158    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
159        self.inner = self.inner.set_kms_key_id(input);
160        self
161    }
162    /// <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>
163    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
164        self.inner.get_kms_key_id()
165    }
166    ///
167    /// Adds a key-value pair to `tags`.
168    ///
169    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
170    ///
171    /// <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>
172    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
173        self.inner = self.inner.tags(k.into(), v.into());
174        self
175    }
176    /// <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>
177    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
178        self.inner = self.inner.set_tags(input);
179        self
180    }
181    /// <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>
182    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
183        self.inner.get_tags()
184    }
185    /// <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>
186    /// <p>The security group should allow access to the following.</p>
187    /// <ul>
188    /// <li>
189    /// <p>TCP/UDP access to the DNS servers</p></li>
190    /// <li>
191    /// <p>HTTPS/SSH access to the host management VLAN subnet</p></li>
192    /// <li>
193    /// <p>HTTPS/SSH access to the Management VM VLAN subnet</p></li>
194    /// </ul>
195    /// <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>
196    pub fn service_access_security_groups(mut self, input: crate::types::ServiceAccessSecurityGroups) -> Self {
197        self.inner = self.inner.service_access_security_groups(input);
198        self
199    }
200    /// <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>
201    /// <p>The security group should allow access to the following.</p>
202    /// <ul>
203    /// <li>
204    /// <p>TCP/UDP access to the DNS servers</p></li>
205    /// <li>
206    /// <p>HTTPS/SSH access to the host management VLAN subnet</p></li>
207    /// <li>
208    /// <p>HTTPS/SSH access to the Management VM VLAN subnet</p></li>
209    /// </ul>
210    /// <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>
211    pub fn set_service_access_security_groups(mut self, input: ::std::option::Option<crate::types::ServiceAccessSecurityGroups>) -> Self {
212        self.inner = self.inner.set_service_access_security_groups(input);
213        self
214    }
215    /// <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>
216    /// <p>The security group should allow access to the following.</p>
217    /// <ul>
218    /// <li>
219    /// <p>TCP/UDP access to the DNS servers</p></li>
220    /// <li>
221    /// <p>HTTPS/SSH access to the host management VLAN subnet</p></li>
222    /// <li>
223    /// <p>HTTPS/SSH access to the Management VM VLAN subnet</p></li>
224    /// </ul>
225    /// <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>
226    pub fn get_service_access_security_groups(&self) -> &::std::option::Option<crate::types::ServiceAccessSecurityGroups> {
227        self.inner.get_service_access_security_groups()
228    }
229    /// <p>A unique ID for the VPC that the environment is deployed inside.</p>
230    /// <p>Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.</p>
231    /// <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>
232    /// <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>
233    /// <p>Ensure that you specify a VPC that is adequately sized to accommodate the {evws} subnets.</p>
234    /// </note>
235    pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
236        self.inner = self.inner.vpc_id(input.into());
237        self
238    }
239    /// <p>A unique ID for the VPC that the environment is deployed inside.</p>
240    /// <p>Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.</p>
241    /// <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>
242    /// <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>
243    /// <p>Ensure that you specify a VPC that is adequately sized to accommodate the {evws} subnets.</p>
244    /// </note>
245    pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
246        self.inner = self.inner.set_vpc_id(input);
247        self
248    }
249    /// <p>A unique ID for the VPC that the environment is deployed inside.</p>
250    /// <p>Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.</p>
251    /// <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>
252    /// <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>
253    /// <p>Ensure that you specify a VPC that is adequately sized to accommodate the {evws} subnets.</p>
254    /// </note>
255    pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
256        self.inner.get_vpc_id()
257    }
258    /// <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>
259    pub fn service_access_subnet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
260        self.inner = self.inner.service_access_subnet_id(input.into());
261        self
262    }
263    /// <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>
264    pub fn set_service_access_subnet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265        self.inner = self.inner.set_service_access_subnet_id(input);
266        self
267    }
268    /// <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>
269    pub fn get_service_access_subnet_id(&self) -> &::std::option::Option<::std::string::String> {
270        self.inner.get_service_access_subnet_id()
271    }
272    /// <p>The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.</p>
273    pub fn vcf_version(mut self, input: crate::types::VcfVersion) -> Self {
274        self.inner = self.inner.vcf_version(input);
275        self
276    }
277    /// <p>The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.</p>
278    pub fn set_vcf_version(mut self, input: ::std::option::Option<crate::types::VcfVersion>) -> Self {
279        self.inner = self.inner.set_vcf_version(input);
280        self
281    }
282    /// <p>The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.</p>
283    pub fn get_vcf_version(&self) -> &::std::option::Option<crate::types::VcfVersion> {
284        self.inner.get_vcf_version()
285    }
286    /// <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>
287    pub fn terms_accepted(mut self, input: bool) -> Self {
288        self.inner = self.inner.terms_accepted(input);
289        self
290    }
291    /// <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>
292    pub fn set_terms_accepted(mut self, input: ::std::option::Option<bool>) -> Self {
293        self.inner = self.inner.set_terms_accepted(input);
294        self
295    }
296    /// <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>
297    pub fn get_terms_accepted(&self) -> &::std::option::Option<bool> {
298        self.inner.get_terms_accepted()
299    }
300    ///
301    /// Appends an item to `licenseInfo`.
302    ///
303    /// To override the contents of this collection use [`set_license_info`](Self::set_license_info).
304    ///
305    /// <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>
306    /// <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>
307    /// <p>VCF license information can be retrieved from the Broadcom portal.</p>
308    pub fn license_info(mut self, input: crate::types::LicenseInfo) -> Self {
309        self.inner = self.inner.license_info(input);
310        self
311    }
312    /// <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>
313    /// <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>
314    /// <p>VCF license information can be retrieved from the Broadcom portal.</p>
315    pub fn set_license_info(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LicenseInfo>>) -> Self {
316        self.inner = self.inner.set_license_info(input);
317        self
318    }
319    /// <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>
320    /// <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>
321    /// <p>VCF license information can be retrieved from the Broadcom portal.</p>
322    pub fn get_license_info(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LicenseInfo>> {
323        self.inner.get_license_info()
324    }
325    /// <p>The initial VLAN subnets for the Amazon EVS environment.</p><note>
326    /// <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>
327    /// </note>
328    pub fn initial_vlans(mut self, input: crate::types::InitialVlans) -> Self {
329        self.inner = self.inner.initial_vlans(input);
330        self
331    }
332    /// <p>The initial VLAN subnets for the Amazon EVS environment.</p><note>
333    /// <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>
334    /// </note>
335    pub fn set_initial_vlans(mut self, input: ::std::option::Option<crate::types::InitialVlans>) -> Self {
336        self.inner = self.inner.set_initial_vlans(input);
337        self
338    }
339    /// <p>The initial VLAN subnets for the Amazon EVS environment.</p><note>
340    /// <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>
341    /// </note>
342    pub fn get_initial_vlans(&self) -> &::std::option::Option<crate::types::InitialVlans> {
343        self.inner.get_initial_vlans()
344    }
345    ///
346    /// Appends an item to `hosts`.
347    ///
348    /// To override the contents of this collection use [`set_hosts`](Self::set_hosts).
349    ///
350    /// <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>
351    /// <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>
352    pub fn hosts(mut self, input: crate::types::HostInfoForCreate) -> Self {
353        self.inner = self.inner.hosts(input);
354        self
355    }
356    /// <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>
357    /// <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>
358    pub fn set_hosts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::HostInfoForCreate>>) -> Self {
359        self.inner = self.inner.set_hosts(input);
360        self
361    }
362    /// <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>
363    /// <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>
364    pub fn get_hosts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::HostInfoForCreate>> {
365        self.inner.get_hosts()
366    }
367    /// <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>
368    pub fn connectivity_info(mut self, input: crate::types::ConnectivityInfo) -> Self {
369        self.inner = self.inner.connectivity_info(input);
370        self
371    }
372    /// <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>
373    pub fn set_connectivity_info(mut self, input: ::std::option::Option<crate::types::ConnectivityInfo>) -> Self {
374        self.inner = self.inner.set_connectivity_info(input);
375        self
376    }
377    /// <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>
378    pub fn get_connectivity_info(&self) -> &::std::option::Option<crate::types::ConnectivityInfo> {
379        self.inner.get_connectivity_info()
380    }
381    /// <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>
382    pub fn vcf_hostnames(mut self, input: crate::types::VcfHostnames) -> Self {
383        self.inner = self.inner.vcf_hostnames(input);
384        self
385    }
386    /// <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>
387    pub fn set_vcf_hostnames(mut self, input: ::std::option::Option<crate::types::VcfHostnames>) -> Self {
388        self.inner = self.inner.set_vcf_hostnames(input);
389        self
390    }
391    /// <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>
392    pub fn get_vcf_hostnames(&self) -> &::std::option::Option<crate::types::VcfHostnames> {
393        self.inner.get_vcf_hostnames()
394    }
395    /// <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>
396    pub fn site_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
397        self.inner = self.inner.site_id(input.into());
398        self
399    }
400    /// <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>
401    pub fn set_site_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
402        self.inner = self.inner.set_site_id(input);
403        self
404    }
405    /// <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>
406    pub fn get_site_id(&self) -> &::std::option::Option<::std::string::String> {
407        self.inner.get_site_id()
408    }
409}