#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateFindingsInput {
pub filters: ::std::option::Option<crate::types::AwsSecurityFindingFilters>,
pub note: ::std::option::Option<crate::types::NoteUpdate>,
pub record_state: ::std::option::Option<crate::types::RecordState>,
}
impl UpdateFindingsInput {
pub fn filters(&self) -> ::std::option::Option<&crate::types::AwsSecurityFindingFilters> {
self.filters.as_ref()
}
pub fn note(&self) -> ::std::option::Option<&crate::types::NoteUpdate> {
self.note.as_ref()
}
pub fn record_state(&self) -> ::std::option::Option<&crate::types::RecordState> {
self.record_state.as_ref()
}
}
impl UpdateFindingsInput {
pub fn builder() -> crate::operation::update_findings::builders::UpdateFindingsInputBuilder {
crate::operation::update_findings::builders::UpdateFindingsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateFindingsInputBuilder {
pub(crate) filters: ::std::option::Option<crate::types::AwsSecurityFindingFilters>,
pub(crate) note: ::std::option::Option<crate::types::NoteUpdate>,
pub(crate) record_state: ::std::option::Option<crate::types::RecordState>,
}
impl UpdateFindingsInputBuilder {
pub fn filters(mut self, input: crate::types::AwsSecurityFindingFilters) -> Self {
self.filters = ::std::option::Option::Some(input);
self
}
pub fn set_filters(mut self, input: ::std::option::Option<crate::types::AwsSecurityFindingFilters>) -> Self {
self.filters = input;
self
}
pub fn get_filters(&self) -> &::std::option::Option<crate::types::AwsSecurityFindingFilters> {
&self.filters
}
pub fn note(mut self, input: crate::types::NoteUpdate) -> Self {
self.note = ::std::option::Option::Some(input);
self
}
pub fn set_note(mut self, input: ::std::option::Option<crate::types::NoteUpdate>) -> Self {
self.note = input;
self
}
pub fn get_note(&self) -> &::std::option::Option<crate::types::NoteUpdate> {
&self.note
}
pub fn record_state(mut self, input: crate::types::RecordState) -> Self {
self.record_state = ::std::option::Option::Some(input);
self
}
pub fn set_record_state(mut self, input: ::std::option::Option<crate::types::RecordState>) -> Self {
self.record_state = input;
self
}
pub fn get_record_state(&self) -> &::std::option::Option<crate::types::RecordState> {
&self.record_state
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_findings::UpdateFindingsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_findings::UpdateFindingsInput {
filters: self.filters,
note: self.note,
record_state: self.record_state,
})
}
}