#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SearchSchemasInput {
pub keywords: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub limit: ::std::option::Option<i32>,
pub next_token: ::std::option::Option<::std::string::String>,
pub registry_name: ::std::option::Option<::std::string::String>,
}
impl SearchSchemasInput {
pub fn keywords(&self) -> ::std::option::Option<&str> {
self.keywords.as_deref()
}
#[allow(missing_docs)] pub fn limit(&self) -> ::std::option::Option<i32> {
self.limit
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn registry_name(&self) -> ::std::option::Option<&str> {
self.registry_name.as_deref()
}
}
impl SearchSchemasInput {
pub fn builder() -> crate::operation::search_schemas::builders::SearchSchemasInputBuilder {
crate::operation::search_schemas::builders::SearchSchemasInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct SearchSchemasInputBuilder {
pub(crate) keywords: ::std::option::Option<::std::string::String>,
pub(crate) limit: ::std::option::Option<i32>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) registry_name: ::std::option::Option<::std::string::String>,
}
impl SearchSchemasInputBuilder {
pub fn keywords(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.keywords = ::std::option::Option::Some(input.into());
self
}
pub fn set_keywords(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.keywords = input;
self
}
pub fn get_keywords(&self) -> &::std::option::Option<::std::string::String> {
&self.keywords
}
#[allow(missing_docs)] pub fn limit(mut self, input: i32) -> Self {
self.limit = ::std::option::Option::Some(input);
self
}
#[allow(missing_docs)] pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
self.limit = input;
self
}
#[allow(missing_docs)] pub fn get_limit(&self) -> &::std::option::Option<i32> {
&self.limit
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn registry_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.registry_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_registry_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.registry_name = input;
self
}
pub fn get_registry_name(&self) -> &::std::option::Option<::std::string::String> {
&self.registry_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::search_schemas::SearchSchemasInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::search_schemas::SearchSchemasInput {
keywords: self.keywords,
limit: self.limit,
next_token: self.next_token,
registry_name: self.registry_name,
})
}
}