AWS SDK for C++  1.9.126
AWS SDK for C++
BandwidthRateLimitInterval.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace StorageGateway
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline int GetStartHourOfDay() const{ return m_startHourOfDay; }
48 
52  inline bool StartHourOfDayHasBeenSet() const { return m_startHourOfDayHasBeenSet; }
53 
57  inline void SetStartHourOfDay(int value) { m_startHourOfDayHasBeenSet = true; m_startHourOfDay = value; }
58 
62  inline BandwidthRateLimitInterval& WithStartHourOfDay(int value) { SetStartHourOfDay(value); return *this;}
63 
64 
70  inline int GetStartMinuteOfHour() const{ return m_startMinuteOfHour; }
71 
77  inline bool StartMinuteOfHourHasBeenSet() const { return m_startMinuteOfHourHasBeenSet; }
78 
84  inline void SetStartMinuteOfHour(int value) { m_startMinuteOfHourHasBeenSet = true; m_startMinuteOfHour = value; }
85 
91  inline BandwidthRateLimitInterval& WithStartMinuteOfHour(int value) { SetStartMinuteOfHour(value); return *this;}
92 
93 
97  inline int GetEndHourOfDay() const{ return m_endHourOfDay; }
98 
102  inline bool EndHourOfDayHasBeenSet() const { return m_endHourOfDayHasBeenSet; }
103 
107  inline void SetEndHourOfDay(int value) { m_endHourOfDayHasBeenSet = true; m_endHourOfDay = value; }
108 
112  inline BandwidthRateLimitInterval& WithEndHourOfDay(int value) { SetEndHourOfDay(value); return *this;}
113 
114 
121  inline int GetEndMinuteOfHour() const{ return m_endMinuteOfHour; }
122 
129  inline bool EndMinuteOfHourHasBeenSet() const { return m_endMinuteOfHourHasBeenSet; }
130 
137  inline void SetEndMinuteOfHour(int value) { m_endMinuteOfHourHasBeenSet = true; m_endMinuteOfHour = value; }
138 
145  inline BandwidthRateLimitInterval& WithEndMinuteOfHour(int value) { SetEndMinuteOfHour(value); return *this;}
146 
147 
153  inline const Aws::Vector<int>& GetDaysOfWeek() const{ return m_daysOfWeek; }
154 
160  inline bool DaysOfWeekHasBeenSet() const { return m_daysOfWeekHasBeenSet; }
161 
167  inline void SetDaysOfWeek(const Aws::Vector<int>& value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek = value; }
168 
174  inline void SetDaysOfWeek(Aws::Vector<int>&& value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek = std::move(value); }
175 
181  inline BandwidthRateLimitInterval& WithDaysOfWeek(const Aws::Vector<int>& value) { SetDaysOfWeek(value); return *this;}
182 
188  inline BandwidthRateLimitInterval& WithDaysOfWeek(Aws::Vector<int>&& value) { SetDaysOfWeek(std::move(value)); return *this;}
189 
195  inline BandwidthRateLimitInterval& AddDaysOfWeek(int value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek.push_back(value); return *this; }
196 
197 
203  inline long long GetAverageUploadRateLimitInBitsPerSec() const{ return m_averageUploadRateLimitInBitsPerSec; }
204 
210  inline bool AverageUploadRateLimitInBitsPerSecHasBeenSet() const { return m_averageUploadRateLimitInBitsPerSecHasBeenSet; }
211 
217  inline void SetAverageUploadRateLimitInBitsPerSec(long long value) { m_averageUploadRateLimitInBitsPerSecHasBeenSet = true; m_averageUploadRateLimitInBitsPerSec = value; }
218 
224  inline BandwidthRateLimitInterval& WithAverageUploadRateLimitInBitsPerSec(long long value) { SetAverageUploadRateLimitInBitsPerSec(value); return *this;}
225 
226 
232  inline long long GetAverageDownloadRateLimitInBitsPerSec() const{ return m_averageDownloadRateLimitInBitsPerSec; }
233 
239  inline bool AverageDownloadRateLimitInBitsPerSecHasBeenSet() const { return m_averageDownloadRateLimitInBitsPerSecHasBeenSet; }
240 
246  inline void SetAverageDownloadRateLimitInBitsPerSec(long long value) { m_averageDownloadRateLimitInBitsPerSecHasBeenSet = true; m_averageDownloadRateLimitInBitsPerSec = value; }
247 
253  inline BandwidthRateLimitInterval& WithAverageDownloadRateLimitInBitsPerSec(long long value) { SetAverageDownloadRateLimitInBitsPerSec(value); return *this;}
254 
255  private:
256 
257  int m_startHourOfDay;
258  bool m_startHourOfDayHasBeenSet;
259 
260  int m_startMinuteOfHour;
261  bool m_startMinuteOfHourHasBeenSet;
262 
263  int m_endHourOfDay;
264  bool m_endHourOfDayHasBeenSet;
265 
266  int m_endMinuteOfHour;
267  bool m_endMinuteOfHourHasBeenSet;
268 
269  Aws::Vector<int> m_daysOfWeek;
270  bool m_daysOfWeekHasBeenSet;
271 
272  long long m_averageUploadRateLimitInBitsPerSec;
273  bool m_averageUploadRateLimitInBitsPerSecHasBeenSet;
274 
275  long long m_averageDownloadRateLimitInBitsPerSec;
276  bool m_averageDownloadRateLimitInBitsPerSecHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace StorageGateway
281 } // namespace Aws
Aws::StorageGateway::Model::BandwidthRateLimitInterval::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::StorageGateway::Model::BandwidthRateLimitInterval::AddDaysOfWeek
BandwidthRateLimitInterval & AddDaysOfWeek(int value)
Definition: BandwidthRateLimitInterval.h:195
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetEndMinuteOfHour
int GetEndMinuteOfHour() const
Definition: BandwidthRateLimitInterval.h:121
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithDaysOfWeek
BandwidthRateLimitInterval & WithDaysOfWeek(const Aws::Vector< int > &value)
Definition: BandwidthRateLimitInterval.h:181
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetDaysOfWeek
const Aws::Vector< int > & GetDaysOfWeek() const
Definition: BandwidthRateLimitInterval.h:153
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetDaysOfWeek
void SetDaysOfWeek(Aws::Vector< int > &&value)
Definition: BandwidthRateLimitInterval.h:174
Aws::StorageGateway::Model::BandwidthRateLimitInterval::BandwidthRateLimitInterval
BandwidthRateLimitInterval()
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetAverageUploadRateLimitInBitsPerSec
void SetAverageUploadRateLimitInBitsPerSec(long long value)
Definition: BandwidthRateLimitInterval.h:217
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetDaysOfWeek
void SetDaysOfWeek(const Aws::Vector< int > &value)
Definition: BandwidthRateLimitInterval.h:167
Aws::StorageGateway::Model::BandwidthRateLimitInterval::BandwidthRateLimitInterval
BandwidthRateLimitInterval(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::BandwidthRateLimitInterval::AverageDownloadRateLimitInBitsPerSecHasBeenSet
bool AverageDownloadRateLimitInBitsPerSecHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:239
Aws::StorageGateway::Model::BandwidthRateLimitInterval::AverageUploadRateLimitInBitsPerSecHasBeenSet
bool AverageUploadRateLimitInBitsPerSecHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:210
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetStartMinuteOfHour
int GetStartMinuteOfHour() const
Definition: BandwidthRateLimitInterval.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::BandwidthRateLimitInterval::StartHourOfDayHasBeenSet
bool StartHourOfDayHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:52
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetEndMinuteOfHour
void SetEndMinuteOfHour(int value)
Definition: BandwidthRateLimitInterval.h:137
AWSVector.h
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithEndMinuteOfHour
BandwidthRateLimitInterval & WithEndMinuteOfHour(int value)
Definition: BandwidthRateLimitInterval.h:145
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetStartMinuteOfHour
void SetStartMinuteOfHour(int value)
Definition: BandwidthRateLimitInterval.h:84
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithStartHourOfDay
BandwidthRateLimitInterval & WithStartHourOfDay(int value)
Definition: BandwidthRateLimitInterval.h:62
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetEndHourOfDay
void SetEndHourOfDay(int value)
Definition: BandwidthRateLimitInterval.h:107
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetAverageDownloadRateLimitInBitsPerSec
void SetAverageDownloadRateLimitInBitsPerSec(long long value)
Definition: BandwidthRateLimitInterval.h:246
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithEndHourOfDay
BandwidthRateLimitInterval & WithEndHourOfDay(int value)
Definition: BandwidthRateLimitInterval.h:112
Aws::StorageGateway::Model::BandwidthRateLimitInterval
Definition: BandwidthRateLimitInterval.h:36
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithDaysOfWeek
BandwidthRateLimitInterval & WithDaysOfWeek(Aws::Vector< int > &&value)
Definition: BandwidthRateLimitInterval.h:188
Aws::StorageGateway::Model::BandwidthRateLimitInterval::SetStartHourOfDay
void SetStartHourOfDay(int value)
Definition: BandwidthRateLimitInterval.h:57
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetEndHourOfDay
int GetEndHourOfDay() const
Definition: BandwidthRateLimitInterval.h:97
Aws::StorageGateway::Model::BandwidthRateLimitInterval::StartMinuteOfHourHasBeenSet
bool StartMinuteOfHourHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:77
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithAverageDownloadRateLimitInBitsPerSec
BandwidthRateLimitInterval & WithAverageDownloadRateLimitInBitsPerSec(long long value)
Definition: BandwidthRateLimitInterval.h:253
Aws::StorageGateway::Model::BandwidthRateLimitInterval::operator=
BandwidthRateLimitInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::BandwidthRateLimitInterval::EndHourOfDayHasBeenSet
bool EndHourOfDayHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:102
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithAverageUploadRateLimitInBitsPerSec
BandwidthRateLimitInterval & WithAverageUploadRateLimitInBitsPerSec(long long value)
Definition: BandwidthRateLimitInterval.h:224
Aws::StorageGateway::Model::BandwidthRateLimitInterval::WithStartMinuteOfHour
BandwidthRateLimitInterval & WithStartMinuteOfHour(int value)
Definition: BandwidthRateLimitInterval.h:91
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetAverageDownloadRateLimitInBitsPerSec
long long GetAverageDownloadRateLimitInBitsPerSec() const
Definition: BandwidthRateLimitInterval.h:232
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetAverageUploadRateLimitInBitsPerSec
long long GetAverageUploadRateLimitInBitsPerSec() const
Definition: BandwidthRateLimitInterval.h:203
Aws::StorageGateway::Model::BandwidthRateLimitInterval::DaysOfWeekHasBeenSet
bool DaysOfWeekHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:160
Aws::StorageGateway::Model::BandwidthRateLimitInterval::GetStartHourOfDay
int GetStartHourOfDay() const
Definition: BandwidthRateLimitInterval.h:47
Aws::StorageGateway::Model::BandwidthRateLimitInterval::EndMinuteOfHourHasBeenSet
bool EndMinuteOfHourHasBeenSet() const
Definition: BandwidthRateLimitInterval.h:129