#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSchemaVersionInput {
pub r#type: ::std::option::Option<crate::types::SchemaVersionType>,
pub schema_versioned_id: ::std::option::Option<::std::string::String>,
pub format: ::std::option::Option<crate::types::SchemaVersionFormat>,
}
impl GetSchemaVersionInput {
pub fn r#type(&self) -> ::std::option::Option<&crate::types::SchemaVersionType> {
self.r#type.as_ref()
}
pub fn schema_versioned_id(&self) -> ::std::option::Option<&str> {
self.schema_versioned_id.as_deref()
}
pub fn format(&self) -> ::std::option::Option<&crate::types::SchemaVersionFormat> {
self.format.as_ref()
}
}
impl GetSchemaVersionInput {
pub fn builder() -> crate::operation::get_schema_version::builders::GetSchemaVersionInputBuilder {
crate::operation::get_schema_version::builders::GetSchemaVersionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSchemaVersionInputBuilder {
pub(crate) r#type: ::std::option::Option<crate::types::SchemaVersionType>,
pub(crate) schema_versioned_id: ::std::option::Option<::std::string::String>,
pub(crate) format: ::std::option::Option<crate::types::SchemaVersionFormat>,
}
impl GetSchemaVersionInputBuilder {
pub fn r#type(mut self, input: crate::types::SchemaVersionType) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::SchemaVersionType>) -> Self {
self.r#type = input;
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::SchemaVersionType> {
&self.r#type
}
pub fn schema_versioned_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schema_versioned_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_schema_versioned_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schema_versioned_id = input;
self
}
pub fn get_schema_versioned_id(&self) -> &::std::option::Option<::std::string::String> {
&self.schema_versioned_id
}
pub fn format(mut self, input: crate::types::SchemaVersionFormat) -> Self {
self.format = ::std::option::Option::Some(input);
self
}
pub fn set_format(mut self, input: ::std::option::Option<crate::types::SchemaVersionFormat>) -> Self {
self.format = input;
self
}
pub fn get_format(&self) -> &::std::option::Option<crate::types::SchemaVersionFormat> {
&self.format
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_schema_version::GetSchemaVersionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_schema_version::GetSchemaVersionInput {
r#type: self.r#type,
schema_versioned_id: self.schema_versioned_id,
format: self.format,
})
}
}