Struct aws_sdk_lightsail::operation::create_distribution::builders::CreateDistributionInputBuilder
source · #[non_exhaustive]pub struct CreateDistributionInputBuilder { /* private fields */ }
Expand description
A builder for CreateDistributionInput
.
Implementations§
source§impl CreateDistributionInputBuilder
impl CreateDistributionInputBuilder
sourcepub fn distribution_name(self, input: impl Into<String>) -> Self
pub fn distribution_name(self, input: impl Into<String>) -> Self
The name for the distribution.
This field is required.sourcepub fn set_distribution_name(self, input: Option<String>) -> Self
pub fn set_distribution_name(self, input: Option<String>) -> Self
The name for the distribution.
sourcepub fn get_distribution_name(&self) -> &Option<String>
pub fn get_distribution_name(&self) -> &Option<String>
The name for the distribution.
sourcepub fn origin(self, input: InputOrigin) -> Self
pub fn origin(self, input: InputOrigin) -> Self
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
This field is required.sourcepub fn set_origin(self, input: Option<InputOrigin>) -> Self
pub fn set_origin(self, input: Option<InputOrigin>) -> Self
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
sourcepub fn get_origin(&self) -> &Option<InputOrigin>
pub fn get_origin(&self) -> &Option<InputOrigin>
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
sourcepub fn default_cache_behavior(self, input: CacheBehavior) -> Self
pub fn default_cache_behavior(self, input: CacheBehavior) -> Self
An object that describes the default cache behavior for the distribution.
This field is required.sourcepub fn set_default_cache_behavior(self, input: Option<CacheBehavior>) -> Self
pub fn set_default_cache_behavior(self, input: Option<CacheBehavior>) -> Self
An object that describes the default cache behavior for the distribution.
sourcepub fn get_default_cache_behavior(&self) -> &Option<CacheBehavior>
pub fn get_default_cache_behavior(&self) -> &Option<CacheBehavior>
An object that describes the default cache behavior for the distribution.
sourcepub fn cache_behavior_settings(self, input: CacheSettings) -> Self
pub fn cache_behavior_settings(self, input: CacheSettings) -> Self
An object that describes the cache behavior settings for the distribution.
sourcepub fn set_cache_behavior_settings(self, input: Option<CacheSettings>) -> Self
pub fn set_cache_behavior_settings(self, input: Option<CacheSettings>) -> Self
An object that describes the cache behavior settings for the distribution.
sourcepub fn get_cache_behavior_settings(&self) -> &Option<CacheSettings>
pub fn get_cache_behavior_settings(&self) -> &Option<CacheSettings>
An object that describes the cache behavior settings for the distribution.
sourcepub fn cache_behaviors(self, input: CacheBehaviorPerPath) -> Self
pub fn cache_behaviors(self, input: CacheBehaviorPerPath) -> Self
Appends an item to cache_behaviors
.
To override the contents of this collection use set_cache_behaviors
.
An array of objects that describe the per-path cache behavior for the distribution.
sourcepub fn set_cache_behaviors(
self,
input: Option<Vec<CacheBehaviorPerPath>>
) -> Self
pub fn set_cache_behaviors( self, input: Option<Vec<CacheBehaviorPerPath>> ) -> Self
An array of objects that describe the per-path cache behavior for the distribution.
sourcepub fn get_cache_behaviors(&self) -> &Option<Vec<CacheBehaviorPerPath>>
pub fn get_cache_behaviors(&self) -> &Option<Vec<CacheBehaviorPerPath>>
An array of objects that describe the per-path cache behavior for the distribution.
sourcepub fn bundle_id(self, input: impl Into<String>) -> Self
pub fn bundle_id(self, input: impl Into<String>) -> Self
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
sourcepub fn get_bundle_id(&self) -> &Option<String>
pub fn get_bundle_id(&self) -> &Option<String>
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
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 distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
sourcepub fn certificate_name(self, input: impl Into<String>) -> Self
pub fn certificate_name(self, input: impl Into<String>) -> Self
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
sourcepub fn set_certificate_name(self, input: Option<String>) -> Self
pub fn set_certificate_name(self, input: Option<String>) -> Self
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
sourcepub fn get_certificate_name(&self) -> &Option<String>
pub fn get_certificate_name(&self) -> &Option<String>
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
sourcepub fn viewer_minimum_tls_protocol_version(
self,
input: ViewerMinimumTlsProtocolVersionEnum
) -> Self
pub fn viewer_minimum_tls_protocol_version( self, input: ViewerMinimumTlsProtocolVersionEnum ) -> Self
The minimum TLS protocol version for the SSL/TLS certificate.
sourcepub fn set_viewer_minimum_tls_protocol_version(
self,
input: Option<ViewerMinimumTlsProtocolVersionEnum>
) -> Self
pub fn set_viewer_minimum_tls_protocol_version( self, input: Option<ViewerMinimumTlsProtocolVersionEnum> ) -> Self
The minimum TLS protocol version for the SSL/TLS certificate.
sourcepub fn get_viewer_minimum_tls_protocol_version(
&self
) -> &Option<ViewerMinimumTlsProtocolVersionEnum>
pub fn get_viewer_minimum_tls_protocol_version( &self ) -> &Option<ViewerMinimumTlsProtocolVersionEnum>
The minimum TLS protocol version for the SSL/TLS certificate.
sourcepub fn build(self) -> Result<CreateDistributionInput, BuildError>
pub fn build(self) -> Result<CreateDistributionInput, BuildError>
Consumes the builder and constructs a CreateDistributionInput
.
source§impl CreateDistributionInputBuilder
impl CreateDistributionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDistributionOutput, SdkError<CreateDistributionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDistributionOutput, SdkError<CreateDistributionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDistributionInputBuilder
impl Clone for CreateDistributionInputBuilder
source§fn clone(&self) -> CreateDistributionInputBuilder
fn clone(&self) -> CreateDistributionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDistributionInputBuilder
impl Default for CreateDistributionInputBuilder
source§fn default() -> CreateDistributionInputBuilder
fn default() -> CreateDistributionInputBuilder
source§impl PartialEq for CreateDistributionInputBuilder
impl PartialEq for CreateDistributionInputBuilder
source§fn eq(&self, other: &CreateDistributionInputBuilder) -> bool
fn eq(&self, other: &CreateDistributionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDistributionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDistributionInputBuilder
impl RefUnwindSafe for CreateDistributionInputBuilder
impl Send for CreateDistributionInputBuilder
impl Sync for CreateDistributionInputBuilder
impl Unpin for CreateDistributionInputBuilder
impl UnwindSafe for CreateDistributionInputBuilder
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> 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