aws_sdk_devopsagent/operation/disassociate_service/
_disassociate_service_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DisassociateServiceInput {
7 pub agent_space_id: ::std::option::Option<::std::string::String>,
9 pub association_id: ::std::option::Option<::std::string::String>,
11}
12impl DisassociateServiceInput {
13 pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
15 self.agent_space_id.as_deref()
16 }
17 pub fn association_id(&self) -> ::std::option::Option<&str> {
19 self.association_id.as_deref()
20 }
21}
22impl DisassociateServiceInput {
23 pub fn builder() -> crate::operation::disassociate_service::builders::DisassociateServiceInputBuilder {
25 crate::operation::disassociate_service::builders::DisassociateServiceInputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DisassociateServiceInputBuilder {
33 pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
34 pub(crate) association_id: ::std::option::Option<::std::string::String>,
35}
36impl DisassociateServiceInputBuilder {
37 pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.agent_space_id = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.agent_space_id = input;
46 self
47 }
48 pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
50 &self.agent_space_id
51 }
52 pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.association_id = ::std::option::Option::Some(input.into());
56 self
57 }
58 pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.association_id = input;
61 self
62 }
63 pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
65 &self.association_id
66 }
67 pub fn build(
69 self,
70 ) -> ::std::result::Result<crate::operation::disassociate_service::DisassociateServiceInput, ::aws_smithy_types::error::operation::BuildError>
71 {
72 ::std::result::Result::Ok(crate::operation::disassociate_service::DisassociateServiceInput {
73 agent_space_id: self.agent_space_id,
74 association_id: self.association_id,
75 })
76 }
77}