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 get_primary_distribution_id(&self) -> &Option<String>
pub fn get_primary_distribution_id(&self) -> &Option<String>
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 get_staging(&self) -> &Option<bool>
pub fn get_staging(&self) -> &Option<bool>
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 get_if_match(&self) -> &Option<String>
pub fn get_if_match(&self) -> &Option<String>
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.
This field is required.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 get_caller_reference(&self) -> &Option<String>
pub fn get_caller_reference(&self) -> &Option<String>
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 enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to True
, the staging distribution is enabled. When you set this value to False
, the staging distribution is disabled.
If you omit this field, the default value is True
.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to True
, the staging distribution is enabled. When you set this value to False
, the staging distribution is disabled.
If you omit this field, the default value is True
.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to True
, the staging distribution is enabled. When you set this value to False
, the staging distribution is disabled.
If you omit this field, the default value is True
.
sourcepub fn build(self) -> Result<CopyDistributionInput, BuildError>
pub fn build(self) -> Result<CopyDistributionInput, BuildError>
Consumes the builder and constructs a CopyDistributionInput
.
source§impl CopyDistributionInputBuilder
impl CopyDistributionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CopyDistributionOutput, SdkError<CopyDistributionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CopyDistributionOutput, SdkError<CopyDistributionError, HttpResponse>>
Sends a request with this input using the given client.
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 for CopyDistributionInputBuilder
impl PartialEq 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 ==
.