#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeInstancePropertiesInput {
pub instance_property_filter_list: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyFilter>>,
pub filters_with_operator: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyStringFilter>>,
pub max_results: ::std::option::Option<i32>,
pub next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeInstancePropertiesInput {
pub fn instance_property_filter_list(&self) -> &[crate::types::InstancePropertyFilter] {
self.instance_property_filter_list.as_deref().unwrap_or_default()
}
pub fn filters_with_operator(&self) -> &[crate::types::InstancePropertyStringFilter] {
self.filters_with_operator.as_deref().unwrap_or_default()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl DescribeInstancePropertiesInput {
pub fn builder() -> crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder {
crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeInstancePropertiesInputBuilder {
pub(crate) instance_property_filter_list: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyFilter>>,
pub(crate) filters_with_operator: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyStringFilter>>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeInstancePropertiesInputBuilder {
pub fn instance_property_filter_list(mut self, input: crate::types::InstancePropertyFilter) -> Self {
let mut v = self.instance_property_filter_list.unwrap_or_default();
v.push(input);
self.instance_property_filter_list = ::std::option::Option::Some(v);
self
}
pub fn set_instance_property_filter_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyFilter>>) -> Self {
self.instance_property_filter_list = input;
self
}
pub fn get_instance_property_filter_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyFilter>> {
&self.instance_property_filter_list
}
pub fn filters_with_operator(mut self, input: crate::types::InstancePropertyStringFilter) -> Self {
let mut v = self.filters_with_operator.unwrap_or_default();
v.push(input);
self.filters_with_operator = ::std::option::Option::Some(v);
self
}
pub fn set_filters_with_operator(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyStringFilter>>) -> Self {
self.filters_with_operator = input;
self
}
pub fn get_filters_with_operator(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyStringFilter>> {
&self.filters_with_operator
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
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 build(
self,
) -> ::std::result::Result<
crate::operation::describe_instance_properties::DescribeInstancePropertiesInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::describe_instance_properties::DescribeInstancePropertiesInput {
instance_property_filter_list: self.instance_property_filter_list,
filters_with_operator: self.filters_with_operator,
max_results: self.max_results,
next_token: self.next_token,
})
}
}