AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBandwidthRateLimitScheduleRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/BackupGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/backup-gateway/model/BandwidthRateLimitInterval.h>
12#include <utility>
13
14namespace Aws
15{
16namespace BackupGateway
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUPGATEWAY_API PutBandwidthRateLimitScheduleRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutBandwidthRateLimitSchedule"; }
33
34 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
35
36 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::Vector<BandwidthRateLimitInterval>& GetBandwidthRateLimitIntervals() const{ return m_bandwidthRateLimitIntervals; }
46 inline bool BandwidthRateLimitIntervalsHasBeenSet() const { return m_bandwidthRateLimitIntervalsHasBeenSet; }
47 inline void SetBandwidthRateLimitIntervals(const Aws::Vector<BandwidthRateLimitInterval>& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals = value; }
48 inline void SetBandwidthRateLimitIntervals(Aws::Vector<BandwidthRateLimitInterval>&& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals = std::move(value); }
51 inline PutBandwidthRateLimitScheduleRequest& AddBandwidthRateLimitIntervals(const BandwidthRateLimitInterval& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals.push_back(value); return *this; }
52 inline PutBandwidthRateLimitScheduleRequest& AddBandwidthRateLimitIntervals(BandwidthRateLimitInterval&& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals.push_back(std::move(value)); return *this; }
54
56
62 inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; }
63 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
64 inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; }
65 inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); }
66 inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); }
68 inline PutBandwidthRateLimitScheduleRequest& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;}
69 inline PutBandwidthRateLimitScheduleRequest& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;}
71 private:
72
73 Aws::Vector<BandwidthRateLimitInterval> m_bandwidthRateLimitIntervals;
74 bool m_bandwidthRateLimitIntervalsHasBeenSet = false;
75
76 Aws::String m_gatewayArn;
77 bool m_gatewayArnHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BackupGateway
82} // namespace Aws
PutBandwidthRateLimitScheduleRequest & AddBandwidthRateLimitIntervals(const BandwidthRateLimitInterval &value)
PutBandwidthRateLimitScheduleRequest & AddBandwidthRateLimitIntervals(BandwidthRateLimitInterval &&value)
void SetBandwidthRateLimitIntervals(const Aws::Vector< BandwidthRateLimitInterval > &value)
PutBandwidthRateLimitScheduleRequest & WithGatewayArn(const char *value)
PutBandwidthRateLimitScheduleRequest & WithBandwidthRateLimitIntervals(const Aws::Vector< BandwidthRateLimitInterval > &value)
const Aws::Vector< BandwidthRateLimitInterval > & GetBandwidthRateLimitIntervals() const
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBandwidthRateLimitScheduleRequest & WithBandwidthRateLimitIntervals(Aws::Vector< BandwidthRateLimitInterval > &&value)
PutBandwidthRateLimitScheduleRequest & WithGatewayArn(Aws::String &&value)
void SetBandwidthRateLimitIntervals(Aws::Vector< BandwidthRateLimitInterval > &&value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
PutBandwidthRateLimitScheduleRequest & WithGatewayArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector