#[non_exhaustive]pub struct VpcEndpointBuilder { /* private fields */ }
Expand description
A builder for VpcEndpoint
.
Implementations§
Source§impl VpcEndpointBuilder
impl VpcEndpointBuilder
Sourcepub fn vpc_endpoint_id(self, input: impl Into<String>) -> Self
pub fn vpc_endpoint_id(self, input: impl Into<String>) -> Self
The ID of the endpoint.
Sourcepub fn set_vpc_endpoint_id(self, input: Option<String>) -> Self
pub fn set_vpc_endpoint_id(self, input: Option<String>) -> Self
The ID of the endpoint.
Sourcepub fn get_vpc_endpoint_id(&self) -> &Option<String>
pub fn get_vpc_endpoint_id(&self) -> &Option<String>
The ID of the endpoint.
Sourcepub fn vpc_endpoint_type(self, input: VpcEndpointType) -> Self
pub fn vpc_endpoint_type(self, input: VpcEndpointType) -> Self
The type of endpoint.
Sourcepub fn set_vpc_endpoint_type(self, input: Option<VpcEndpointType>) -> Self
pub fn set_vpc_endpoint_type(self, input: Option<VpcEndpointType>) -> Self
The type of endpoint.
Sourcepub fn get_vpc_endpoint_type(&self) -> &Option<VpcEndpointType>
pub fn get_vpc_endpoint_type(&self) -> &Option<VpcEndpointType>
The type of endpoint.
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 to which the endpoint is associated.
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 to which the endpoint is associated.
Sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of the VPC to which the endpoint is associated.
Sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service to which the endpoint is associated.
Sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service to which the endpoint is associated.
Sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the service to which the endpoint is associated.
Sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The policy document associated with the endpoint, if applicable.
Sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The policy document associated with the endpoint, if applicable.
Sourcepub fn get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
The policy document associated with the endpoint, if applicable.
Sourcepub fn route_table_ids(self, input: impl Into<String>) -> Self
pub fn route_table_ids(self, input: impl Into<String>) -> Self
Appends an item to route_table_ids
.
To override the contents of this collection use set_route_table_ids
.
(Gateway endpoint) The IDs of the route tables associated with the endpoint.
Sourcepub fn set_route_table_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_route_table_ids(self, input: Option<Vec<String>>) -> Self
(Gateway endpoint) The IDs of the route tables associated with the endpoint.
Sourcepub fn get_route_table_ids(&self) -> &Option<Vec<String>>
pub fn get_route_table_ids(&self) -> &Option<Vec<String>>
(Gateway endpoint) The IDs of the route tables associated with the endpoint.
Sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
(Interface endpoint) The subnets for the endpoint.
Sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
(Interface endpoint) The subnets for the endpoint.
Sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
(Interface endpoint) The subnets for the endpoint.
Sourcepub fn groups(self, input: SecurityGroupIdentifier) -> Self
pub fn groups(self, input: SecurityGroupIdentifier) -> Self
Appends an item to groups
.
To override the contents of this collection use set_groups
.
(Interface endpoint) Information about the security groups that are associated with the network interface.
Sourcepub fn set_groups(self, input: Option<Vec<SecurityGroupIdentifier>>) -> Self
pub fn set_groups(self, input: Option<Vec<SecurityGroupIdentifier>>) -> Self
(Interface endpoint) Information about the security groups that are associated with the network interface.
Sourcepub fn get_groups(&self) -> &Option<Vec<SecurityGroupIdentifier>>
pub fn get_groups(&self) -> &Option<Vec<SecurityGroupIdentifier>>
(Interface endpoint) Information about the security groups that are associated with the network interface.
Sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type for the endpoint.
Sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
The IP address type for the endpoint.
Sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type for the endpoint.
Sourcepub fn dns_options(self, input: DnsOptions) -> Self
pub fn dns_options(self, input: DnsOptions) -> Self
The DNS options for the endpoint.
Sourcepub fn set_dns_options(self, input: Option<DnsOptions>) -> Self
pub fn set_dns_options(self, input: Option<DnsOptions>) -> Self
The DNS options for the endpoint.
Sourcepub fn get_dns_options(&self) -> &Option<DnsOptions>
pub fn get_dns_options(&self) -> &Option<DnsOptions>
The DNS options for the endpoint.
Sourcepub fn private_dns_enabled(self, input: bool) -> Self
pub fn private_dns_enabled(self, input: bool) -> Self
(Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
Sourcepub fn set_private_dns_enabled(self, input: Option<bool>) -> Self
pub fn set_private_dns_enabled(self, input: Option<bool>) -> Self
(Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
Sourcepub fn get_private_dns_enabled(&self) -> &Option<bool>
pub fn get_private_dns_enabled(&self) -> &Option<bool>
(Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
Sourcepub fn requester_managed(self, input: bool) -> Self
pub fn requester_managed(self, input: bool) -> Self
Indicates whether the endpoint is being managed by its service.
Sourcepub fn set_requester_managed(self, input: Option<bool>) -> Self
pub fn set_requester_managed(self, input: Option<bool>) -> Self
Indicates whether the endpoint is being managed by its service.
Sourcepub fn get_requester_managed(&self) -> &Option<bool>
pub fn get_requester_managed(&self) -> &Option<bool>
Indicates whether the endpoint is being managed by its service.
Sourcepub fn network_interface_ids(self, input: impl Into<String>) -> Self
pub fn network_interface_ids(self, input: impl Into<String>) -> Self
Appends an item to network_interface_ids
.
To override the contents of this collection use set_network_interface_ids
.
(Interface endpoint) The network interfaces for the endpoint.
Sourcepub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self
(Interface endpoint) The network interfaces for the endpoint.
Sourcepub fn get_network_interface_ids(&self) -> &Option<Vec<String>>
pub fn get_network_interface_ids(&self) -> &Option<Vec<String>>
(Interface endpoint) The network interfaces for the endpoint.
Sourcepub fn dns_entries(self, input: DnsEntry) -> Self
pub fn dns_entries(self, input: DnsEntry) -> Self
Appends an item to dns_entries
.
To override the contents of this collection use set_dns_entries
.
(Interface endpoint) The DNS entries for the endpoint.
Sourcepub fn set_dns_entries(self, input: Option<Vec<DnsEntry>>) -> Self
pub fn set_dns_entries(self, input: Option<Vec<DnsEntry>>) -> Self
(Interface endpoint) The DNS entries for the endpoint.
Sourcepub fn get_dns_entries(&self) -> &Option<Vec<DnsEntry>>
pub fn get_dns_entries(&self) -> &Option<Vec<DnsEntry>>
(Interface endpoint) The DNS entries for the endpoint.
Sourcepub fn creation_timestamp(self, input: DateTime) -> Self
pub fn creation_timestamp(self, input: DateTime) -> Self
The date and time that the endpoint was created.
Sourcepub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
The date and time that the endpoint was created.
Sourcepub fn get_creation_timestamp(&self) -> &Option<DateTime>
pub fn get_creation_timestamp(&self) -> &Option<DateTime>
The date and time that the endpoint was created.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags assigned to the endpoint.
The tags assigned to the endpoint.
The tags assigned to the endpoint.
Sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the endpoint.
Sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the endpoint.
Sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the endpoint.
Sourcepub fn last_error(self, input: LastError) -> Self
pub fn last_error(self, input: LastError) -> Self
The last error that occurred for endpoint.
Sourcepub fn set_last_error(self, input: Option<LastError>) -> Self
pub fn set_last_error(self, input: Option<LastError>) -> Self
The last error that occurred for endpoint.
Sourcepub fn get_last_error(&self) -> &Option<LastError>
pub fn get_last_error(&self) -> &Option<LastError>
The last error that occurred for endpoint.
Sourcepub fn ipv4_prefixes(self, input: SubnetIpPrefixes) -> Self
pub fn ipv4_prefixes(self, input: SubnetIpPrefixes) -> Self
Appends an item to ipv4_prefixes
.
To override the contents of this collection use set_ipv4_prefixes
.
Array of IPv4 prefixes.
Sourcepub fn set_ipv4_prefixes(self, input: Option<Vec<SubnetIpPrefixes>>) -> Self
pub fn set_ipv4_prefixes(self, input: Option<Vec<SubnetIpPrefixes>>) -> Self
Array of IPv4 prefixes.
Sourcepub fn get_ipv4_prefixes(&self) -> &Option<Vec<SubnetIpPrefixes>>
pub fn get_ipv4_prefixes(&self) -> &Option<Vec<SubnetIpPrefixes>>
Array of IPv4 prefixes.
Sourcepub fn ipv6_prefixes(self, input: SubnetIpPrefixes) -> Self
pub fn ipv6_prefixes(self, input: SubnetIpPrefixes) -> Self
Appends an item to ipv6_prefixes
.
To override the contents of this collection use set_ipv6_prefixes
.
Array of IPv6 prefixes.
Sourcepub fn set_ipv6_prefixes(self, input: Option<Vec<SubnetIpPrefixes>>) -> Self
pub fn set_ipv6_prefixes(self, input: Option<Vec<SubnetIpPrefixes>>) -> Self
Array of IPv6 prefixes.
Sourcepub fn get_ipv6_prefixes(&self) -> &Option<Vec<SubnetIpPrefixes>>
pub fn get_ipv6_prefixes(&self) -> &Option<Vec<SubnetIpPrefixes>>
Array of IPv6 prefixes.
Sourcepub fn failure_reason(self, input: impl Into<String>) -> Self
pub fn failure_reason(self, input: impl Into<String>) -> Self
Reason for the failure.
Sourcepub fn set_failure_reason(self, input: Option<String>) -> Self
pub fn set_failure_reason(self, input: Option<String>) -> Self
Reason for the failure.
Sourcepub fn get_failure_reason(&self) -> &Option<String>
pub fn get_failure_reason(&self) -> &Option<String>
Reason for the failure.
Sourcepub fn service_network_arn(self, input: impl Into<String>) -> Self
pub fn service_network_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the service network.
Sourcepub fn set_service_network_arn(self, input: Option<String>) -> Self
pub fn set_service_network_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the service network.
Sourcepub fn get_service_network_arn(&self) -> &Option<String>
pub fn get_service_network_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the service network.
Sourcepub fn resource_configuration_arn(self, input: impl Into<String>) -> Self
pub fn resource_configuration_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the resource configuration.
Sourcepub fn set_resource_configuration_arn(self, input: Option<String>) -> Self
pub fn set_resource_configuration_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the resource configuration.
Sourcepub fn get_resource_configuration_arn(&self) -> &Option<String>
pub fn get_resource_configuration_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the resource configuration.
Sourcepub fn service_region(self, input: impl Into<String>) -> Self
pub fn service_region(self, input: impl Into<String>) -> Self
The Region where the service is hosted.
Sourcepub fn set_service_region(self, input: Option<String>) -> Self
pub fn set_service_region(self, input: Option<String>) -> Self
The Region where the service is hosted.
Sourcepub fn get_service_region(&self) -> &Option<String>
pub fn get_service_region(&self) -> &Option<String>
The Region where the service is hosted.
Sourcepub fn build(self) -> VpcEndpoint
pub fn build(self) -> VpcEndpoint
Consumes the builder and constructs a VpcEndpoint
.
Trait Implementations§
Source§impl Clone for VpcEndpointBuilder
impl Clone for VpcEndpointBuilder
Source§fn clone(&self) -> VpcEndpointBuilder
fn clone(&self) -> VpcEndpointBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VpcEndpointBuilder
impl Debug for VpcEndpointBuilder
Source§impl Default for VpcEndpointBuilder
impl Default for VpcEndpointBuilder
Source§fn default() -> VpcEndpointBuilder
fn default() -> VpcEndpointBuilder
Source§impl PartialEq for VpcEndpointBuilder
impl PartialEq for VpcEndpointBuilder
impl StructuralPartialEq for VpcEndpointBuilder
Auto Trait Implementations§
impl Freeze for VpcEndpointBuilder
impl RefUnwindSafe for VpcEndpointBuilder
impl Send for VpcEndpointBuilder
impl Sync for VpcEndpointBuilder
impl Unpin for VpcEndpointBuilder
impl UnwindSafe for VpcEndpointBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);