AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SubscriptionLimits.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/shield/Shield_EXPORTS.h>
9#include <aws/shield/model/ProtectionGroupLimits.h>
10#include <aws/shield/model/ProtectionLimits.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Shield {
21namespace Model {
22
29 public:
30 AWS_SHIELD_API SubscriptionLimits() = default;
31 AWS_SHIELD_API SubscriptionLimits(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SHIELD_API SubscriptionLimits& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SHIELD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 SubscriptionLimits(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const ProtectionGroupLimits & GetProtectionGroupLimits() const
void SetProtectionGroupLimits(ProtectionGroupLimitsT &&value)
AWS_SHIELD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SubscriptionLimits & WithProtectionGroupLimits(ProtectionGroupLimitsT &&value)
SubscriptionLimits & WithProtectionLimits(ProtectionLimitsT &&value)
void SetProtectionLimits(ProtectionLimitsT &&value)
const ProtectionLimits & GetProtectionLimits() const
AWS_SHIELD_API SubscriptionLimits()=default
AWS_SHIELD_API SubscriptionLimits & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)