Struct aws_sdk_cloudfront::input::copy_distribution_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CopyDistributionInput
.
Implementations§
source§impl Builder
impl Builder
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
.