#[non_exhaustive]pub struct LoadBalancerBuilder { /* private fields */ }
Expand description
A builder for LoadBalancer
.
Implementations§
source§impl LoadBalancerBuilder
impl LoadBalancerBuilder
sourcepub fn load_balancer_arn(self, input: impl Into<String>) -> Self
pub fn load_balancer_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the load balancer.
sourcepub fn set_load_balancer_arn(self, input: Option<String>) -> Self
pub fn set_load_balancer_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the load balancer.
sourcepub fn get_load_balancer_arn(&self) -> &Option<String>
pub fn get_load_balancer_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the load balancer.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The public DNS name of the load balancer.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The public DNS name of the load balancer.
sourcepub fn get_dns_name(&self) -> &Option<String>
pub fn get_dns_name(&self) -> &Option<String>
The public DNS name of the load balancer.
sourcepub fn canonical_hosted_zone_id(self, input: impl Into<String>) -> Self
pub fn canonical_hosted_zone_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
sourcepub fn set_canonical_hosted_zone_id(self, input: Option<String>) -> Self
pub fn set_canonical_hosted_zone_id(self, input: Option<String>) -> Self
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
sourcepub fn get_canonical_hosted_zone_id(&self) -> &Option<String>
pub fn get_canonical_hosted_zone_id(&self) -> &Option<String>
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time the load balancer was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time the load balancer was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The date and time the load balancer was created.
sourcepub fn load_balancer_name(self, input: impl Into<String>) -> Self
pub fn load_balancer_name(self, input: impl Into<String>) -> Self
The name of the load balancer.
sourcepub fn set_load_balancer_name(self, input: Option<String>) -> Self
pub fn set_load_balancer_name(self, input: Option<String>) -> Self
The name of the load balancer.
sourcepub fn get_load_balancer_name(&self) -> &Option<String>
pub fn get_load_balancer_name(&self) -> &Option<String>
The name of the load balancer.
sourcepub fn scheme(self, input: LoadBalancerSchemeEnum) -> Self
pub fn scheme(self, input: LoadBalancerSchemeEnum) -> Self
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
sourcepub fn set_scheme(self, input: Option<LoadBalancerSchemeEnum>) -> Self
pub fn set_scheme(self, input: Option<LoadBalancerSchemeEnum>) -> Self
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
sourcepub fn get_scheme(&self) -> &Option<LoadBalancerSchemeEnum>
pub fn get_scheme(&self) -> &Option<LoadBalancerSchemeEnum>
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
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 for the load balancer.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of the VPC for the load balancer.
sourcepub fn state(self, input: LoadBalancerState) -> Self
pub fn state(self, input: LoadBalancerState) -> Self
The state of the load balancer.
sourcepub fn set_state(self, input: Option<LoadBalancerState>) -> Self
pub fn set_state(self, input: Option<LoadBalancerState>) -> Self
The state of the load balancer.
sourcepub fn get_state(&self) -> &Option<LoadBalancerState>
pub fn get_state(&self) -> &Option<LoadBalancerState>
The state of the load balancer.
sourcepub fn type(self, input: LoadBalancerTypeEnum) -> Self
pub fn type(self, input: LoadBalancerTypeEnum) -> Self
The type of load balancer.
sourcepub fn set_type(self, input: Option<LoadBalancerTypeEnum>) -> Self
pub fn set_type(self, input: Option<LoadBalancerTypeEnum>) -> Self
The type of load balancer.
sourcepub fn get_type(&self) -> &Option<LoadBalancerTypeEnum>
pub fn get_type(&self) -> &Option<LoadBalancerTypeEnum>
The type of load balancer.
sourcepub fn availability_zones(self, input: AvailabilityZone) -> Self
pub fn availability_zones(self, input: AvailabilityZone) -> Self
Appends an item to availability_zones
.
To override the contents of this collection use set_availability_zones
.
The subnets for the load balancer.
sourcepub fn set_availability_zones(
self,
input: Option<Vec<AvailabilityZone>>,
) -> Self
pub fn set_availability_zones( self, input: Option<Vec<AvailabilityZone>>, ) -> Self
The subnets for the load balancer.
sourcepub fn get_availability_zones(&self) -> &Option<Vec<AvailabilityZone>>
pub fn get_availability_zones(&self) -> &Option<Vec<AvailabilityZone>>
The subnets for the load balancer.
sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The IDs of the security groups for the load balancer.
sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
The IDs of the security groups for the load balancer.
sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
The IDs of the security groups for the load balancer.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
\[Application Load Balancers\] The type of IP addresses used for public or private connections by the subnets attached to your load balancer. The possible values are ipv4 (for only IPv4 addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
\[Network Load Balancers and Gateway Load Balancers\] The type of IP addresses used for public or private connections by the subnets attached to your load balancer. The possible values are ipv4 (for only IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).
sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
\[Application Load Balancers\] The type of IP addresses used for public or private connections by the subnets attached to your load balancer. The possible values are ipv4 (for only IPv4 addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
\[Network Load Balancers and Gateway Load Balancers\] The type of IP addresses used for public or private connections by the subnets attached to your load balancer. The possible values are ipv4 (for only IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
\[Application Load Balancers\] The type of IP addresses used for public or private connections by the subnets attached to your load balancer. The possible values are ipv4 (for only IPv4 addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
\[Network Load Balancers and Gateway Load Balancers\] The type of IP addresses used for public or private connections by the subnets attached to your load balancer. The possible values are ipv4 (for only IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).
sourcepub fn customer_owned_ipv4_pool(self, input: impl Into<String>) -> Self
pub fn customer_owned_ipv4_pool(self, input: impl Into<String>) -> Self
\[Application Load Balancers on Outposts\] The ID of the customer-owned address pool.
sourcepub fn set_customer_owned_ipv4_pool(self, input: Option<String>) -> Self
pub fn set_customer_owned_ipv4_pool(self, input: Option<String>) -> Self
\[Application Load Balancers on Outposts\] The ID of the customer-owned address pool.
sourcepub fn get_customer_owned_ipv4_pool(&self) -> &Option<String>
pub fn get_customer_owned_ipv4_pool(&self) -> &Option<String>
\[Application Load Balancers on Outposts\] The ID of the customer-owned address pool.
sourcepub fn enforce_security_group_inbound_rules_on_private_link_traffic(
self,
input: impl Into<String>,
) -> Self
pub fn enforce_security_group_inbound_rules_on_private_link_traffic( self, input: impl Into<String>, ) -> Self
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
sourcepub fn set_enforce_security_group_inbound_rules_on_private_link_traffic(
self,
input: Option<String>,
) -> Self
pub fn set_enforce_security_group_inbound_rules_on_private_link_traffic( self, input: Option<String>, ) -> Self
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
sourcepub fn get_enforce_security_group_inbound_rules_on_private_link_traffic(
&self,
) -> &Option<String>
pub fn get_enforce_security_group_inbound_rules_on_private_link_traffic( &self, ) -> &Option<String>
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
sourcepub fn build(self) -> LoadBalancer
pub fn build(self) -> LoadBalancer
Consumes the builder and constructs a LoadBalancer
.
Trait Implementations§
source§impl Clone for LoadBalancerBuilder
impl Clone for LoadBalancerBuilder
source§fn clone(&self) -> LoadBalancerBuilder
fn clone(&self) -> LoadBalancerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoadBalancerBuilder
impl Debug for LoadBalancerBuilder
source§impl Default for LoadBalancerBuilder
impl Default for LoadBalancerBuilder
source§fn default() -> LoadBalancerBuilder
fn default() -> LoadBalancerBuilder
source§impl PartialEq for LoadBalancerBuilder
impl PartialEq for LoadBalancerBuilder
impl StructuralPartialEq for LoadBalancerBuilder
Auto Trait Implementations§
impl Freeze for LoadBalancerBuilder
impl RefUnwindSafe for LoadBalancerBuilder
impl Send for LoadBalancerBuilder
impl Sync for LoadBalancerBuilder
impl Unpin for LoadBalancerBuilder
impl UnwindSafe for LoadBalancerBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more