AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApplicationConfig.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/ApplicationAttribute.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
34 {
35 public:
36 AWS_WAFV2_API ApplicationConfig() = default;
39 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ApplicationAttribute>& GetAttributes() const { return m_attributes; }
47 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
48 template<typename AttributesT = Aws::Vector<ApplicationAttribute>>
49 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
50 template<typename AttributesT = Aws::Vector<ApplicationAttribute>>
51 ApplicationConfig& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
52 template<typename AttributesT = ApplicationAttribute>
53 ApplicationConfig& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
55 private:
56
58 bool m_attributesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace WAFV2
63} // namespace Aws
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(AttributesT &&value)
const Aws::Vector< ApplicationAttribute > & GetAttributes() const
AWS_WAFV2_API ApplicationConfig()=default
AWS_WAFV2_API ApplicationConfig(Aws::Utils::Json::JsonView jsonValue)
ApplicationConfig & AddAttributes(AttributesT &&value)
ApplicationConfig & WithAttributes(AttributesT &&value)
AWS_WAFV2_API ApplicationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue