Struct aws_sdk_ec2::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder
source · pub struct ModifyVpcAttributeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyVpcAttribute
.
Modifies the specified attribute of the specified VPC.
Implementations§
source§impl ModifyVpcAttributeFluentBuilder
impl ModifyVpcAttributeFluentBuilder
sourcepub fn as_input(&self) -> &ModifyVpcAttributeInputBuilder
pub fn as_input(&self) -> &ModifyVpcAttributeInputBuilder
Access the ModifyVpcAttribute as a reference.
sourcepub async fn send(
self
) -> Result<ModifyVpcAttributeOutput, SdkError<ModifyVpcAttributeError, HttpResponse>>
pub async fn send( self ) -> Result<ModifyVpcAttributeOutput, SdkError<ModifyVpcAttributeError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ModifyVpcAttributeOutput, ModifyVpcAttributeError>, SdkError<ModifyVpcAttributeError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ModifyVpcAttributeOutput, ModifyVpcAttributeError>, SdkError<ModifyVpcAttributeError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn enable_dns_hostnames(self, input: AttributeBooleanValue) -> Self
pub fn enable_dns_hostnames(self, input: AttributeBooleanValue) -> Self
Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.
sourcepub fn set_enable_dns_hostnames(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_dns_hostnames( self, input: Option<AttributeBooleanValue> ) -> Self
Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.
sourcepub fn get_enable_dns_hostnames(&self) -> &Option<AttributeBooleanValue>
pub fn get_enable_dns_hostnames(&self) -> &Option<AttributeBooleanValue>
Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.
sourcepub fn enable_dns_support(self, input: AttributeBooleanValue) -> Self
pub fn enable_dns_support(self, input: AttributeBooleanValue) -> Self
Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.
sourcepub fn set_enable_dns_support(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_dns_support( self, input: Option<AttributeBooleanValue> ) -> Self
Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.
sourcepub fn get_enable_dns_support(&self) -> &Option<AttributeBooleanValue>
pub fn get_enable_dns_support(&self) -> &Option<AttributeBooleanValue>
Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.
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 enable_network_address_usage_metrics(
self,
input: AttributeBooleanValue
) -> Self
pub fn enable_network_address_usage_metrics( self, input: AttributeBooleanValue ) -> Self
Indicates whether Network Address Usage metrics are enabled for your VPC.
sourcepub fn set_enable_network_address_usage_metrics(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_network_address_usage_metrics( self, input: Option<AttributeBooleanValue> ) -> Self
Indicates whether Network Address Usage metrics are enabled for your VPC.
sourcepub fn get_enable_network_address_usage_metrics(
&self
) -> &Option<AttributeBooleanValue>
pub fn get_enable_network_address_usage_metrics( &self ) -> &Option<AttributeBooleanValue>
Indicates whether Network Address Usage metrics are enabled for your VPC.
Trait Implementations§
source§impl Clone for ModifyVpcAttributeFluentBuilder
impl Clone for ModifyVpcAttributeFluentBuilder
source§fn clone(&self) -> ModifyVpcAttributeFluentBuilder
fn clone(&self) -> ModifyVpcAttributeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more