Struct aws_sdk_cloudfront::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder
source · pub struct UpdateCachePolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateCachePolicy
.
Updates a cache policy configuration.
When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:
-
Use
GetCachePolicyConfig
to get the current configuration. -
Locally modify the fields in the cache policy configuration that you want to update.
-
Call
UpdateCachePolicy
by providing the entire cache policy configuration, including the fields that you modified and those that you didn't.
Implementations§
source§impl UpdateCachePolicyFluentBuilder
impl UpdateCachePolicyFluentBuilder
sourcepub fn as_input(&self) -> &UpdateCachePolicyInputBuilder
pub fn as_input(&self) -> &UpdateCachePolicyInputBuilder
Access the UpdateCachePolicy as a reference.
sourcepub async fn send(
self
) -> Result<UpdateCachePolicyOutput, SdkError<UpdateCachePolicyError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateCachePolicyOutput, SdkError<UpdateCachePolicyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateCachePolicyOutput, UpdateCachePolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateCachePolicyOutput, UpdateCachePolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn cache_policy_config(self, input: CachePolicyConfig) -> Self
pub fn cache_policy_config(self, input: CachePolicyConfig) -> Self
A cache policy configuration.
sourcepub fn set_cache_policy_config(self, input: Option<CachePolicyConfig>) -> Self
pub fn set_cache_policy_config(self, input: Option<CachePolicyConfig>) -> Self
A cache policy configuration.
sourcepub fn get_cache_policy_config(&self) -> &Option<CachePolicyConfig>
pub fn get_cache_policy_config(&self) -> &Option<CachePolicyConfig>
A cache policy configuration.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior's CachePolicyId
field in the response to GetDistributionConfig
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior's CachePolicyId
field in the response to GetDistributionConfig
.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior's CachePolicyId
field in the response to GetDistributionConfig
.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The version of the cache policy that you are updating. The version is returned in the cache policy's ETag
field in the response to GetCachePolicyConfig
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The version of the cache policy that you are updating. The version is returned in the cache policy's ETag
field in the response to GetCachePolicyConfig
.
sourcepub fn get_if_match(&self) -> &Option<String>
pub fn get_if_match(&self) -> &Option<String>
The version of the cache policy that you are updating. The version is returned in the cache policy's ETag
field in the response to GetCachePolicyConfig
.
Trait Implementations§
source§impl Clone for UpdateCachePolicyFluentBuilder
impl Clone for UpdateCachePolicyFluentBuilder
source§fn clone(&self) -> UpdateCachePolicyFluentBuilder
fn clone(&self) -> UpdateCachePolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateCachePolicyFluentBuilder
impl !RefUnwindSafe for UpdateCachePolicyFluentBuilder
impl Send for UpdateCachePolicyFluentBuilder
impl Sync for UpdateCachePolicyFluentBuilder
impl Unpin for UpdateCachePolicyFluentBuilder
impl !UnwindSafe for UpdateCachePolicyFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more