#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdatePentestOutput {
pub pentest_id: ::std::option::Option<::std::string::String>,
pub title: ::std::option::Option<::std::string::String>,
pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub assets: ::std::option::Option<crate::types::Assets>,
pub exclude_risk_types: ::std::option::Option<::std::vec::Vec<crate::types::RiskType>>,
pub service_role: ::std::option::Option<::std::string::String>,
pub log_config: ::std::option::Option<crate::types::CloudWatchLog>,
pub agent_space_id: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl UpdatePentestOutput {
pub fn pentest_id(&self) -> ::std::option::Option<&str> {
self.pentest_id.as_deref()
}
pub fn title(&self) -> ::std::option::Option<&str> {
self.title.as_deref()
}
pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
pub fn assets(&self) -> ::std::option::Option<&crate::types::Assets> {
self.assets.as_ref()
}
pub fn exclude_risk_types(&self) -> &[crate::types::RiskType] {
self.exclude_risk_types.as_deref().unwrap_or_default()
}
pub fn service_role(&self) -> ::std::option::Option<&str> {
self.service_role.as_deref()
}
pub fn log_config(&self) -> ::std::option::Option<&crate::types::CloudWatchLog> {
self.log_config.as_ref()
}
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
}
impl ::aws_types::request_id::RequestId for UpdatePentestOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdatePentestOutput {
pub fn builder() -> crate::operation::update_pentest::builders::UpdatePentestOutputBuilder {
crate::operation::update_pentest::builders::UpdatePentestOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdatePentestOutputBuilder {
pub(crate) pentest_id: ::std::option::Option<::std::string::String>,
pub(crate) title: ::std::option::Option<::std::string::String>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) assets: ::std::option::Option<crate::types::Assets>,
pub(crate) exclude_risk_types: ::std::option::Option<::std::vec::Vec<crate::types::RiskType>>,
pub(crate) service_role: ::std::option::Option<::std::string::String>,
pub(crate) log_config: ::std::option::Option<crate::types::CloudWatchLog>,
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl UpdatePentestOutputBuilder {
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 title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.title = ::std::option::Option::Some(input.into());
self
}
pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.title = input;
self
}
pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
&self.title
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
pub fn assets(mut self, input: crate::types::Assets) -> Self {
self.assets = ::std::option::Option::Some(input);
self
}
pub fn set_assets(mut self, input: ::std::option::Option<crate::types::Assets>) -> Self {
self.assets = input;
self
}
pub fn get_assets(&self) -> &::std::option::Option<crate::types::Assets> {
&self.assets
}
pub fn exclude_risk_types(mut self, input: crate::types::RiskType) -> Self {
let mut v = self.exclude_risk_types.unwrap_or_default();
v.push(input);
self.exclude_risk_types = ::std::option::Option::Some(v);
self
}
pub fn set_exclude_risk_types(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RiskType>>) -> Self {
self.exclude_risk_types = input;
self
}
pub fn get_exclude_risk_types(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RiskType>> {
&self.exclude_risk_types
}
pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_role = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_role = input;
self
}
pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
&self.service_role
}
pub fn log_config(mut self, input: crate::types::CloudWatchLog) -> Self {
self.log_config = ::std::option::Option::Some(input);
self
}
pub fn set_log_config(mut self, input: ::std::option::Option<crate::types::CloudWatchLog>) -> Self {
self.log_config = input;
self
}
pub fn get_log_config(&self) -> &::std::option::Option<crate::types::CloudWatchLog> {
&self.log_config
}
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(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_pentest::UpdatePentestOutput {
crate::operation::update_pentest::UpdatePentestOutput {
pentest_id: self.pentest_id,
title: self.title,
created_at: self.created_at,
updated_at: self.updated_at,
assets: self.assets,
exclude_risk_types: self.exclude_risk_types,
service_role: self.service_role,
log_config: self.log_config,
agent_space_id: self.agent_space_id,
_request_id: self._request_id,
}
}
}