aws_sdk_codeartifact/operation/get_repository_endpoint/
builders.rs1pub use crate::operation::get_repository_endpoint::_get_repository_endpoint_output::GetRepositoryEndpointOutputBuilder;
3
4pub use crate::operation::get_repository_endpoint::_get_repository_endpoint_input::GetRepositoryEndpointInputBuilder;
5
6impl crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_repository_endpoint::GetRepositoryEndpointError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_repository_endpoint();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
45pub struct GetRepositoryEndpointFluentBuilder {
46 handle: ::std::sync::Arc<crate::client::Handle>,
47 inner: crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointInputBuilder,
48 config_override: ::std::option::Option<crate::config::Builder>,
49}
50impl
51 crate::client::customize::internal::CustomizableSend<
52 crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput,
53 crate::operation::get_repository_endpoint::GetRepositoryEndpointError,
54 > for GetRepositoryEndpointFluentBuilder
55{
56 fn send(
57 self,
58 config_override: crate::config::Builder,
59 ) -> crate::client::customize::internal::BoxFuture<
60 crate::client::customize::internal::SendResult<
61 crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput,
62 crate::operation::get_repository_endpoint::GetRepositoryEndpointError,
63 >,
64 > {
65 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
66 }
67}
68impl GetRepositoryEndpointFluentBuilder {
69 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
71 Self {
72 handle,
73 inner: ::std::default::Default::default(),
74 config_override: ::std::option::Option::None,
75 }
76 }
77 pub fn as_input(&self) -> &crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointInputBuilder {
79 &self.inner
80 }
81 pub async fn send(
90 self,
91 ) -> ::std::result::Result<
92 crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput,
93 ::aws_smithy_runtime_api::client::result::SdkError<
94 crate::operation::get_repository_endpoint::GetRepositoryEndpointError,
95 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
96 >,
97 > {
98 let input = self
99 .inner
100 .build()
101 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
102 let runtime_plugins = crate::operation::get_repository_endpoint::GetRepositoryEndpoint::operation_runtime_plugins(
103 self.handle.runtime_plugins.clone(),
104 &self.handle.conf,
105 self.config_override,
106 );
107 crate::operation::get_repository_endpoint::GetRepositoryEndpoint::orchestrate(&runtime_plugins, input).await
108 }
109
110 pub fn customize(
112 self,
113 ) -> crate::client::customize::CustomizableOperation<
114 crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput,
115 crate::operation::get_repository_endpoint::GetRepositoryEndpointError,
116 Self,
117 > {
118 crate::client::customize::CustomizableOperation::new(self)
119 }
120 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
121 self.set_config_override(::std::option::Option::Some(config_override.into()));
122 self
123 }
124
125 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
126 self.config_override = config_override;
127 self
128 }
129 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
131 self.inner = self.inner.domain(input.into());
132 self
133 }
134 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
136 self.inner = self.inner.set_domain(input);
137 self
138 }
139 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
141 self.inner.get_domain()
142 }
143 pub fn domain_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
145 self.inner = self.inner.domain_owner(input.into());
146 self
147 }
148 pub fn set_domain_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
150 self.inner = self.inner.set_domain_owner(input);
151 self
152 }
153 pub fn get_domain_owner(&self) -> &::std::option::Option<::std::string::String> {
155 self.inner.get_domain_owner()
156 }
157 pub fn repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
159 self.inner = self.inner.repository(input.into());
160 self
161 }
162 pub fn set_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
164 self.inner = self.inner.set_repository(input);
165 self
166 }
167 pub fn get_repository(&self) -> &::std::option::Option<::std::string::String> {
169 self.inner.get_repository()
170 }
171 pub fn format(mut self, input: crate::types::PackageFormat) -> Self {
173 self.inner = self.inner.format(input);
174 self
175 }
176 pub fn set_format(mut self, input: ::std::option::Option<crate::types::PackageFormat>) -> Self {
178 self.inner = self.inner.set_format(input);
179 self
180 }
181 pub fn get_format(&self) -> &::std::option::Option<crate::types::PackageFormat> {
183 self.inner.get_format()
184 }
185 pub fn endpoint_type(mut self, input: crate::types::EndpointType) -> Self {
187 self.inner = self.inner.endpoint_type(input);
188 self
189 }
190 pub fn set_endpoint_type(mut self, input: ::std::option::Option<crate::types::EndpointType>) -> Self {
192 self.inner = self.inner.set_endpoint_type(input);
193 self
194 }
195 pub fn get_endpoint_type(&self) -> &::std::option::Option<crate::types::EndpointType> {
197 self.inner.get_endpoint_type()
198 }
199}