aws_sdk_backupgateway/client/get_gateway.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 [`GetGateway`](crate::operation::get_gateway::builders::GetGatewayFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`gateway_arn(impl Into<String>)`](crate::operation::get_gateway::builders::GetGatewayFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::get_gateway::builders::GetGatewayFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway.</p><br>
7 /// - On success, responds with [`GetGatewayOutput`](crate::operation::get_gateway::GetGatewayOutput) with field(s):
8 /// - [`gateway(Option<GatewayDetails>)`](crate::operation::get_gateway::GetGatewayOutput::gateway): <p>By providing the ARN (Amazon Resource Name), this API returns the gateway.</p>
9 /// - On failure, responds with [`SdkError<GetGatewayError>`](crate::operation::get_gateway::GetGatewayError)
10 pub fn get_gateway(&self) -> crate::operation::get_gateway::builders::GetGatewayFluentBuilder {
11 crate::operation::get_gateway::builders::GetGatewayFluentBuilder::new(self.handle.clone())
12 }
13}