AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProtectedResourceTypeLimits(const Aws::Vector<Limit>& value) { m_protectedResourceTypeLimitsHasBeenSet = true; m_protectedResourceTypeLimits = value; }
50 inline void SetProtectedResourceTypeLimits(Aws::Vector<Limit>&& value) { m_protectedResourceTypeLimitsHasBeenSet = true; m_protectedResourceTypeLimits = std::move(value); }
53 inline ProtectionLimits& AddProtectedResourceTypeLimits(const Limit& value) { m_protectedResourceTypeLimitsHasBeenSet = true; m_protectedResourceTypeLimits.push_back(value); return *this; }
54 inline ProtectionLimits& AddProtectedResourceTypeLimits(Limit&& value) { m_protectedResourceTypeLimitsHasBeenSet = true; m_protectedResourceTypeLimits.push_back(std::move(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
void SetProtectedResourceTypeLimits(const Aws::Vector< Limit > &value)
ProtectionLimits & AddProtectedResourceTypeLimits(Limit &&value)
ProtectionLimits & AddProtectedResourceTypeLimits(const Limit &value)
ProtectionLimits & WithProtectedResourceTypeLimits(Aws::Vector< Limit > &&value)
AWS_SHIELD_API ProtectionLimits(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API ProtectionLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtectedResourceTypeLimits(Aws::Vector< Limit > &&value)
ProtectionLimits & WithProtectedResourceTypeLimits(const Aws::Vector< Limit > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue