AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttackVolume.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/AttackVolumeStatistics.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 Shield
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_SHIELD_API AttackVolume() = default;
38 AWS_SHIELD_API AttackVolume(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const AttackVolumeStatistics& GetBitsPerSecond() const { return m_bitsPerSecond; }
49 inline bool BitsPerSecondHasBeenSet() const { return m_bitsPerSecondHasBeenSet; }
50 template<typename BitsPerSecondT = AttackVolumeStatistics>
51 void SetBitsPerSecond(BitsPerSecondT&& value) { m_bitsPerSecondHasBeenSet = true; m_bitsPerSecond = std::forward<BitsPerSecondT>(value); }
52 template<typename BitsPerSecondT = AttackVolumeStatistics>
53 AttackVolume& WithBitsPerSecond(BitsPerSecondT&& value) { SetBitsPerSecond(std::forward<BitsPerSecondT>(value)); return *this;}
55
57
61 inline const AttackVolumeStatistics& GetPacketsPerSecond() const { return m_packetsPerSecond; }
62 inline bool PacketsPerSecondHasBeenSet() const { return m_packetsPerSecondHasBeenSet; }
63 template<typename PacketsPerSecondT = AttackVolumeStatistics>
64 void SetPacketsPerSecond(PacketsPerSecondT&& value) { m_packetsPerSecondHasBeenSet = true; m_packetsPerSecond = std::forward<PacketsPerSecondT>(value); }
65 template<typename PacketsPerSecondT = AttackVolumeStatistics>
66 AttackVolume& WithPacketsPerSecond(PacketsPerSecondT&& value) { SetPacketsPerSecond(std::forward<PacketsPerSecondT>(value)); return *this;}
68
70
75 inline const AttackVolumeStatistics& GetRequestsPerSecond() const { return m_requestsPerSecond; }
76 inline bool RequestsPerSecondHasBeenSet() const { return m_requestsPerSecondHasBeenSet; }
77 template<typename RequestsPerSecondT = AttackVolumeStatistics>
78 void SetRequestsPerSecond(RequestsPerSecondT&& value) { m_requestsPerSecondHasBeenSet = true; m_requestsPerSecond = std::forward<RequestsPerSecondT>(value); }
79 template<typename RequestsPerSecondT = AttackVolumeStatistics>
80 AttackVolume& WithRequestsPerSecond(RequestsPerSecondT&& value) { SetRequestsPerSecond(std::forward<RequestsPerSecondT>(value)); return *this;}
82 private:
83
84 AttackVolumeStatistics m_bitsPerSecond;
85 bool m_bitsPerSecondHasBeenSet = false;
86
87 AttackVolumeStatistics m_packetsPerSecond;
88 bool m_packetsPerSecondHasBeenSet = false;
89
90 AttackVolumeStatistics m_requestsPerSecond;
91 bool m_requestsPerSecondHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Shield
96} // namespace Aws
AWS_SHIELD_API AttackVolume(Aws::Utils::Json::JsonView jsonValue)
void SetPacketsPerSecond(PacketsPerSecondT &&value)
AttackVolume & WithBitsPerSecond(BitsPerSecondT &&value)
void SetBitsPerSecond(BitsPerSecondT &&value)
const AttackVolumeStatistics & GetPacketsPerSecond() const
AWS_SHIELD_API AttackVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
AttackVolume & WithRequestsPerSecond(RequestsPerSecondT &&value)
AWS_SHIELD_API AttackVolume()=default
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
const AttackVolumeStatistics & GetBitsPerSecond() const
void SetRequestsPerSecond(RequestsPerSecondT &&value)
AttackVolume & WithPacketsPerSecond(PacketsPerSecondT &&value)
const AttackVolumeStatistics & GetRequestsPerSecond() const
Aws::Utils::Json::JsonValue JsonValue