#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeIndexFieldsInput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub field_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub deployed: ::std::option::Option<bool>,
}
impl DescribeIndexFieldsInput {
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn field_names(&self) -> &[::std::string::String] {
self.field_names.as_deref().unwrap_or_default()
}
pub fn deployed(&self) -> ::std::option::Option<bool> {
self.deployed
}
}
impl DescribeIndexFieldsInput {
pub fn builder() -> crate::operation::describe_index_fields::builders::DescribeIndexFieldsInputBuilder {
crate::operation::describe_index_fields::builders::DescribeIndexFieldsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeIndexFieldsInputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) field_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) deployed: ::std::option::Option<bool>,
}
impl DescribeIndexFieldsInputBuilder {
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn field_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.field_names.unwrap_or_default();
v.push(input.into());
self.field_names = ::std::option::Option::Some(v);
self
}
pub fn set_field_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.field_names = input;
self
}
pub fn get_field_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.field_names
}
pub fn deployed(mut self, input: bool) -> Self {
self.deployed = ::std::option::Option::Some(input);
self
}
pub fn set_deployed(mut self, input: ::std::option::Option<bool>) -> Self {
self.deployed = input;
self
}
pub fn get_deployed(&self) -> &::std::option::Option<bool> {
&self.deployed
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_index_fields::DescribeIndexFieldsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::describe_index_fields::DescribeIndexFieldsInput {
domain_name: self.domain_name,
field_names: self.field_names,
deployed: self.deployed,
})
}
}