AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataProtectionConfig.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/model/DataProtection.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 WAFV2
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_WAFV2_API DataProtectionConfig() = default;
45 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::Vector<DataProtection>& GetDataProtections() const { return m_dataProtections; }
55 inline bool DataProtectionsHasBeenSet() const { return m_dataProtectionsHasBeenSet; }
56 template<typename DataProtectionsT = Aws::Vector<DataProtection>>
57 void SetDataProtections(DataProtectionsT&& value) { m_dataProtectionsHasBeenSet = true; m_dataProtections = std::forward<DataProtectionsT>(value); }
58 template<typename DataProtectionsT = Aws::Vector<DataProtection>>
59 DataProtectionConfig& WithDataProtections(DataProtectionsT&& value) { SetDataProtections(std::forward<DataProtectionsT>(value)); return *this;}
60 template<typename DataProtectionsT = DataProtection>
61 DataProtectionConfig& AddDataProtections(DataProtectionsT&& value) { m_dataProtectionsHasBeenSet = true; m_dataProtections.emplace_back(std::forward<DataProtectionsT>(value)); return *this; }
63 private:
64
65 Aws::Vector<DataProtection> m_dataProtections;
66 bool m_dataProtectionsHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace WAFV2
71} // 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