/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace BackupGateway { namespace Model { /** */ class PutBandwidthRateLimitScheduleRequest : public BackupGatewayRequest { public: AWS_BACKUPGATEWAY_API PutBandwidthRateLimitScheduleRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutBandwidthRateLimitSchedule"; } AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override; AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline const Aws::Vector& GetBandwidthRateLimitIntervals() const{ return m_bandwidthRateLimitIntervals; } /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline bool BandwidthRateLimitIntervalsHasBeenSet() const { return m_bandwidthRateLimitIntervalsHasBeenSet; } /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline void SetBandwidthRateLimitIntervals(const Aws::Vector& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals = value; } /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline void SetBandwidthRateLimitIntervals(Aws::Vector&& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals = std::move(value); } /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline PutBandwidthRateLimitScheduleRequest& WithBandwidthRateLimitIntervals(const Aws::Vector& value) { SetBandwidthRateLimitIntervals(value); return *this;} /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline PutBandwidthRateLimitScheduleRequest& WithBandwidthRateLimitIntervals(Aws::Vector&& value) { SetBandwidthRateLimitIntervals(std::move(value)); return *this;} /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline PutBandwidthRateLimitScheduleRequest& AddBandwidthRateLimitIntervals(const BandwidthRateLimitInterval& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals.push_back(value); return *this; } /** *

An array containing bandwidth rate limit schedule intervals for a gateway. * When no bandwidth rate limit intervals have been scheduled, the array is * empty.

*/ inline PutBandwidthRateLimitScheduleRequest& AddBandwidthRateLimitIntervals(BandwidthRateLimitInterval&& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline PutBandwidthRateLimitScheduleRequest& WithGatewayArn(const Aws::String& value) { SetGatewayArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline PutBandwidthRateLimitScheduleRequest& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline PutBandwidthRateLimitScheduleRequest& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;} private: Aws::Vector m_bandwidthRateLimitIntervals; bool m_bandwidthRateLimitIntervalsHasBeenSet = false; Aws::String m_gatewayArn; bool m_gatewayArnHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws