#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartPentestJobInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub pentest_id: ::std::option::Option<::std::string::String>,
}
impl StartPentestJobInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn pentest_id(&self) -> ::std::option::Option<&str> {
self.pentest_id.as_deref()
}
}
impl StartPentestJobInput {
pub fn builder() -> crate::operation::start_pentest_job::builders::StartPentestJobInputBuilder {
crate::operation::start_pentest_job::builders::StartPentestJobInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartPentestJobInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) pentest_id: ::std::option::Option<::std::string::String>,
}
impl StartPentestJobInputBuilder {
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 pentest_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pentest_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_pentest_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pentest_id = input;
self
}
pub fn get_pentest_id(&self) -> &::std::option::Option<::std::string::String> {
&self.pentest_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::start_pentest_job::StartPentestJobInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::start_pentest_job::StartPentestJobInput {
agent_space_id: self.agent_space_id,
pentest_id: self.pentest_id,
})
}
}