#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub struct GetReferenceOutput {
pub payload: ::aws_smithy_http::byte_stream::ByteStream,
_request_id: Option<String>,
}
impl GetReferenceOutput {
pub fn payload(&self) -> &::aws_smithy_http::byte_stream::ByteStream {
&self.payload
}
}
impl ::aws_http::request_id::RequestId for GetReferenceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetReferenceOutput {
pub fn builder() -> crate::operation::get_reference::builders::GetReferenceOutputBuilder {
crate::operation::get_reference::builders::GetReferenceOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::default::Default, ::std::fmt::Debug)]
pub struct GetReferenceOutputBuilder {
pub(crate) payload: ::std::option::Option<::aws_smithy_http::byte_stream::ByteStream>,
_request_id: Option<String>,
}
impl GetReferenceOutputBuilder {
pub fn payload(mut self, input: ::aws_smithy_http::byte_stream::ByteStream) -> Self {
self.payload = ::std::option::Option::Some(input);
self
}
pub fn set_payload(mut self, input: ::std::option::Option<::aws_smithy_http::byte_stream::ByteStream>) -> Self {
self.payload = input;
self
}
pub fn get_payload(&self) -> &::std::option::Option<::aws_smithy_http::byte_stream::ByteStream> {
&self.payload
}
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_reference::GetReferenceOutput {
crate::operation::get_reference::GetReferenceOutput {
payload: self.payload.unwrap_or_default(),
_request_id: self._request_id,
}
}
}