#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetFunctionOutput {
pub configuration: ::std::option::Option<crate::types::FunctionConfiguration>,
pub code: ::std::option::Option<crate::types::FunctionCodeLocation>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub concurrency: ::std::option::Option<crate::types::Concurrency>,
_request_id: Option<String>,
}
impl GetFunctionOutput {
pub fn configuration(&self) -> ::std::option::Option<&crate::types::FunctionConfiguration> {
self.configuration.as_ref()
}
pub fn code(&self) -> ::std::option::Option<&crate::types::FunctionCodeLocation> {
self.code.as_ref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
pub fn concurrency(&self) -> ::std::option::Option<&crate::types::Concurrency> {
self.concurrency.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetFunctionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetFunctionOutput {
pub fn builder() -> crate::operation::get_function::builders::GetFunctionOutputBuilder {
crate::operation::get_function::builders::GetFunctionOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetFunctionOutputBuilder {
pub(crate) configuration: ::std::option::Option<crate::types::FunctionConfiguration>,
pub(crate) code: ::std::option::Option<crate::types::FunctionCodeLocation>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) concurrency: ::std::option::Option<crate::types::Concurrency>,
_request_id: Option<String>,
}
impl GetFunctionOutputBuilder {
pub fn configuration(mut self, input: crate::types::FunctionConfiguration) -> Self {
self.configuration = ::std::option::Option::Some(input);
self
}
pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::FunctionConfiguration>) -> Self {
self.configuration = input;
self
}
pub fn get_configuration(&self) -> &::std::option::Option<crate::types::FunctionConfiguration> {
&self.configuration
}
pub fn code(mut self, input: crate::types::FunctionCodeLocation) -> Self {
self.code = ::std::option::Option::Some(input);
self
}
pub fn set_code(mut self, input: ::std::option::Option<crate::types::FunctionCodeLocation>) -> Self {
self.code = input;
self
}
pub fn get_code(&self) -> &::std::option::Option<crate::types::FunctionCodeLocation> {
&self.code
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn concurrency(mut self, input: crate::types::Concurrency) -> Self {
self.concurrency = ::std::option::Option::Some(input);
self
}
pub fn set_concurrency(mut self, input: ::std::option::Option<crate::types::Concurrency>) -> Self {
self.concurrency = input;
self
}
pub fn get_concurrency(&self) -> &::std::option::Option<crate::types::Concurrency> {
&self.concurrency
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_function::GetFunctionOutput {
crate::operation::get_function::GetFunctionOutput {
configuration: self.configuration,
code: self.code,
tags: self.tags,
concurrency: self.concurrency,
_request_id: self._request_id,
}
}
}