AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateBandwidthRateLimitScheduleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "UpdateBandwidthRateLimitSchedule"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
39 
40  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
41 
42 
43  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
44 
45 
46  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
47 
48 
49  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
50 
51 
52  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
53 
54 
55  inline UpdateBandwidthRateLimitScheduleRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
56 
57 
58  inline UpdateBandwidthRateLimitScheduleRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
59 
60 
61  inline UpdateBandwidthRateLimitScheduleRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
62 
63 
69  inline const Aws::Vector<BandwidthRateLimitInterval>& GetBandwidthRateLimitIntervals() const{ return m_bandwidthRateLimitIntervals; }
70 
76  inline bool BandwidthRateLimitIntervalsHasBeenSet() const { return m_bandwidthRateLimitIntervalsHasBeenSet; }
77 
83  inline void SetBandwidthRateLimitIntervals(const Aws::Vector<BandwidthRateLimitInterval>& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals = value; }
84 
90  inline void SetBandwidthRateLimitIntervals(Aws::Vector<BandwidthRateLimitInterval>&& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals = std::move(value); }
91 
97  inline UpdateBandwidthRateLimitScheduleRequest& WithBandwidthRateLimitIntervals(const Aws::Vector<BandwidthRateLimitInterval>& value) { SetBandwidthRateLimitIntervals(value); return *this;}
98 
104  inline UpdateBandwidthRateLimitScheduleRequest& WithBandwidthRateLimitIntervals(Aws::Vector<BandwidthRateLimitInterval>&& value) { SetBandwidthRateLimitIntervals(std::move(value)); return *this;}
105 
111  inline UpdateBandwidthRateLimitScheduleRequest& AddBandwidthRateLimitIntervals(const BandwidthRateLimitInterval& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals.push_back(value); return *this; }
112 
118  inline UpdateBandwidthRateLimitScheduleRequest& AddBandwidthRateLimitIntervals(BandwidthRateLimitInterval&& value) { m_bandwidthRateLimitIntervalsHasBeenSet = true; m_bandwidthRateLimitIntervals.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  Aws::String m_gatewayARN;
123  bool m_gatewayARNHasBeenSet;
124 
125  Aws::Vector<BandwidthRateLimitInterval> m_bandwidthRateLimitIntervals;
126  bool m_bandwidthRateLimitIntervalsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace StorageGateway
131 } // namespace Aws
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::AddBandwidthRateLimitIntervals
UpdateBandwidthRateLimitScheduleRequest & AddBandwidthRateLimitIntervals(const BandwidthRateLimitInterval &value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:111
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBandwidthRateLimitScheduleRequest.h:32
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:49
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::WithGatewayARN
UpdateBandwidthRateLimitScheduleRequest & WithGatewayARN(Aws::String &&value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:58
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::UpdateBandwidthRateLimitScheduleRequest
UpdateBandwidthRateLimitScheduleRequest()
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::WithGatewayARN
UpdateBandwidthRateLimitScheduleRequest & WithGatewayARN(const Aws::String &value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:55
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::WithGatewayARN
UpdateBandwidthRateLimitScheduleRequest & WithGatewayARN(const char *value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:61
BandwidthRateLimitInterval.h
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::AddBandwidthRateLimitIntervals
UpdateBandwidthRateLimitScheduleRequest & AddBandwidthRateLimitIntervals(BandwidthRateLimitInterval &&value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:118
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::SetBandwidthRateLimitIntervals
void SetBandwidthRateLimitIntervals(Aws::Vector< BandwidthRateLimitInterval > &&value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:90
AWSVector.h
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:52
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: UpdateBandwidthRateLimitScheduleRequest.h:40
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:46
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::SetBandwidthRateLimitIntervals
void SetBandwidthRateLimitIntervals(const Aws::Vector< BandwidthRateLimitInterval > &value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:83
Aws::StorageGateway::Model::BandwidthRateLimitInterval
Definition: BandwidthRateLimitInterval.h:36
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: UpdateBandwidthRateLimitScheduleRequest.h:43
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::WithBandwidthRateLimitIntervals
UpdateBandwidthRateLimitScheduleRequest & WithBandwidthRateLimitIntervals(Aws::Vector< BandwidthRateLimitInterval > &&value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:104
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::GetBandwidthRateLimitIntervals
const Aws::Vector< BandwidthRateLimitInterval > & GetBandwidthRateLimitIntervals() const
Definition: UpdateBandwidthRateLimitScheduleRequest.h:69
StorageGatewayRequest.h
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::BandwidthRateLimitIntervalsHasBeenSet
bool BandwidthRateLimitIntervalsHasBeenSet() const
Definition: UpdateBandwidthRateLimitScheduleRequest.h:76
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest
Definition: UpdateBandwidthRateLimitScheduleRequest.h:24
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::UpdateBandwidthRateLimitScheduleRequest::WithBandwidthRateLimitIntervals
UpdateBandwidthRateLimitScheduleRequest & WithBandwidthRateLimitIntervals(const Aws::Vector< BandwidthRateLimitInterval > &value)
Definition: UpdateBandwidthRateLimitScheduleRequest.h:97
StorageGateway_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97