#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAgentSpaceInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub aws_resources: ::std::option::Option<crate::types::AwsResources>,
pub target_domain_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub code_review_settings: ::std::option::Option<crate::types::CodeReviewSettings>,
}
impl UpdateAgentSpaceInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn aws_resources(&self) -> ::std::option::Option<&crate::types::AwsResources> {
self.aws_resources.as_ref()
}
pub fn target_domain_ids(&self) -> &[::std::string::String] {
self.target_domain_ids.as_deref().unwrap_or_default()
}
pub fn code_review_settings(&self) -> ::std::option::Option<&crate::types::CodeReviewSettings> {
self.code_review_settings.as_ref()
}
}
impl UpdateAgentSpaceInput {
pub fn builder() -> crate::operation::update_agent_space::builders::UpdateAgentSpaceInputBuilder {
crate::operation::update_agent_space::builders::UpdateAgentSpaceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAgentSpaceInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) aws_resources: ::std::option::Option<crate::types::AwsResources>,
pub(crate) target_domain_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) code_review_settings: ::std::option::Option<crate::types::CodeReviewSettings>,
}
impl UpdateAgentSpaceInputBuilder {
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 name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn aws_resources(mut self, input: crate::types::AwsResources) -> Self {
self.aws_resources = ::std::option::Option::Some(input);
self
}
pub fn set_aws_resources(mut self, input: ::std::option::Option<crate::types::AwsResources>) -> Self {
self.aws_resources = input;
self
}
pub fn get_aws_resources(&self) -> &::std::option::Option<crate::types::AwsResources> {
&self.aws_resources
}
pub fn target_domain_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.target_domain_ids.unwrap_or_default();
v.push(input.into());
self.target_domain_ids = ::std::option::Option::Some(v);
self
}
pub fn set_target_domain_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.target_domain_ids = input;
self
}
pub fn get_target_domain_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.target_domain_ids
}
pub fn code_review_settings(mut self, input: crate::types::CodeReviewSettings) -> Self {
self.code_review_settings = ::std::option::Option::Some(input);
self
}
pub fn set_code_review_settings(mut self, input: ::std::option::Option<crate::types::CodeReviewSettings>) -> Self {
self.code_review_settings = input;
self
}
pub fn get_code_review_settings(&self) -> &::std::option::Option<crate::types::CodeReviewSettings> {
&self.code_review_settings
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_agent_space::UpdateAgentSpaceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_agent_space::UpdateAgentSpaceInput {
agent_space_id: self.agent_space_id,
name: self.name,
description: self.description,
aws_resources: self.aws_resources,
target_domain_ids: self.target_domain_ids,
code_review_settings: self.code_review_settings,
})
}
}