#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetShareOutput {
pub share: ::std::option::Option<crate::types::ShareDetails>,
_request_id: Option<String>,
}
impl GetShareOutput {
pub fn share(&self) -> ::std::option::Option<&crate::types::ShareDetails> {
self.share.as_ref()
}
}
impl ::aws_http::request_id::RequestId for GetShareOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetShareOutput {
pub fn builder() -> crate::operation::get_share::builders::GetShareOutputBuilder {
crate::operation::get_share::builders::GetShareOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetShareOutputBuilder {
pub(crate) share: ::std::option::Option<crate::types::ShareDetails>,
_request_id: Option<String>,
}
impl GetShareOutputBuilder {
pub fn share(mut self, input: crate::types::ShareDetails) -> Self {
self.share = ::std::option::Option::Some(input);
self
}
pub fn set_share(mut self, input: ::std::option::Option<crate::types::ShareDetails>) -> Self {
self.share = input;
self
}
pub fn get_share(&self) -> &::std::option::Option<crate::types::ShareDetails> {
&self.share
}
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_share::GetShareOutput {
crate::operation::get_share::GetShareOutput {
share: self.share,
_request_id: self._request_id,
}
}
}