1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ModifyAccountInput {
/// <p>The status of BYOL.</p>
pub dedicated_tenancy_support: ::std::option::Option<crate::types::DedicatedTenancySupportEnum>,
/// <p>The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the <code>ListAvailableManagementCidrRanges</code> operation.</p>
pub dedicated_tenancy_management_cidr_range: ::std::option::Option<::std::string::String>,
}
impl ModifyAccountInput {
/// <p>The status of BYOL.</p>
pub fn dedicated_tenancy_support(&self) -> ::std::option::Option<&crate::types::DedicatedTenancySupportEnum> {
self.dedicated_tenancy_support.as_ref()
}
/// <p>The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the <code>ListAvailableManagementCidrRanges</code> operation.</p>
pub fn dedicated_tenancy_management_cidr_range(&self) -> ::std::option::Option<&str> {
self.dedicated_tenancy_management_cidr_range.as_deref()
}
}
impl ModifyAccountInput {
/// Creates a new builder-style object to manufacture [`ModifyAccountInput`](crate::operation::modify_account::ModifyAccountInput).
pub fn builder() -> crate::operation::modify_account::builders::ModifyAccountInputBuilder {
crate::operation::modify_account::builders::ModifyAccountInputBuilder::default()
}
}
/// A builder for [`ModifyAccountInput`](crate::operation::modify_account::ModifyAccountInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ModifyAccountInputBuilder {
pub(crate) dedicated_tenancy_support: ::std::option::Option<crate::types::DedicatedTenancySupportEnum>,
pub(crate) dedicated_tenancy_management_cidr_range: ::std::option::Option<::std::string::String>,
}
impl ModifyAccountInputBuilder {
/// <p>The status of BYOL.</p>
pub fn dedicated_tenancy_support(mut self, input: crate::types::DedicatedTenancySupportEnum) -> Self {
self.dedicated_tenancy_support = ::std::option::Option::Some(input);
self
}
/// <p>The status of BYOL.</p>
pub fn set_dedicated_tenancy_support(mut self, input: ::std::option::Option<crate::types::DedicatedTenancySupportEnum>) -> Self {
self.dedicated_tenancy_support = input;
self
}
/// <p>The status of BYOL.</p>
pub fn get_dedicated_tenancy_support(&self) -> &::std::option::Option<crate::types::DedicatedTenancySupportEnum> {
&self.dedicated_tenancy_support
}
/// <p>The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the <code>ListAvailableManagementCidrRanges</code> operation.</p>
pub fn dedicated_tenancy_management_cidr_range(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dedicated_tenancy_management_cidr_range = ::std::option::Option::Some(input.into());
self
}
/// <p>The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the <code>ListAvailableManagementCidrRanges</code> operation.</p>
pub fn set_dedicated_tenancy_management_cidr_range(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dedicated_tenancy_management_cidr_range = input;
self
}
/// <p>The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the <code>ListAvailableManagementCidrRanges</code> operation.</p>
pub fn get_dedicated_tenancy_management_cidr_range(&self) -> &::std::option::Option<::std::string::String> {
&self.dedicated_tenancy_management_cidr_range
}
/// Consumes the builder and constructs a [`ModifyAccountInput`](crate::operation::modify_account::ModifyAccountInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::modify_account::ModifyAccountInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::modify_account::ModifyAccountInput {
dedicated_tenancy_support: self.dedicated_tenancy_support,
dedicated_tenancy_management_cidr_range: self.dedicated_tenancy_management_cidr_range,
})
}
}