#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchGetPentestsInput {
pub pentest_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub agent_space_id: ::std::option::Option<::std::string::String>,
}
impl BatchGetPentestsInput {
pub fn pentest_ids(&self) -> &[::std::string::String] {
self.pentest_ids.as_deref().unwrap_or_default()
}
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
}
impl BatchGetPentestsInput {
pub fn builder() -> crate::operation::batch_get_pentests::builders::BatchGetPentestsInputBuilder {
crate::operation::batch_get_pentests::builders::BatchGetPentestsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchGetPentestsInputBuilder {
pub(crate) pentest_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
}
impl BatchGetPentestsInputBuilder {
pub fn pentest_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.pentest_ids.unwrap_or_default();
v.push(input.into());
self.pentest_ids = ::std::option::Option::Some(v);
self
}
pub fn set_pentest_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.pentest_ids = input;
self
}
pub fn get_pentest_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.pentest_ids
}
pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_space_id = input;
self
}
pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_space_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::batch_get_pentests::BatchGetPentestsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::batch_get_pentests::BatchGetPentestsInput {
pentest_ids: self.pentest_ids,
agent_space_id: self.agent_space_id,
})
}
}