#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeLoaOutput {
pub loa_content: ::std::option::Option<::aws_smithy_types::Blob>,
pub loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
_request_id: Option<String>,
}
impl DescribeLoaOutput {
pub fn loa_content(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.loa_content.as_ref()
}
pub fn loa_content_type(&self) -> ::std::option::Option<&crate::types::LoaContentType> {
self.loa_content_type.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeLoaOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeLoaOutput {
pub fn builder() -> crate::operation::describe_loa::builders::DescribeLoaOutputBuilder {
crate::operation::describe_loa::builders::DescribeLoaOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeLoaOutputBuilder {
pub(crate) loa_content: ::std::option::Option<::aws_smithy_types::Blob>,
pub(crate) loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
_request_id: Option<String>,
}
impl DescribeLoaOutputBuilder {
pub fn loa_content(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.loa_content = ::std::option::Option::Some(input);
self
}
pub fn set_loa_content(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.loa_content = input;
self
}
pub fn get_loa_content(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.loa_content
}
pub fn loa_content_type(mut self, input: crate::types::LoaContentType) -> Self {
self.loa_content_type = ::std::option::Option::Some(input);
self
}
pub fn set_loa_content_type(mut self, input: ::std::option::Option<crate::types::LoaContentType>) -> Self {
self.loa_content_type = input;
self
}
pub fn get_loa_content_type(&self) -> &::std::option::Option<crate::types::LoaContentType> {
&self.loa_content_type
}
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_loa::DescribeLoaOutput {
crate::operation::describe_loa::DescribeLoaOutput {
loa_content: self.loa_content,
loa_content_type: self.loa_content_type,
_request_id: self._request_id,
}
}
}