#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeJobFlowsInput {
pub created_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub created_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub job_flow_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub job_flow_states: ::std::option::Option<::std::vec::Vec<crate::types::JobFlowExecutionState>>,
}
impl DescribeJobFlowsInput {
pub fn created_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_after.as_ref()
}
pub fn created_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_before.as_ref()
}
pub fn job_flow_ids(&self) -> &[::std::string::String] {
self.job_flow_ids.as_deref().unwrap_or_default()
}
pub fn job_flow_states(&self) -> &[crate::types::JobFlowExecutionState] {
self.job_flow_states.as_deref().unwrap_or_default()
}
}
impl DescribeJobFlowsInput {
pub fn builder() -> crate::operation::describe_job_flows::builders::DescribeJobFlowsInputBuilder {
crate::operation::describe_job_flows::builders::DescribeJobFlowsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeJobFlowsInputBuilder {
pub(crate) created_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) created_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) job_flow_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) job_flow_states: ::std::option::Option<::std::vec::Vec<crate::types::JobFlowExecutionState>>,
}
impl DescribeJobFlowsInputBuilder {
pub fn created_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_after = ::std::option::Option::Some(input);
self
}
pub fn set_created_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_after = input;
self
}
pub fn get_created_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_after
}
pub fn created_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_before = ::std::option::Option::Some(input);
self
}
pub fn set_created_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_before = input;
self
}
pub fn get_created_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_before
}
pub fn job_flow_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.job_flow_ids.unwrap_or_default();
v.push(input.into());
self.job_flow_ids = ::std::option::Option::Some(v);
self
}
pub fn set_job_flow_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.job_flow_ids = input;
self
}
pub fn get_job_flow_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.job_flow_ids
}
pub fn job_flow_states(mut self, input: crate::types::JobFlowExecutionState) -> Self {
let mut v = self.job_flow_states.unwrap_or_default();
v.push(input);
self.job_flow_states = ::std::option::Option::Some(v);
self
}
pub fn set_job_flow_states(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::JobFlowExecutionState>>) -> Self {
self.job_flow_states = input;
self
}
pub fn get_job_flow_states(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::JobFlowExecutionState>> {
&self.job_flow_states
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_job_flows::DescribeJobFlowsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_job_flows::DescribeJobFlowsInput {
created_after: self.created_after,
created_before: self.created_before,
job_flow_ids: self.job_flow_ids,
job_flow_states: self.job_flow_states,
})
}
}