aws_sdk_storagegateway/client/
start_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 [`StartGateway`](crate::operation::start_gateway::builders::StartGatewayFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::start_gateway::builders::StartGatewayFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::start_gateway::builders::StartGatewayFluentBuilder::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    /// - On success, responds with [`StartGatewayOutput`](crate::operation::start_gateway::StartGatewayOutput) with field(s):
8    ///   - [`gateway_arn(Option<String>)`](crate::operation::start_gateway::StartGatewayOutput::gateway_arn): <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>
9    /// - On failure, responds with [`SdkError<StartGatewayError>`](crate::operation::start_gateway::StartGatewayError)
10    pub fn start_gateway(&self) -> crate::operation::start_gateway::builders::StartGatewayFluentBuilder {
11        crate::operation::start_gateway::builders::StartGatewayFluentBuilder::new(self.handle.clone())
12    }
13}