Struct aws_sdk_cloudfront::types::builders::InvalidationBuilder
source · #[non_exhaustive]pub struct InvalidationBuilder { /* private fields */ }
Expand description
A builder for Invalidation
.
Implementations§
source§impl InvalidationBuilder
impl InvalidationBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier for the invalidation request. For example: IDFDVBD632BHDS5
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier for the invalidation request. For example: IDFDVBD632BHDS5
.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The identifier for the invalidation request. For example: IDFDVBD632BHDS5
.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status of the invalidation request. When the invalidation batch is finished, the status is Completed
.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the invalidation request. When the invalidation batch is finished, the status is Completed
.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of the invalidation request. When the invalidation batch is finished, the status is Completed
.
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
The date and time the invalidation request was first made.
This field is required.sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
The date and time the invalidation request was first made.
sourcepub fn get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
The date and time the invalidation request was first made.
sourcepub fn invalidation_batch(self, input: InvalidationBatch) -> Self
pub fn invalidation_batch(self, input: InvalidationBatch) -> Self
The current invalidation information for the batch request.
This field is required.sourcepub fn set_invalidation_batch(self, input: Option<InvalidationBatch>) -> Self
pub fn set_invalidation_batch(self, input: Option<InvalidationBatch>) -> Self
The current invalidation information for the batch request.
sourcepub fn get_invalidation_batch(&self) -> &Option<InvalidationBatch>
pub fn get_invalidation_batch(&self) -> &Option<InvalidationBatch>
The current invalidation information for the batch request.
sourcepub fn build(self) -> Result<Invalidation, BuildError>
pub fn build(self) -> Result<Invalidation, BuildError>
Consumes the builder and constructs a Invalidation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InvalidationBuilder
impl Clone for InvalidationBuilder
source§fn clone(&self) -> InvalidationBuilder
fn clone(&self) -> InvalidationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InvalidationBuilder
impl Debug for InvalidationBuilder
source§impl Default for InvalidationBuilder
impl Default for InvalidationBuilder
source§fn default() -> InvalidationBuilder
fn default() -> InvalidationBuilder
source§impl PartialEq for InvalidationBuilder
impl PartialEq for InvalidationBuilder
source§fn eq(&self, other: &InvalidationBuilder) -> bool
fn eq(&self, other: &InvalidationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.