#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeKeyValueStoreOutput {
pub key_value_store: ::std::option::Option<crate::types::KeyValueStore>,
pub e_tag: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DescribeKeyValueStoreOutput {
pub fn key_value_store(&self) -> ::std::option::Option<&crate::types::KeyValueStore> {
self.key_value_store.as_ref()
}
pub fn e_tag(&self) -> ::std::option::Option<&str> {
self.e_tag.as_deref()
}
}
impl ::aws_types::request_id::RequestId for DescribeKeyValueStoreOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeKeyValueStoreOutput {
pub fn builder() -> crate::operation::describe_key_value_store::builders::DescribeKeyValueStoreOutputBuilder {
crate::operation::describe_key_value_store::builders::DescribeKeyValueStoreOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeKeyValueStoreOutputBuilder {
pub(crate) key_value_store: ::std::option::Option<crate::types::KeyValueStore>,
pub(crate) e_tag: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DescribeKeyValueStoreOutputBuilder {
pub fn key_value_store(mut self, input: crate::types::KeyValueStore) -> Self {
self.key_value_store = ::std::option::Option::Some(input);
self
}
pub fn set_key_value_store(mut self, input: ::std::option::Option<crate::types::KeyValueStore>) -> Self {
self.key_value_store = input;
self
}
pub fn get_key_value_store(&self) -> &::std::option::Option<crate::types::KeyValueStore> {
&self.key_value_store
}
pub fn e_tag(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.e_tag = ::std::option::Option::Some(input.into());
self
}
pub fn set_e_tag(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.e_tag = input;
self
}
pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> {
&self.e_tag
}
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::describe_key_value_store::DescribeKeyValueStoreOutput {
crate::operation::describe_key_value_store::DescribeKeyValueStoreOutput {
key_value_store: self.key_value_store,
e_tag: self.e_tag,
_request_id: self._request_id,
}
}
}