AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Bandwidth.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace NetworkManager {
17namespace Model {
18
24class Bandwidth {
25 public:
26 AWS_NETWORKMANAGER_API Bandwidth() = default;
27 AWS_NETWORKMANAGER_API Bandwidth(Aws::Utils::Json::JsonView jsonValue);
28 AWS_NETWORKMANAGER_API Bandwidth& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetUploadSpeed() const { return m_uploadSpeed; }
36 inline bool UploadSpeedHasBeenSet() const { return m_uploadSpeedHasBeenSet; }
37 inline void SetUploadSpeed(int value) {
38 m_uploadSpeedHasBeenSet = true;
39 m_uploadSpeed = value;
40 }
41 inline Bandwidth& WithUploadSpeed(int value) {
42 SetUploadSpeed(value);
43 return *this;
44 }
46
48
51 inline int GetDownloadSpeed() const { return m_downloadSpeed; }
52 inline bool DownloadSpeedHasBeenSet() const { return m_downloadSpeedHasBeenSet; }
53 inline void SetDownloadSpeed(int value) {
54 m_downloadSpeedHasBeenSet = true;
55 m_downloadSpeed = value;
56 }
57 inline Bandwidth& WithDownloadSpeed(int value) {
58 SetDownloadSpeed(value);
59 return *this;
60 }
62 private:
63 int m_uploadSpeed{0};
64
65 int m_downloadSpeed{0};
66 bool m_uploadSpeedHasBeenSet = false;
67 bool m_downloadSpeedHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace NetworkManager
72} // namespace Aws
AWS_NETWORKMANAGER_API Bandwidth & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API Bandwidth()=default
AWS_NETWORKMANAGER_API Bandwidth(Aws::Utils::Json::JsonView jsonValue)
Bandwidth & WithDownloadSpeed(int value)
Definition Bandwidth.h:57
Bandwidth & WithUploadSpeed(int value)
Definition Bandwidth.h:41
Aws::Utils::Json::JsonValue JsonValue