Struct aws_sdk_cloudfront::operation::copy_distribution::builders::CopyDistributionInputBuilder
source · #[non_exhaustive]pub struct CopyDistributionInputBuilder { /* private fields */ }
Expand description
A builder for CopyDistributionInput
.
Implementations§
source§impl CopyDistributionInputBuilder
impl CopyDistributionInputBuilder
sourcepub fn primary_distribution_id(self, input: impl Into<String>) -> Self
pub fn primary_distribution_id(self, input: impl Into<String>) -> Self
The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions
.
sourcepub fn set_primary_distribution_id(self, input: Option<String>) -> Self
pub fn set_primary_distribution_id(self, input: Option<String>) -> Self
The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions
.
sourcepub fn staging(self, input: bool) -> Self
pub fn staging(self, input: bool) -> Self
The type of distribution that your primary distribution will be copied to. The only valid value is True
, indicating that you are copying to a staging distribution.
sourcepub fn set_staging(self, input: Option<bool>) -> Self
pub fn set_staging(self, input: Option<bool>) -> Self
The type of distribution that your primary distribution will be copied to. The only valid value is True
, indicating that you are copying to a staging distribution.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The version identifier of the primary distribution whose configuration you are copying. This is the ETag
value returned in the response to GetDistribution
and GetDistributionConfig
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The version identifier of the primary distribution whose configuration you are copying. This is the ETag
value returned in the response to GetDistribution
and GetDistributionConfig
.
sourcepub fn caller_reference(self, input: impl Into<String>) -> Self
pub fn caller_reference(self, input: impl Into<String>) -> Self
A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
sourcepub fn set_caller_reference(self, input: Option<String>) -> Self
pub fn set_caller_reference(self, input: Option<String>) -> Self
A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
sourcepub fn build(self) -> Result<CopyDistributionInput, BuildError>
pub fn build(self) -> Result<CopyDistributionInput, BuildError>
Consumes the builder and constructs a CopyDistributionInput
.
Trait Implementations§
source§impl Clone for CopyDistributionInputBuilder
impl Clone for CopyDistributionInputBuilder
source§fn clone(&self) -> CopyDistributionInputBuilder
fn clone(&self) -> CopyDistributionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopyDistributionInputBuilder
impl Debug for CopyDistributionInputBuilder
source§impl Default for CopyDistributionInputBuilder
impl Default for CopyDistributionInputBuilder
source§fn default() -> CopyDistributionInputBuilder
fn default() -> CopyDistributionInputBuilder
source§impl PartialEq<CopyDistributionInputBuilder> for CopyDistributionInputBuilder
impl PartialEq<CopyDistributionInputBuilder> for CopyDistributionInputBuilder
source§fn eq(&self, other: &CopyDistributionInputBuilder) -> bool
fn eq(&self, other: &CopyDistributionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.