#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeSchemaOutput {
pub content: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub last_modified: ::std::option::Option<::aws_smithy_types::DateTime>,
pub schema_arn: ::std::option::Option<::std::string::String>,
pub schema_name: ::std::option::Option<::std::string::String>,
pub schema_version: ::std::option::Option<::std::string::String>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub r#type: ::std::option::Option<::std::string::String>,
pub version_created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribeSchemaOutput {
pub fn content(&self) -> ::std::option::Option<&str> {
self.content.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn last_modified(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified.as_ref()
}
pub fn schema_arn(&self) -> ::std::option::Option<&str> {
self.schema_arn.as_deref()
}
pub fn schema_name(&self) -> ::std::option::Option<&str> {
self.schema_name.as_deref()
}
pub fn schema_version(&self) -> ::std::option::Option<&str> {
self.schema_version.as_deref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
pub fn r#type(&self) -> ::std::option::Option<&str> {
self.r#type.as_deref()
}
pub fn version_created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.version_created_date.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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeSchemaOutputBuilder {
pub(crate) content: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) last_modified: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) schema_arn: ::std::option::Option<::std::string::String>,
pub(crate) schema_name: ::std::option::Option<::std::string::String>,
pub(crate) schema_version: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) r#type: ::std::option::Option<::std::string::String>,
pub(crate) version_created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribeSchemaOutputBuilder {
pub fn content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.content = ::std::option::Option::Some(input.into());
self
}
pub fn set_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.content = input;
self
}
pub fn get_content(&self) -> &::std::option::Option<::std::string::String> {
&self.content
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn last_modified(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified = input;
self
}
pub fn get_last_modified(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified
}
pub fn schema_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schema_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_schema_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schema_arn = input;
self
}
pub fn get_schema_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.schema_arn
}
pub fn schema_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schema_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_schema_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schema_name = input;
self
}
pub fn get_schema_name(&self) -> &::std::option::Option<::std::string::String> {
&self.schema_name
}
pub fn schema_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schema_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_schema_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schema_version = input;
self
}
pub fn get_schema_version(&self) -> &::std::option::Option<::std::string::String> {
&self.schema_version
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn r#type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.r#type = ::std::option::Option::Some(input.into());
self
}
pub fn set_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.r#type = input;
self
}
pub fn get_type(&self) -> &::std::option::Option<::std::string::String> {
&self.r#type
}
pub fn version_created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.version_created_date = ::std::option::Option::Some(input);
self
}
pub fn set_version_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.version_created_date = input;
self
}
pub fn get_version_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.version_created_date
}
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 {
content: self.content,
description: self.description,
last_modified: self.last_modified,
schema_arn: self.schema_arn,
schema_name: self.schema_name,
schema_version: self.schema_version,
tags: self.tags,
r#type: self.r#type,
version_created_date: self.version_created_date,
_request_id: self._request_id,
}
}
}