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