AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ProtectionLimits.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/shield/model/Limit.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Shield
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SHIELD_API ProtectionLimits() = default;
39 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Limit>& GetProtectedResourceTypeLimits() const { return m_protectedResourceTypeLimits; }
48 inline bool ProtectedResourceTypeLimitsHasBeenSet() const { return m_protectedResourceTypeLimitsHasBeenSet; }
49 template<typename ProtectedResourceTypeLimitsT = Aws::Vector<Limit>>
50 void SetProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT&& value) { m_protectedResourceTypeLimitsHasBeenSet = true; m_protectedResourceTypeLimits = std::forward<ProtectedResourceTypeLimitsT>(value); }
51 template<typename ProtectedResourceTypeLimitsT = Aws::Vector<Limit>>
52 ProtectionLimits& WithProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT&& value) { SetProtectedResourceTypeLimits(std::forward<ProtectedResourceTypeLimitsT>(value)); return *this;}
53 template<typename ProtectedResourceTypeLimitsT = Limit>
54 ProtectionLimits& AddProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT&& value) { m_protectedResourceTypeLimitsHasBeenSet = true; m_protectedResourceTypeLimits.emplace_back(std::forward<ProtectedResourceTypeLimitsT>(value)); return *this; }
56 private:
57
58 Aws::Vector<Limit> m_protectedResourceTypeLimits;
59 bool m_protectedResourceTypeLimitsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace Shield
64} // namespace Aws
const Aws::Vector< Limit > & GetProtectedResourceTypeLimits() const
AWS_SHIELD_API ProtectionLimits()=default
AWS_SHIELD_API ProtectionLimits(Aws::Utils::Json::JsonView jsonValue)
void SetProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT &&value)
AWS_SHIELD_API ProtectionLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
ProtectionLimits & AddProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT &&value)
ProtectionLimits & WithProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue