Struct aws_sdk_cloudfront::input::get_function_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetFunctionInput
.
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 whose code you are getting.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the function whose code you are getting.
sourcepub fn stage(self, input: FunctionStage) -> Self
pub fn stage(self, input: FunctionStage) -> Self
The function's stage, either DEVELOPMENT
or LIVE
.
sourcepub fn set_stage(self, input: Option<FunctionStage>) -> Self
pub fn set_stage(self, input: Option<FunctionStage>) -> Self
The function's stage, either DEVELOPMENT
or LIVE
.
sourcepub fn build(self) -> Result<GetFunctionInput, BuildError>
pub fn build(self) -> Result<GetFunctionInput, BuildError>
Consumes the builder and constructs a GetFunctionInput
.