1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateGatewayToServer`](crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`AssociateGatewayToServerOutput`](crate::operation::associate_gateway_to_server::AssociateGatewayToServerOutput) with field(s):
    ///   - [`gateway_arn(Option<String>)`](crate::operation::associate_gateway_to_server::AssociateGatewayToServerOutput::gateway_arn): <p>The Amazon Resource Name (ARN) of a gateway.</p>
    /// - On failure, responds with [`SdkError<AssociateGatewayToServerError>`](crate::operation::associate_gateway_to_server::AssociateGatewayToServerError)
    pub fn associate_gateway_to_server(&self) -> crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder {
        crate::operation::associate_gateway_to_server::builders::AssociateGatewayToServerFluentBuilder::new(self.handle.clone())
    }
}