#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetIntrospectionSchemaOutput {
pub schema: ::std::option::Option<::aws_smithy_types::Blob>,
_request_id: Option<String>,
}
impl GetIntrospectionSchemaOutput {
pub fn schema(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.schema.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetIntrospectionSchemaOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetIntrospectionSchemaOutput {
pub fn builder() -> crate::operation::get_introspection_schema::builders::GetIntrospectionSchemaOutputBuilder {
crate::operation::get_introspection_schema::builders::GetIntrospectionSchemaOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIntrospectionSchemaOutputBuilder {
pub(crate) schema: ::std::option::Option<::aws_smithy_types::Blob>,
_request_id: Option<String>,
}
impl GetIntrospectionSchemaOutputBuilder {
pub fn schema(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.schema = ::std::option::Option::Some(input);
self
}
pub fn set_schema(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.schema = input;
self
}
pub fn get_schema(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.schema
}
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_introspection_schema::GetIntrospectionSchemaOutput {
crate::operation::get_introspection_schema::GetIntrospectionSchemaOutput {
schema: self.schema,
_request_id: self._request_id,
}
}
}