aws_sdk_codeartifact/types/
_repository_summary.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct RepositorySummary {
7 pub name: ::std::option::Option<::std::string::String>,
9 pub administrator_account: ::std::option::Option<::std::string::String>,
11 pub domain_name: ::std::option::Option<::std::string::String>,
13 pub domain_owner: ::std::option::Option<::std::string::String>,
15 pub arn: ::std::option::Option<::std::string::String>,
17 pub description: ::std::option::Option<::std::string::String>,
19 pub created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
21}
22impl RepositorySummary {
23 pub fn name(&self) -> ::std::option::Option<&str> {
25 self.name.as_deref()
26 }
27 pub fn administrator_account(&self) -> ::std::option::Option<&str> {
29 self.administrator_account.as_deref()
30 }
31 pub fn domain_name(&self) -> ::std::option::Option<&str> {
33 self.domain_name.as_deref()
34 }
35 pub fn domain_owner(&self) -> ::std::option::Option<&str> {
37 self.domain_owner.as_deref()
38 }
39 pub fn arn(&self) -> ::std::option::Option<&str> {
41 self.arn.as_deref()
42 }
43 pub fn description(&self) -> ::std::option::Option<&str> {
45 self.description.as_deref()
46 }
47 pub fn created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
49 self.created_time.as_ref()
50 }
51}
52impl RepositorySummary {
53 pub fn builder() -> crate::types::builders::RepositorySummaryBuilder {
55 crate::types::builders::RepositorySummaryBuilder::default()
56 }
57}
58
59#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
61#[non_exhaustive]
62pub struct RepositorySummaryBuilder {
63 pub(crate) name: ::std::option::Option<::std::string::String>,
64 pub(crate) administrator_account: ::std::option::Option<::std::string::String>,
65 pub(crate) domain_name: ::std::option::Option<::std::string::String>,
66 pub(crate) domain_owner: ::std::option::Option<::std::string::String>,
67 pub(crate) arn: ::std::option::Option<::std::string::String>,
68 pub(crate) description: ::std::option::Option<::std::string::String>,
69 pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
70}
71impl RepositorySummaryBuilder {
72 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74 self.name = ::std::option::Option::Some(input.into());
75 self
76 }
77 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79 self.name = input;
80 self
81 }
82 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
84 &self.name
85 }
86 pub fn administrator_account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
88 self.administrator_account = ::std::option::Option::Some(input.into());
89 self
90 }
91 pub fn set_administrator_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
93 self.administrator_account = input;
94 self
95 }
96 pub fn get_administrator_account(&self) -> &::std::option::Option<::std::string::String> {
98 &self.administrator_account
99 }
100 pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
102 self.domain_name = ::std::option::Option::Some(input.into());
103 self
104 }
105 pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
107 self.domain_name = input;
108 self
109 }
110 pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
112 &self.domain_name
113 }
114 pub fn domain_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116 self.domain_owner = ::std::option::Option::Some(input.into());
117 self
118 }
119 pub fn set_domain_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121 self.domain_owner = input;
122 self
123 }
124 pub fn get_domain_owner(&self) -> &::std::option::Option<::std::string::String> {
126 &self.domain_owner
127 }
128 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.arn = ::std::option::Option::Some(input.into());
131 self
132 }
133 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.arn = input;
136 self
137 }
138 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
140 &self.arn
141 }
142 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.description = ::std::option::Option::Some(input.into());
145 self
146 }
147 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.description = input;
150 self
151 }
152 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
154 &self.description
155 }
156 pub fn created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
158 self.created_time = ::std::option::Option::Some(input);
159 self
160 }
161 pub fn set_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
163 self.created_time = input;
164 self
165 }
166 pub fn get_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
168 &self.created_time
169 }
170 pub fn build(self) -> crate::types::RepositorySummary {
172 crate::types::RepositorySummary {
173 name: self.name,
174 administrator_account: self.administrator_account,
175 domain_name: self.domain_name,
176 domain_owner: self.domain_owner,
177 arn: self.arn,
178 description: self.description,
179 created_time: self.created_time,
180 }
181 }
182}