#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateApiCacheOutput {
pub api_cache: ::std::option::Option<crate::types::ApiCache>,
_request_id: Option<String>,
}
impl CreateApiCacheOutput {
pub fn api_cache(&self) -> ::std::option::Option<&crate::types::ApiCache> {
self.api_cache.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateApiCacheOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateApiCacheOutput {
pub fn builder() -> crate::operation::create_api_cache::builders::CreateApiCacheOutputBuilder {
crate::operation::create_api_cache::builders::CreateApiCacheOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateApiCacheOutputBuilder {
pub(crate) api_cache: ::std::option::Option<crate::types::ApiCache>,
_request_id: Option<String>,
}
impl CreateApiCacheOutputBuilder {
pub fn api_cache(mut self, input: crate::types::ApiCache) -> Self {
self.api_cache = ::std::option::Option::Some(input);
self
}
pub fn set_api_cache(mut self, input: ::std::option::Option<crate::types::ApiCache>) -> Self {
self.api_cache = input;
self
}
pub fn get_api_cache(&self) -> &::std::option::Option<crate::types::ApiCache> {
&self.api_cache
}
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::create_api_cache::CreateApiCacheOutput {
crate::operation::create_api_cache::CreateApiCacheOutput {
api_cache: self.api_cache,
_request_id: self._request_id,
}
}
}