aws_sdk_codecatalyst/operation/stop_dev_environment/
_stop_dev_environment_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct StopDevEnvironmentInput {
6 pub space_name: ::std::option::Option<::std::string::String>,
8 pub project_name: ::std::option::Option<::std::string::String>,
10 pub id: ::std::option::Option<::std::string::String>,
12}
13impl StopDevEnvironmentInput {
14 pub fn space_name(&self) -> ::std::option::Option<&str> {
16 self.space_name.as_deref()
17 }
18 pub fn project_name(&self) -> ::std::option::Option<&str> {
20 self.project_name.as_deref()
21 }
22 pub fn id(&self) -> ::std::option::Option<&str> {
24 self.id.as_deref()
25 }
26}
27impl StopDevEnvironmentInput {
28 pub fn builder() -> crate::operation::stop_dev_environment::builders::StopDevEnvironmentInputBuilder {
30 crate::operation::stop_dev_environment::builders::StopDevEnvironmentInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct StopDevEnvironmentInputBuilder {
38 pub(crate) space_name: ::std::option::Option<::std::string::String>,
39 pub(crate) project_name: ::std::option::Option<::std::string::String>,
40 pub(crate) id: ::std::option::Option<::std::string::String>,
41}
42impl StopDevEnvironmentInputBuilder {
43 pub fn space_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.space_name = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_space_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.space_name = input;
52 self
53 }
54 pub fn get_space_name(&self) -> &::std::option::Option<::std::string::String> {
56 &self.space_name
57 }
58 pub fn project_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.project_name = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_project_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.project_name = input;
67 self
68 }
69 pub fn get_project_name(&self) -> &::std::option::Option<::std::string::String> {
71 &self.project_name
72 }
73 pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
76 self.id = ::std::option::Option::Some(input.into());
77 self
78 }
79 pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
81 self.id = input;
82 self
83 }
84 pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
86 &self.id
87 }
88 pub fn build(
90 self,
91 ) -> ::std::result::Result<crate::operation::stop_dev_environment::StopDevEnvironmentInput, ::aws_smithy_types::error::operation::BuildError>
92 {
93 ::std::result::Result::Ok(crate::operation::stop_dev_environment::StopDevEnvironmentInput {
94 space_name: self.space_name,
95 project_name: self.project_name,
96 id: self.id,
97 })
98 }
99}