AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
DataProtectionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/DataProtection.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
36 public:
37 AWS_WAFV2_API DataProtectionConfig() = default;
40 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline const Aws::Vector<DataProtection>& GetDataProtections() const { return m_dataProtections; }
49 inline bool DataProtectionsHasBeenSet() const { return m_dataProtectionsHasBeenSet; }
50 template <typename DataProtectionsT = Aws::Vector<DataProtection>>
51 void SetDataProtections(DataProtectionsT&& value) {
52 m_dataProtectionsHasBeenSet = true;
53 m_dataProtections = std::forward<DataProtectionsT>(value);
54 }
55 template <typename DataProtectionsT = Aws::Vector<DataProtection>>
56 DataProtectionConfig& WithDataProtections(DataProtectionsT&& value) {
57 SetDataProtections(std::forward<DataProtectionsT>(value));
58 return *this;
59 }
60 template <typename DataProtectionsT = DataProtection>
61 DataProtectionConfig& AddDataProtections(DataProtectionsT&& value) {
62 m_dataProtectionsHasBeenSet = true;
63 m_dataProtections.emplace_back(std::forward<DataProtectionsT>(value));
64 return *this;
65 }
67 private:
68 Aws::Vector<DataProtection> m_dataProtections;
69 bool m_dataProtectionsHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace WAFV2
74} // namespace Aws
AWS_WAFV2_API DataProtectionConfig()=default
AWS_WAFV2_API DataProtectionConfig(Aws::Utils::Json::JsonView jsonValue)
void SetDataProtections(DataProtectionsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API DataProtectionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DataProtection > & GetDataProtections() const
DataProtectionConfig & WithDataProtections(DataProtectionsT &&value)
DataProtectionConfig & AddDataProtections(DataProtectionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue