AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BandwidthRateLimitInterval.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BackupGateway {
20namespace Model {
21
32 public:
33 AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval() = default;
36 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline long long GetAverageUploadRateLimitInBitsPerSec() const { return m_averageUploadRateLimitInBitsPerSec; }
46 inline bool AverageUploadRateLimitInBitsPerSecHasBeenSet() const { return m_averageUploadRateLimitInBitsPerSecHasBeenSet; }
47 inline void SetAverageUploadRateLimitInBitsPerSec(long long value) {
48 m_averageUploadRateLimitInBitsPerSecHasBeenSet = true;
49 m_averageUploadRateLimitInBitsPerSec = value;
50 }
53 return *this;
54 }
56
58
63 inline const Aws::Vector<int>& GetDaysOfWeek() const { return m_daysOfWeek; }
64 inline bool DaysOfWeekHasBeenSet() const { return m_daysOfWeekHasBeenSet; }
65 template <typename DaysOfWeekT = Aws::Vector<int>>
66 void SetDaysOfWeek(DaysOfWeekT&& value) {
67 m_daysOfWeekHasBeenSet = true;
68 m_daysOfWeek = std::forward<DaysOfWeekT>(value);
69 }
70 template <typename DaysOfWeekT = Aws::Vector<int>>
72 SetDaysOfWeek(std::forward<DaysOfWeekT>(value));
73 return *this;
74 }
76 m_daysOfWeekHasBeenSet = true;
77 m_daysOfWeek.push_back(value);
78 return *this;
79 }
81
83
86 inline int GetEndHourOfDay() const { return m_endHourOfDay; }
87 inline bool EndHourOfDayHasBeenSet() const { return m_endHourOfDayHasBeenSet; }
88 inline void SetEndHourOfDay(int value) {
89 m_endHourOfDayHasBeenSet = true;
90 m_endHourOfDay = value;
91 }
93 SetEndHourOfDay(value);
94 return *this;
95 }
97
99
105 inline int GetEndMinuteOfHour() const { return m_endMinuteOfHour; }
106 inline bool EndMinuteOfHourHasBeenSet() const { return m_endMinuteOfHourHasBeenSet; }
107 inline void SetEndMinuteOfHour(int value) {
108 m_endMinuteOfHourHasBeenSet = true;
109 m_endMinuteOfHour = value;
110 }
112 SetEndMinuteOfHour(value);
113 return *this;
114 }
116
118
121 inline int GetStartHourOfDay() const { return m_startHourOfDay; }
122 inline bool StartHourOfDayHasBeenSet() const { return m_startHourOfDayHasBeenSet; }
123 inline void SetStartHourOfDay(int value) {
124 m_startHourOfDayHasBeenSet = true;
125 m_startHourOfDay = value;
126 }
128 SetStartHourOfDay(value);
129 return *this;
130 }
132
134
139 inline int GetStartMinuteOfHour() const { return m_startMinuteOfHour; }
140 inline bool StartMinuteOfHourHasBeenSet() const { return m_startMinuteOfHourHasBeenSet; }
141 inline void SetStartMinuteOfHour(int value) {
142 m_startMinuteOfHourHasBeenSet = true;
143 m_startMinuteOfHour = value;
144 }
147 return *this;
148 }
150 private:
151 long long m_averageUploadRateLimitInBitsPerSec{0};
152
153 Aws::Vector<int> m_daysOfWeek;
154
155 int m_endHourOfDay{0};
156
157 int m_endMinuteOfHour{0};
158
159 int m_startHourOfDay{0};
160
161 int m_startMinuteOfHour{0};
162 bool m_averageUploadRateLimitInBitsPerSecHasBeenSet = false;
163 bool m_daysOfWeekHasBeenSet = false;
164 bool m_endHourOfDayHasBeenSet = false;
165 bool m_endMinuteOfHourHasBeenSet = false;
166 bool m_startHourOfDayHasBeenSet = false;
167 bool m_startMinuteOfHourHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace BackupGateway
172} // namespace Aws
AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval(Aws::Utils::Json::JsonView jsonValue)
BandwidthRateLimitInterval & WithStartMinuteOfHour(int value)
BandwidthRateLimitInterval & WithDaysOfWeek(DaysOfWeekT &&value)
BandwidthRateLimitInterval & WithAverageUploadRateLimitInBitsPerSec(long long value)
AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval()=default
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue