pub use crate::operation::create_customer_gateway::_create_customer_gateway_input::CreateCustomerGatewayInputBuilder;
pub use crate::operation::create_customer_gateway::_create_customer_gateway_output::CreateCustomerGatewayOutputBuilder;
impl crate::operation::create_customer_gateway::builders::CreateCustomerGatewayInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_customer_gateway::CreateCustomerGatewayOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_customer_gateway::CreateCustomerGatewayError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_customer_gateway();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateCustomerGatewayFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_customer_gateway::builders::CreateCustomerGatewayInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_customer_gateway::CreateCustomerGatewayOutput,
crate::operation::create_customer_gateway::CreateCustomerGatewayError,
> for CreateCustomerGatewayFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_customer_gateway::CreateCustomerGatewayOutput,
crate::operation::create_customer_gateway::CreateCustomerGatewayError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateCustomerGatewayFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::create_customer_gateway::builders::CreateCustomerGatewayInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_customer_gateway::CreateCustomerGatewayOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_customer_gateway::CreateCustomerGatewayError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_customer_gateway::CreateCustomerGateway::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_customer_gateway::CreateCustomerGateway::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_customer_gateway::CreateCustomerGatewayOutput,
crate::operation::create_customer_gateway::CreateCustomerGatewayError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn bgp_asn(mut self, input: i32) -> Self {
self.inner = self.inner.bgp_asn(input);
self
}
pub fn set_bgp_asn(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_bgp_asn(input);
self
}
pub fn get_bgp_asn(&self) -> &::std::option::Option<i32> {
self.inner.get_bgp_asn()
}
pub fn public_ip(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.public_ip(input.into());
self
}
pub fn set_public_ip(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_public_ip(input);
self
}
pub fn get_public_ip(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_public_ip()
}
pub fn certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.certificate_arn(input.into());
self
}
pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_certificate_arn(input);
self
}
pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_certificate_arn()
}
pub fn r#type(mut self, input: crate::types::GatewayType) -> Self {
self.inner = self.inner.r#type(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::GatewayType>) -> Self {
self.inner = self.inner.set_type(input);
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::GatewayType> {
self.inner.get_type()
}
pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
self.inner = self.inner.tag_specifications(input);
self
}
pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
self.inner = self.inner.set_tag_specifications(input);
self
}
pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
self.inner.get_tag_specifications()
}
pub fn device_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.device_name(input.into());
self
}
pub fn set_device_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_device_name(input);
self
}
pub fn get_device_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_device_name()
}
pub fn ip_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.ip_address(input.into());
self
}
pub fn set_ip_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_ip_address(input);
self
}
pub fn get_ip_address(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_ip_address()
}
pub fn bgp_asn_extended(mut self, input: i64) -> Self {
self.inner = self.inner.bgp_asn_extended(input);
self
}
pub fn set_bgp_asn_extended(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_bgp_asn_extended(input);
self
}
pub fn get_bgp_asn_extended(&self) -> &::std::option::Option<i64> {
self.inner.get_bgp_asn_extended()
}
pub fn dry_run(mut self, input: bool) -> Self {
self.inner = self.inner.dry_run(input);
self
}
pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_dry_run(input);
self
}
pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
self.inner.get_dry_run()
}
}