Struct aws_sdk_ec2::operation::describe_vpc_attribute::builders::DescribeVpcAttributeInputBuilder
source · #[non_exhaustive]pub struct DescribeVpcAttributeInputBuilder { /* private fields */ }
Expand description
A builder for DescribeVpcAttributeInput
.
Implementations§
source§impl DescribeVpcAttributeInputBuilder
impl DescribeVpcAttributeInputBuilder
sourcepub fn attribute(self, input: VpcAttributeName) -> Self
pub fn attribute(self, input: VpcAttributeName) -> Self
The VPC attribute.
This field is required.sourcepub fn set_attribute(self, input: Option<VpcAttributeName>) -> Self
pub fn set_attribute(self, input: Option<VpcAttributeName>) -> Self
The VPC attribute.
sourcepub fn get_attribute(&self) -> &Option<VpcAttributeName>
pub fn get_attribute(&self) -> &Option<VpcAttributeName>
The VPC attribute.
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 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<DescribeVpcAttributeInput, BuildError>
pub fn build(self) -> Result<DescribeVpcAttributeInput, BuildError>
Consumes the builder and constructs a DescribeVpcAttributeInput
.
source§impl DescribeVpcAttributeInputBuilder
impl DescribeVpcAttributeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DescribeVpcAttributeOutput, SdkError<DescribeVpcAttributeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DescribeVpcAttributeOutput, SdkError<DescribeVpcAttributeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DescribeVpcAttributeInputBuilder
impl Clone for DescribeVpcAttributeInputBuilder
source§fn clone(&self) -> DescribeVpcAttributeInputBuilder
fn clone(&self) -> DescribeVpcAttributeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DescribeVpcAttributeInputBuilder
impl Default for DescribeVpcAttributeInputBuilder
source§fn default() -> DescribeVpcAttributeInputBuilder
fn default() -> DescribeVpcAttributeInputBuilder
source§impl PartialEq for DescribeVpcAttributeInputBuilder
impl PartialEq for DescribeVpcAttributeInputBuilder
source§fn eq(&self, other: &DescribeVpcAttributeInputBuilder) -> bool
fn eq(&self, other: &DescribeVpcAttributeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.