Struct aws_sdk_cloudfront::types::builders::FunctionMetadataBuilder
source · #[non_exhaustive]pub struct FunctionMetadataBuilder { /* private fields */ }
Expand description
A builder for FunctionMetadata
.
Implementations§
source§impl FunctionMetadataBuilder
impl FunctionMetadataBuilder
sourcepub fn function_arn(self, input: impl Into<String>) -> Self
pub fn function_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
This field is required.sourcepub fn set_function_arn(self, input: Option<String>) -> Self
pub fn set_function_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
sourcepub fn get_function_arn(&self) -> &Option<String>
pub fn get_function_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
sourcepub fn stage(self, input: FunctionStage) -> Self
pub fn stage(self, input: FunctionStage) -> Self
The stage that the function is in, either DEVELOPMENT
or LIVE
.
When a function is in the DEVELOPMENT
stage, you can test the function with TestFunction
, and update it with UpdateFunction
.
When a function is in the LIVE
stage, you can attach the function to a distribution's cache behavior, using the function's ARN.
sourcepub fn set_stage(self, input: Option<FunctionStage>) -> Self
pub fn set_stage(self, input: Option<FunctionStage>) -> Self
The stage that the function is in, either DEVELOPMENT
or LIVE
.
When a function is in the DEVELOPMENT
stage, you can test the function with TestFunction
, and update it with UpdateFunction
.
When a function is in the LIVE
stage, you can attach the function to a distribution's cache behavior, using the function's ARN.
sourcepub fn get_stage(&self) -> &Option<FunctionStage>
pub fn get_stage(&self) -> &Option<FunctionStage>
The stage that the function is in, either DEVELOPMENT
or LIVE
.
When a function is in the DEVELOPMENT
stage, you can test the function with TestFunction
, and update it with UpdateFunction
.
When a function is in the LIVE
stage, you can attach the function to a distribution's cache behavior, using the function's ARN.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time when the function was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time when the function was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The date and time when the function was created.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The date and time when the function was most recently updated.
This field is required.sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The date and time when the function was most recently updated.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
The date and time when the function was most recently updated.
sourcepub fn build(self) -> Result<FunctionMetadata, BuildError>
pub fn build(self) -> Result<FunctionMetadata, BuildError>
Consumes the builder and constructs a FunctionMetadata
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FunctionMetadataBuilder
impl Clone for FunctionMetadataBuilder
source§fn clone(&self) -> FunctionMetadataBuilder
fn clone(&self) -> FunctionMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionMetadataBuilder
impl Debug for FunctionMetadataBuilder
source§impl Default for FunctionMetadataBuilder
impl Default for FunctionMetadataBuilder
source§fn default() -> FunctionMetadataBuilder
fn default() -> FunctionMetadataBuilder
source§impl PartialEq for FunctionMetadataBuilder
impl PartialEq for FunctionMetadataBuilder
source§fn eq(&self, other: &FunctionMetadataBuilder) -> bool
fn eq(&self, other: &FunctionMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FunctionMetadataBuilder
Auto Trait Implementations§
impl Freeze for FunctionMetadataBuilder
impl RefUnwindSafe for FunctionMetadataBuilder
impl Send for FunctionMetadataBuilder
impl Sync for FunctionMetadataBuilder
impl Unpin for FunctionMetadataBuilder
impl UnwindSafe for FunctionMetadataBuilder
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