#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeSchemasOutput {
pub marker: ::std::option::Option<::std::string::String>,
pub schemas: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
_request_id: Option<String>,
}
impl DescribeSchemasOutput {
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
pub fn schemas(&self) -> ::std::option::Option<&[::std::string::String]> {
self.schemas.as_deref()
}
}
impl ::aws_http::request_id::RequestId for DescribeSchemasOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeSchemasOutput {
pub fn builder() -> crate::operation::describe_schemas::builders::DescribeSchemasOutputBuilder {
crate::operation::describe_schemas::builders::DescribeSchemasOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeSchemasOutputBuilder {
pub(crate) marker: ::std::option::Option<::std::string::String>,
pub(crate) schemas: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
_request_id: Option<String>,
}
impl DescribeSchemasOutputBuilder {
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.marker = ::std::option::Option::Some(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.marker = input;
self
}
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.marker
}
pub fn schemas(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.schemas.unwrap_or_default();
v.push(input.into());
self.schemas = ::std::option::Option::Some(v);
self
}
pub fn set_schemas(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.schemas = input;
self
}
pub fn get_schemas(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.schemas
}
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_schemas::DescribeSchemasOutput {
crate::operation::describe_schemas::DescribeSchemasOutput {
marker: self.marker,
schemas: self.schemas,
_request_id: self._request_id,
}
}
}