aws_sdk_devicefarm/operation/update_project/
_update_project_input.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProjectInput {
pub arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub default_job_timeout_minutes: ::std::option::Option<i32>,
pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
}
impl UpdateProjectInput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn default_job_timeout_minutes(&self) -> ::std::option::Option<i32> {
self.default_job_timeout_minutes
}
pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
self.vpc_config.as_ref()
}
}
impl UpdateProjectInput {
pub fn builder() -> crate::operation::update_project::builders::UpdateProjectInputBuilder {
crate::operation::update_project::builders::UpdateProjectInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProjectInputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) default_job_timeout_minutes: ::std::option::Option<i32>,
pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
}
impl UpdateProjectInputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
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 default_job_timeout_minutes(mut self, input: i32) -> Self {
self.default_job_timeout_minutes = ::std::option::Option::Some(input);
self
}
pub fn set_default_job_timeout_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
self.default_job_timeout_minutes = input;
self
}
pub fn get_default_job_timeout_minutes(&self) -> &::std::option::Option<i32> {
&self.default_job_timeout_minutes
}
pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
self.vpc_config = ::std::option::Option::Some(input);
self
}
pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
self.vpc_config = input;
self
}
pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
&self.vpc_config
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_project::UpdateProjectInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_project::UpdateProjectInput {
arn: self.arn,
name: self.name,
default_job_timeout_minutes: self.default_job_timeout_minutes,
vpc_config: self.vpc_config,
})
}
}