#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartingEventBatchCondition {
pub batch_size: ::std::option::Option<i32>,
pub batch_window: ::std::option::Option<i32>,
}
impl StartingEventBatchCondition {
pub fn batch_size(&self) -> ::std::option::Option<i32> {
self.batch_size
}
pub fn batch_window(&self) -> ::std::option::Option<i32> {
self.batch_window
}
}
impl StartingEventBatchCondition {
pub fn builder() -> crate::types::builders::StartingEventBatchConditionBuilder {
crate::types::builders::StartingEventBatchConditionBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StartingEventBatchConditionBuilder {
pub(crate) batch_size: ::std::option::Option<i32>,
pub(crate) batch_window: ::std::option::Option<i32>,
}
impl StartingEventBatchConditionBuilder {
pub fn batch_size(mut self, input: i32) -> Self {
self.batch_size = ::std::option::Option::Some(input);
self
}
pub fn set_batch_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.batch_size = input;
self
}
pub fn get_batch_size(&self) -> &::std::option::Option<i32> {
&self.batch_size
}
pub fn batch_window(mut self, input: i32) -> Self {
self.batch_window = ::std::option::Option::Some(input);
self
}
pub fn set_batch_window(mut self, input: ::std::option::Option<i32>) -> Self {
self.batch_window = input;
self
}
pub fn get_batch_window(&self) -> &::std::option::Option<i32> {
&self.batch_window
}
pub fn build(self) -> crate::types::StartingEventBatchCondition {
crate::types::StartingEventBatchCondition {
batch_size: self.batch_size,
batch_window: self.batch_window,
}
}
}