pub struct Builder { /* private fields */ }
Expand description
A builder for CreateDistributionConfigurationInput
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the distribution configuration.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the distribution configuration.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the distribution configuration.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the distribution configuration.
sourcepub fn distributions(self, input: Distribution) -> Self
pub fn distributions(self, input: Distribution) -> Self
Appends an item to distributions
.
To override the contents of this collection use set_distributions
.
The distributions of the distribution configuration.
sourcepub fn set_distributions(self, input: Option<Vec<Distribution>>) -> Self
pub fn set_distributions(self, input: Option<Vec<Distribution>>) -> Self
The distributions of the distribution configuration.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags of the distribution configuration.
The tags of the distribution configuration.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token of the distribution configuration.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token of the distribution configuration.
sourcepub fn build(self) -> Result<CreateDistributionConfigurationInput, BuildError>
pub fn build(self) -> Result<CreateDistributionConfigurationInput, BuildError>
Consumes the builder and constructs a CreateDistributionConfigurationInput
.