AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ProtectionLimits.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/shield/Shield_EXPORTS.h>
9#include <aws/shield/model/Limit.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
30 public:
31 AWS_SHIELD_API ProtectionLimits() = default;
34 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Limit>& GetProtectedResourceTypeLimits() const { return m_protectedResourceTypeLimits; }
42 inline bool ProtectedResourceTypeLimitsHasBeenSet() const { return m_protectedResourceTypeLimitsHasBeenSet; }
43 template <typename ProtectedResourceTypeLimitsT = Aws::Vector<Limit>>
44 void SetProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT&& value) {
45 m_protectedResourceTypeLimitsHasBeenSet = true;
46 m_protectedResourceTypeLimits = std::forward<ProtectedResourceTypeLimitsT>(value);
47 }
48 template <typename ProtectedResourceTypeLimitsT = Aws::Vector<Limit>>
49 ProtectionLimits& WithProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT&& value) {
50 SetProtectedResourceTypeLimits(std::forward<ProtectedResourceTypeLimitsT>(value));
51 return *this;
52 }
53 template <typename ProtectedResourceTypeLimitsT = Limit>
54 ProtectionLimits& AddProtectedResourceTypeLimits(ProtectedResourceTypeLimitsT&& value) {
55 m_protectedResourceTypeLimitsHasBeenSet = true;
56 m_protectedResourceTypeLimits.emplace_back(std::forward<ProtectedResourceTypeLimitsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<Limit> m_protectedResourceTypeLimits;
62 bool m_protectedResourceTypeLimitsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Shield
67} // 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