Struct aws_sdk_elasticloadbalancingv2::model::load_balancer::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for LoadBalancer
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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 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 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 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 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 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 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 ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
(for 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
The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
(for 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 build(self) -> LoadBalancer
pub fn build(self) -> LoadBalancer
Consumes the builder and constructs a LoadBalancer
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more