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