aws_sdk_route53/operation/associate_vpc_with_hosted_zone/
builders.rs1pub use crate::operation::associate_vpc_with_hosted_zone::_associate_vpc_with_hosted_zone_output::AssociateVpcWithHostedZoneOutputBuilder;
3
4pub use crate::operation::associate_vpc_with_hosted_zone::_associate_vpc_with_hosted_zone_input::AssociateVpcWithHostedZoneInputBuilder;
5
6impl crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVpcWithHostedZoneInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZoneError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.associate_vpc_with_hosted_zone();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
43pub struct AssociateVPCWithHostedZoneFluentBuilder {
44 handle: ::std::sync::Arc<crate::client::Handle>,
45 inner: crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVpcWithHostedZoneInputBuilder,
46 config_override: ::std::option::Option<crate::config::Builder>,
47}
48impl
49 crate::client::customize::internal::CustomizableSend<
50 crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput,
51 crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZoneError,
52 > for AssociateVPCWithHostedZoneFluentBuilder
53{
54 fn send(
55 self,
56 config_override: crate::config::Builder,
57 ) -> crate::client::customize::internal::BoxFuture<
58 crate::client::customize::internal::SendResult<
59 crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput,
60 crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZoneError,
61 >,
62 > {
63 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
64 }
65}
66impl AssociateVPCWithHostedZoneFluentBuilder {
67 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
69 Self {
70 handle,
71 inner: ::std::default::Default::default(),
72 config_override: ::std::option::Option::None,
73 }
74 }
75 pub fn as_input(&self) -> &crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVpcWithHostedZoneInputBuilder {
77 &self.inner
78 }
79 pub async fn send(
88 self,
89 ) -> ::std::result::Result<
90 crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput,
91 ::aws_smithy_runtime_api::client::result::SdkError<
92 crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZoneError,
93 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
94 >,
95 > {
96 let input = self
97 .inner
98 .build()
99 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
100 let runtime_plugins = crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZone::operation_runtime_plugins(
101 self.handle.runtime_plugins.clone(),
102 &self.handle.conf,
103 self.config_override,
104 );
105 crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZone::orchestrate(&runtime_plugins, input).await
106 }
107
108 pub fn customize(
110 self,
111 ) -> crate::client::customize::CustomizableOperation<
112 crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput,
113 crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZoneError,
114 Self,
115 > {
116 crate::client::customize::CustomizableOperation::new(self)
117 }
118 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
119 self.set_config_override(::std::option::Option::Some(config_override.into()));
120 self
121 }
122
123 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
124 self.config_override = config_override;
125 self
126 }
127 pub fn hosted_zone_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.hosted_zone_id(input.into());
131 self
132 }
133 pub fn set_hosted_zone_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
136 self.inner = self.inner.set_hosted_zone_id(input);
137 self
138 }
139 pub fn get_hosted_zone_id(&self) -> &::std::option::Option<::std::string::String> {
142 self.inner.get_hosted_zone_id()
143 }
144 pub fn vpc(mut self, input: crate::types::Vpc) -> Self {
146 self.inner = self.inner.vpc(input);
147 self
148 }
149 pub fn set_vpc(mut self, input: ::std::option::Option<crate::types::Vpc>) -> Self {
151 self.inner = self.inner.set_vpc(input);
152 self
153 }
154 pub fn get_vpc(&self) -> &::std::option::Option<crate::types::Vpc> {
156 self.inner.get_vpc()
157 }
158 pub fn comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160 self.inner = self.inner.comment(input.into());
161 self
162 }
163 pub fn set_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165 self.inner = self.inner.set_comment(input);
166 self
167 }
168 pub fn get_comment(&self) -> &::std::option::Option<::std::string::String> {
170 self.inner.get_comment()
171 }
172}