aws_sdk_codeartifact/operation/delete_domain/
_delete_domain_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteDomainInput {
6 pub domain: ::std::option::Option<::std::string::String>,
8 pub domain_owner: ::std::option::Option<::std::string::String>,
10}
11impl DeleteDomainInput {
12 pub fn domain(&self) -> ::std::option::Option<&str> {
14 self.domain.as_deref()
15 }
16 pub fn domain_owner(&self) -> ::std::option::Option<&str> {
18 self.domain_owner.as_deref()
19 }
20}
21impl DeleteDomainInput {
22 pub fn builder() -> crate::operation::delete_domain::builders::DeleteDomainInputBuilder {
24 crate::operation::delete_domain::builders::DeleteDomainInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DeleteDomainInputBuilder {
32 pub(crate) domain: ::std::option::Option<::std::string::String>,
33 pub(crate) domain_owner: ::std::option::Option<::std::string::String>,
34}
35impl DeleteDomainInputBuilder {
36 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.domain = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.domain = input;
45 self
46 }
47 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
49 &self.domain
50 }
51 pub fn domain_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.domain_owner = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_domain_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.domain_owner = input;
59 self
60 }
61 pub fn get_domain_owner(&self) -> &::std::option::Option<::std::string::String> {
63 &self.domain_owner
64 }
65 pub fn build(
67 self,
68 ) -> ::std::result::Result<crate::operation::delete_domain::DeleteDomainInput, ::aws_smithy_types::error::operation::BuildError> {
69 ::std::result::Result::Ok(crate::operation::delete_domain::DeleteDomainInput {
70 domain: self.domain,
71 domain_owner: self.domain_owner,
72 })
73 }
74}