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/backup-gateway/BackupGateway_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 BackupGateway
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval();
41 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline long long GetAverageUploadRateLimitInBitsPerSec() const{ return m_averageUploadRateLimitInBitsPerSec; }
52 inline bool AverageUploadRateLimitInBitsPerSecHasBeenSet() const { return m_averageUploadRateLimitInBitsPerSecHasBeenSet; }
53 inline void SetAverageUploadRateLimitInBitsPerSec(long long value) { m_averageUploadRateLimitInBitsPerSecHasBeenSet = true; m_averageUploadRateLimitInBitsPerSec = value; }
56
58
63 inline const Aws::Vector<int>& GetDaysOfWeek() const{ return m_daysOfWeek; }
64 inline bool DaysOfWeekHasBeenSet() const { return m_daysOfWeekHasBeenSet; }
65 inline void SetDaysOfWeek(const Aws::Vector<int>& value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek = value; }
66 inline void SetDaysOfWeek(Aws::Vector<int>&& value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek = std::move(value); }
67 inline BandwidthRateLimitInterval& WithDaysOfWeek(const Aws::Vector<int>& value) { SetDaysOfWeek(value); return *this;}
68 inline BandwidthRateLimitInterval& WithDaysOfWeek(Aws::Vector<int>&& value) { SetDaysOfWeek(std::move(value)); return *this;}
69 inline BandwidthRateLimitInterval& AddDaysOfWeek(int value) { m_daysOfWeekHasBeenSet = true; m_daysOfWeek.push_back(value); return *this; }
71
73
76 inline int GetEndHourOfDay() const{ return m_endHourOfDay; }
77 inline bool EndHourOfDayHasBeenSet() const { return m_endHourOfDayHasBeenSet; }
78 inline void SetEndHourOfDay(int value) { m_endHourOfDayHasBeenSet = true; m_endHourOfDay = value; }
79 inline BandwidthRateLimitInterval& WithEndHourOfDay(int value) { SetEndHourOfDay(value); return *this;}
81
83
89 inline int GetEndMinuteOfHour() const{ return m_endMinuteOfHour; }
90 inline bool EndMinuteOfHourHasBeenSet() const { return m_endMinuteOfHourHasBeenSet; }
91 inline void SetEndMinuteOfHour(int value) { m_endMinuteOfHourHasBeenSet = true; m_endMinuteOfHour = value; }
92 inline BandwidthRateLimitInterval& WithEndMinuteOfHour(int value) { SetEndMinuteOfHour(value); return *this;}
94
96
99 inline int GetStartHourOfDay() const{ return m_startHourOfDay; }
100 inline bool StartHourOfDayHasBeenSet() const { return m_startHourOfDayHasBeenSet; }
101 inline void SetStartHourOfDay(int value) { m_startHourOfDayHasBeenSet = true; m_startHourOfDay = value; }
102 inline BandwidthRateLimitInterval& WithStartHourOfDay(int value) { SetStartHourOfDay(value); return *this;}
104
106
111 inline int GetStartMinuteOfHour() const{ return m_startMinuteOfHour; }
112 inline bool StartMinuteOfHourHasBeenSet() const { return m_startMinuteOfHourHasBeenSet; }
113 inline void SetStartMinuteOfHour(int value) { m_startMinuteOfHourHasBeenSet = true; m_startMinuteOfHour = value; }
116 private:
117
118 long long m_averageUploadRateLimitInBitsPerSec;
119 bool m_averageUploadRateLimitInBitsPerSecHasBeenSet = false;
120
121 Aws::Vector<int> m_daysOfWeek;
122 bool m_daysOfWeekHasBeenSet = false;
123
124 int m_endHourOfDay;
125 bool m_endHourOfDayHasBeenSet = false;
126
127 int m_endMinuteOfHour;
128 bool m_endMinuteOfHourHasBeenSet = false;
129
130 int m_startHourOfDay;
131 bool m_startHourOfDayHasBeenSet = false;
132
133 int m_startMinuteOfHour;
134 bool m_startMinuteOfHourHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace BackupGateway
139} // namespace Aws
AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval(Aws::Utils::Json::JsonView jsonValue)
BandwidthRateLimitInterval & WithStartMinuteOfHour(int value)
BandwidthRateLimitInterval & WithDaysOfWeek(const Aws::Vector< int > &value)
BandwidthRateLimitInterval & WithAverageUploadRateLimitInBitsPerSec(long long value)
BandwidthRateLimitInterval & WithDaysOfWeek(Aws::Vector< int > &&value)
AWS_BACKUPGATEWAY_API BandwidthRateLimitInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
BandwidthRateLimitInterval & WithEndMinuteOfHour(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue