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 ==
.