#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteSchemaOutput {
pub schema_arn: ::std::option::Option<::std::string::String>,
pub schema_name: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::SchemaStatus>,
_request_id: Option<String>,
}
impl DeleteSchemaOutput {
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 status(&self) -> ::std::option::Option<&crate::types::SchemaStatus> {
self.status.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DeleteSchemaOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteSchemaOutput {
pub fn builder() -> crate::operation::delete_schema::builders::DeleteSchemaOutputBuilder {
crate::operation::delete_schema::builders::DeleteSchemaOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteSchemaOutputBuilder {
pub(crate) schema_arn: ::std::option::Option<::std::string::String>,
pub(crate) schema_name: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::SchemaStatus>,
_request_id: Option<String>,
}
impl DeleteSchemaOutputBuilder {
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 status(mut self, input: crate::types::SchemaStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::SchemaStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::SchemaStatus> {
&self.status
}
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::delete_schema::DeleteSchemaOutput {
crate::operation::delete_schema::DeleteSchemaOutput {
schema_arn: self.schema_arn,
schema_name: self.schema_name,
status: self.status,
_request_id: self._request_id,
}
}
}