AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SubscriptionLimits.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/ProtectionGroupLimits.h>
9#include <aws/shield/model/ProtectionLimits.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Shield {
21namespace Model {
22
29 public:
30 AWS_SHIELD_API SubscriptionLimits() = default;
33 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const ProtectionLimits& GetProtectionLimits() const { return m_protectionLimits; }
40 inline bool ProtectionLimitsHasBeenSet() const { return m_protectionLimitsHasBeenSet; }
41 template <typename ProtectionLimitsT = ProtectionLimits>
42 void SetProtectionLimits(ProtectionLimitsT&& value) {
43 m_protectionLimitsHasBeenSet = true;
44 m_protectionLimits = std::forward<ProtectionLimitsT>(value);
45 }
46 template <typename ProtectionLimitsT = ProtectionLimits>
47 SubscriptionLimits& WithProtectionLimits(ProtectionLimitsT&& value) {
48 SetProtectionLimits(std::forward<ProtectionLimitsT>(value));
49 return *this;
50 }
52
54
57 inline const ProtectionGroupLimits& GetProtectionGroupLimits() const { return m_protectionGroupLimits; }
58 inline bool ProtectionGroupLimitsHasBeenSet() const { return m_protectionGroupLimitsHasBeenSet; }
59 template <typename ProtectionGroupLimitsT = ProtectionGroupLimits>
60 void SetProtectionGroupLimits(ProtectionGroupLimitsT&& value) {
61 m_protectionGroupLimitsHasBeenSet = true;
62 m_protectionGroupLimits = std::forward<ProtectionGroupLimitsT>(value);
63 }
64 template <typename ProtectionGroupLimitsT = ProtectionGroupLimits>
65 SubscriptionLimits& WithProtectionGroupLimits(ProtectionGroupLimitsT&& value) {
66 SetProtectionGroupLimits(std::forward<ProtectionGroupLimitsT>(value));
67 return *this;
68 }
70 private:
71 ProtectionLimits m_protectionLimits;
72
73 ProtectionGroupLimits m_protectionGroupLimits;
74 bool m_protectionLimitsHasBeenSet = false;
75 bool m_protectionGroupLimitsHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Shield
80} // namespace Aws
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
const ProtectionGroupLimits & GetProtectionGroupLimits() const
void SetProtectionGroupLimits(ProtectionGroupLimitsT &&value)
AWS_SHIELD_API SubscriptionLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionLimits & WithProtectionGroupLimits(ProtectionGroupLimitsT &&value)
SubscriptionLimits & WithProtectionLimits(ProtectionLimitsT &&value)
void SetProtectionLimits(ProtectionLimitsT &&value)
const ProtectionLimits & GetProtectionLimits() const
AWS_SHIELD_API SubscriptionLimits(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API SubscriptionLimits()=default
Aws::Utils::Json::JsonValue JsonValue