AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ProtectionGroupLimits.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/ProtectionGroupPatternTypeLimits.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
29 public:
30 AWS_SHIELD_API ProtectionGroupLimits() = default;
33 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetMaxProtectionGroups() const { return m_maxProtectionGroups; }
40 inline bool MaxProtectionGroupsHasBeenSet() const { return m_maxProtectionGroupsHasBeenSet; }
41 inline void SetMaxProtectionGroups(long long value) {
42 m_maxProtectionGroupsHasBeenSet = true;
43 m_maxProtectionGroups = value;
44 }
47 return *this;
48 }
50
52
56 inline const ProtectionGroupPatternTypeLimits& GetPatternTypeLimits() const { return m_patternTypeLimits; }
57 inline bool PatternTypeLimitsHasBeenSet() const { return m_patternTypeLimitsHasBeenSet; }
58 template <typename PatternTypeLimitsT = ProtectionGroupPatternTypeLimits>
59 void SetPatternTypeLimits(PatternTypeLimitsT&& value) {
60 m_patternTypeLimitsHasBeenSet = true;
61 m_patternTypeLimits = std::forward<PatternTypeLimitsT>(value);
62 }
63 template <typename PatternTypeLimitsT = ProtectionGroupPatternTypeLimits>
64 ProtectionGroupLimits& WithPatternTypeLimits(PatternTypeLimitsT&& value) {
65 SetPatternTypeLimits(std::forward<PatternTypeLimitsT>(value));
66 return *this;
67 }
69 private:
70 long long m_maxProtectionGroups{0};
71
72 ProtectionGroupPatternTypeLimits m_patternTypeLimits;
73 bool m_maxProtectionGroupsHasBeenSet = false;
74 bool m_patternTypeLimitsHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Shield
79} // namespace Aws
AWS_SHIELD_API ProtectionGroupLimits()=default
AWS_SHIELD_API ProtectionGroupLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPatternTypeLimits(PatternTypeLimitsT &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SHIELD_API ProtectionGroupLimits(Aws::Utils::Json::JsonView jsonValue)
const ProtectionGroupPatternTypeLimits & GetPatternTypeLimits() const
ProtectionGroupLimits & WithMaxProtectionGroups(long long value)
ProtectionGroupLimits & WithPatternTypeLimits(PatternTypeLimitsT &&value)
Aws::Utils::Json::JsonValue JsonValue