#[non_exhaustive]pub struct ModifyVpcTenancyInputBuilder { /* private fields */ }
Expand description
A builder for ModifyVpcTenancyInput
.
Implementations§
source§impl ModifyVpcTenancyInputBuilder
impl ModifyVpcTenancyInputBuilder
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC.
This field is required.sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of the VPC.
sourcepub fn instance_tenancy(self, input: VpcTenancy) -> Self
pub fn instance_tenancy(self, input: VpcTenancy) -> Self
The instance tenancy attribute for the VPC.
This field is required.sourcepub fn set_instance_tenancy(self, input: Option<VpcTenancy>) -> Self
pub fn set_instance_tenancy(self, input: Option<VpcTenancy>) -> Self
The instance tenancy attribute for the VPC.
sourcepub fn get_instance_tenancy(&self) -> &Option<VpcTenancy>
pub fn get_instance_tenancy(&self) -> &Option<VpcTenancy>
The instance tenancy attribute for the VPC.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn build(self) -> Result<ModifyVpcTenancyInput, BuildError>
pub fn build(self) -> Result<ModifyVpcTenancyInput, BuildError>
Consumes the builder and constructs a ModifyVpcTenancyInput
.
source§impl ModifyVpcTenancyInputBuilder
impl ModifyVpcTenancyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyVpcTenancyOutput, SdkError<ModifyVpcTenancyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyVpcTenancyOutput, SdkError<ModifyVpcTenancyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyVpcTenancyInputBuilder
impl Clone for ModifyVpcTenancyInputBuilder
source§fn clone(&self) -> ModifyVpcTenancyInputBuilder
fn clone(&self) -> ModifyVpcTenancyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyVpcTenancyInputBuilder
impl Debug for ModifyVpcTenancyInputBuilder
source§impl Default for ModifyVpcTenancyInputBuilder
impl Default for ModifyVpcTenancyInputBuilder
source§fn default() -> ModifyVpcTenancyInputBuilder
fn default() -> ModifyVpcTenancyInputBuilder
source§impl PartialEq for ModifyVpcTenancyInputBuilder
impl PartialEq for ModifyVpcTenancyInputBuilder
source§fn eq(&self, other: &ModifyVpcTenancyInputBuilder) -> bool
fn eq(&self, other: &ModifyVpcTenancyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.