Struct aws_sdk_cloudfront::operation::create_cache_policy::builders::CreateCachePolicyInputBuilder
source · #[non_exhaustive]pub struct CreateCachePolicyInputBuilder { /* private fields */ }
Expand description
A builder for CreateCachePolicyInput
.
Implementations§
source§impl CreateCachePolicyInputBuilder
impl CreateCachePolicyInputBuilder
sourcepub fn cache_policy_config(self, input: CachePolicyConfig) -> Self
pub fn cache_policy_config(self, input: CachePolicyConfig) -> Self
A cache policy configuration.
This field is required.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 build(self) -> Result<CreateCachePolicyInput, BuildError>
pub fn build(self) -> Result<CreateCachePolicyInput, BuildError>
Consumes the builder and constructs a CreateCachePolicyInput
.
source§impl CreateCachePolicyInputBuilder
impl CreateCachePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateCachePolicyOutput, SdkError<CreateCachePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateCachePolicyOutput, SdkError<CreateCachePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCachePolicyInputBuilder
impl Clone for CreateCachePolicyInputBuilder
source§fn clone(&self) -> CreateCachePolicyInputBuilder
fn clone(&self) -> CreateCachePolicyInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CreateCachePolicyInputBuilder
impl Default for CreateCachePolicyInputBuilder
source§fn default() -> CreateCachePolicyInputBuilder
fn default() -> CreateCachePolicyInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateCachePolicyInputBuilder
impl PartialEq for CreateCachePolicyInputBuilder
source§fn eq(&self, other: &CreateCachePolicyInputBuilder) -> bool
fn eq(&self, other: &CreateCachePolicyInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCachePolicyInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateCachePolicyInputBuilder
impl Send for CreateCachePolicyInputBuilder
impl Sync for CreateCachePolicyInputBuilder
impl Unpin for CreateCachePolicyInputBuilder
impl UnwindSafe for CreateCachePolicyInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.