aws_sdk_backupgateway/client/
associate_gateway_to_server.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`AssociateGatewayToServer`](crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
7    ///   - [`server_arn(impl Into<String>)`](crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder::server_arn) / [`set_server_arn(Option<String>)`](crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder::set_server_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the server that hosts your virtual machines.</p><br>
8    /// - On success, responds with [`AssociateGatewayToServerOutput`](crate::operation::associate_gateway_to_server::AssociateGatewayToServerOutput) with field(s):
9    ///   - [`gateway_arn(Option<String>)`](crate::operation::associate_gateway_to_server::AssociateGatewayToServerOutput::gateway_arn): <p>The Amazon Resource Name (ARN) of a gateway.</p>
10    /// - On failure, responds with [`SdkError<AssociateGatewayToServerError>`](crate::operation::associate_gateway_to_server::AssociateGatewayToServerError)
11    pub fn associate_gateway_to_server(&self) -> crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder {
12        crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder::new(self.handle.clone())
13    }
14}