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 74 75 76
// 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 UpdateSharedVpcConfigurationInput {
/// <p>Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to <code>true</code> to enable or <code>false</code> to disable.</p>
pub enable_fsx_route_table_updates_from_participant_accounts: ::std::option::Option<::std::string::String>,
/// <p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
pub client_request_token: ::std::option::Option<::std::string::String>,
}
impl UpdateSharedVpcConfigurationInput {
/// <p>Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to <code>true</code> to enable or <code>false</code> to disable.</p>
pub fn enable_fsx_route_table_updates_from_participant_accounts(&self) -> ::std::option::Option<&str> {
self.enable_fsx_route_table_updates_from_participant_accounts.as_deref()
}
/// <p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
pub fn client_request_token(&self) -> ::std::option::Option<&str> {
self.client_request_token.as_deref()
}
}
impl UpdateSharedVpcConfigurationInput {
/// Creates a new builder-style object to manufacture [`UpdateSharedVpcConfigurationInput`](crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationInput).
pub fn builder() -> crate::operation::update_shared_vpc_configuration::builders::UpdateSharedVpcConfigurationInputBuilder {
crate::operation::update_shared_vpc_configuration::builders::UpdateSharedVpcConfigurationInputBuilder::default()
}
}
/// A builder for [`UpdateSharedVpcConfigurationInput`](crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateSharedVpcConfigurationInputBuilder {
pub(crate) enable_fsx_route_table_updates_from_participant_accounts: ::std::option::Option<::std::string::String>,
pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
}
impl UpdateSharedVpcConfigurationInputBuilder {
/// <p>Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to <code>true</code> to enable or <code>false</code> to disable.</p>
pub fn enable_fsx_route_table_updates_from_participant_accounts(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.enable_fsx_route_table_updates_from_participant_accounts = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to <code>true</code> to enable or <code>false</code> to disable.</p>
pub fn set_enable_fsx_route_table_updates_from_participant_accounts(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.enable_fsx_route_table_updates_from_participant_accounts = input;
self
}
/// <p>Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to <code>true</code> to enable or <code>false</code> to disable.</p>
pub fn get_enable_fsx_route_table_updates_from_participant_accounts(&self) -> &::std::option::Option<::std::string::String> {
&self.enable_fsx_route_table_updates_from_participant_accounts
}
/// <p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_request_token = ::std::option::Option::Some(input.into());
self
}
/// <p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_request_token = input;
self
}
/// <p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_request_token
}
/// Consumes the builder and constructs a [`UpdateSharedVpcConfigurationInput`](crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationInput {
enable_fsx_route_table_updates_from_participant_accounts: self.enable_fsx_route_table_updates_from_participant_accounts,
client_request_token: self.client_request_token,
})
}
}