Struct aws_sdk_cloudfront::input::update_function_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateFunctionInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the function that you are updating.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the function that you are updating.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The current version (ETag
value) of the function that you are updating, which you can get using DescribeFunction
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The current version (ETag
value) of the function that you are updating, which you can get using DescribeFunction
.
sourcepub fn function_config(self, input: FunctionConfig) -> Self
pub fn function_config(self, input: FunctionConfig) -> Self
Configuration information about the function.
sourcepub fn set_function_config(self, input: Option<FunctionConfig>) -> Self
pub fn set_function_config(self, input: Option<FunctionConfig>) -> Self
Configuration information about the function.
sourcepub fn function_code(self, input: Blob) -> Self
pub fn function_code(self, input: Blob) -> Self
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
sourcepub fn set_function_code(self, input: Option<Blob>) -> Self
pub fn set_function_code(self, input: Option<Blob>) -> Self
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
sourcepub fn build(self) -> Result<UpdateFunctionInput, BuildError>
pub fn build(self) -> Result<UpdateFunctionInput, BuildError>
Consumes the builder and constructs a UpdateFunctionInput
.