AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BandwidthRateLimitInterval.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace StorageGateway
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_STORAGEGATEWAY_API BandwidthRateLimitInterval();
40 AWS_STORAGEGATEWAY_API BandwidthRateLimitInterval(Aws::Utils::Json::JsonView jsonValue);
42 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline int GetStartHourOfDay() const{ return m_startHourOfDay; }
50 inline bool StartHourOfDayHasBeenSet() const { return m_startHourOfDayHasBeenSet; }
51 inline void SetStartHourOfDay(int value) { m_startHourOfDayHasBeenSet = true; m_startHourOfDay = value; }
52 inline BandwidthRateLimitInterval& WithStartHourOfDay(int value) { SetStartHourOfDay(value); return *this;}
54
56
61 inline int GetStartMinuteOfHour() const{ return m_startMinuteOfHour; }
62 inline bool StartMinuteOfHourHasBeenSet() const { return m_startMinuteOfHourHasBeenSet; }
63 inline void SetStartMinuteOfHour(int value) { m_startMinuteOfHourHasBeenSet = true; m_startMinuteOfHour = value; }
64 inline BandwidthRateLimitInterval& WithStartMinuteOfHour(int value) { SetStartMinuteOfHour(value); return *this;}
66
68
71 inline int GetEndHourOfDay() const{ return m_endHourOfDay; }
72 inline bool EndHourOfDayHasBeenSet() const { return m_endHourOfDayHasBeenSet; }
73 inline void SetEndHourOfDay(int value) { m_endHourOfDayHasBeenSet = true; m_endHourOfDay = value; }
74 inline BandwidthRateLimitInterval& WithEndHourOfDay(int value) { SetEndHourOfDay(value); return *this;}
76
78
84 inline int GetEndMinuteOfHour() const{ return m_endMinuteOfHour; }
85 inline bool EndMinuteOfHourHasBeenSet() const { return m_endMinuteOfHourHasBeenSet; }
86 inline void SetEndMinuteOfHour(int value) { m_endMinuteOfHourHasBeenSet = true; m_endMinuteOfHour = value; }
87 inline BandwidthRateLimitInterval& WithEndMinuteOfHour(int value) { SetEndMinuteOfHour(value); return *this;}
89
91
96 inline const Aws::Vector<int>& GetDaysOfWeek() const{ return m_daysOfWeek; }
97 inline bool DaysOfWeekHasBeenSet() const { return m_daysOfWeekHasBeenSet; }
98 inline void SetDaysOfWeek(const Aws::Vector<int>& value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek = value; }
99 inline void SetDaysOfWeek(Aws::Vector<int>&& value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek = std::move(value); }
100 inline BandwidthRateLimitInterval& WithDaysOfWeek(const Aws::Vector<int>& value) { SetDaysOfWeek(value); return *this;}
101 inline BandwidthRateLimitInterval& WithDaysOfWeek(Aws::Vector<int>&& value) { SetDaysOfWeek(std::move(value)); return *this;}
102 inline BandwidthRateLimitInterval& AddDaysOfWeek(int value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek.push_back(value); return *this; }
104
106
114 inline long long GetAverageUploadRateLimitInBitsPerSec() const{ return m_averageUploadRateLimitInBitsPerSec; }
115 inline bool AverageUploadRateLimitInBitsPerSecHasBeenSet() const { return m_averageUploadRateLimitInBitsPerSecHasBeenSet; }
116 inline void SetAverageUploadRateLimitInBitsPerSec(long long value) { m_averageUploadRateLimitInBitsPerSecHasBeenSet = true; m_averageUploadRateLimitInBitsPerSec = value; }
119
121
127 inline long long GetAverageDownloadRateLimitInBitsPerSec() const{ return m_averageDownloadRateLimitInBitsPerSec; }
128 inline bool AverageDownloadRateLimitInBitsPerSecHasBeenSet() const { return m_averageDownloadRateLimitInBitsPerSecHasBeenSet; }
129 inline void SetAverageDownloadRateLimitInBitsPerSec(long long value) { m_averageDownloadRateLimitInBitsPerSecHasBeenSet = true; m_averageDownloadRateLimitInBitsPerSec = value; }
132 private:
133
134 int m_startHourOfDay;
135 bool m_startHourOfDayHasBeenSet = false;
136
137 int m_startMinuteOfHour;
138 bool m_startMinuteOfHourHasBeenSet = false;
139
140 int m_endHourOfDay;
141 bool m_endHourOfDayHasBeenSet = false;
142
143 int m_endMinuteOfHour;
144 bool m_endMinuteOfHourHasBeenSet = false;
145
146 Aws::Vector<int> m_daysOfWeek;
147 bool m_daysOfWeekHasBeenSet = false;
148
149 long long m_averageUploadRateLimitInBitsPerSec;
150 bool m_averageUploadRateLimitInBitsPerSecHasBeenSet = false;
151
152 long long m_averageDownloadRateLimitInBitsPerSec;
153 bool m_averageDownloadRateLimitInBitsPerSecHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace StorageGateway
158} // namespace Aws
BandwidthRateLimitInterval & WithDaysOfWeek(const Aws::Vector< int > &value)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
BandwidthRateLimitInterval & WithDaysOfWeek(Aws::Vector< int > &&value)
AWS_STORAGEGATEWAY_API BandwidthRateLimitInterval(Aws::Utils::Json::JsonView jsonValue)
BandwidthRateLimitInterval & WithAverageDownloadRateLimitInBitsPerSec(long long value)
AWS_STORAGEGATEWAY_API BandwidthRateLimitInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
BandwidthRateLimitInterval & WithStartMinuteOfHour(int value)
BandwidthRateLimitInterval & WithAverageUploadRateLimitInBitsPerSec(long long value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue