Struct aws_sdk_cloudfront::input::associate_alias_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AssociateAliasInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn target_distribution_id(self, input: impl Into<String>) -> Self
pub fn target_distribution_id(self, input: impl Into<String>) -> Self
The ID of the distribution that you're associating the alias with.
sourcepub fn set_target_distribution_id(self, input: Option<String>) -> Self
pub fn set_target_distribution_id(self, input: Option<String>) -> Self
The ID of the distribution that you're associating the alias with.
sourcepub fn alias(self, input: impl Into<String>) -> Self
pub fn alias(self, input: impl Into<String>) -> Self
The alias (also known as a CNAME) to add to the target distribution.
sourcepub fn set_alias(self, input: Option<String>) -> Self
pub fn set_alias(self, input: Option<String>) -> Self
The alias (also known as a CNAME) to add to the target distribution.
sourcepub fn build(self) -> Result<AssociateAliasInput, BuildError>
pub fn build(self) -> Result<AssociateAliasInput, BuildError>
Consumes the builder and constructs a AssociateAliasInput
.