AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
ApplicationConfig.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/ApplicationAttribute.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
30 public:
31 AWS_WAFV2_API ApplicationConfig() = default;
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ApplicationAttribute>& GetAttributes() const { return m_attributes; }
41 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
42 template <typename AttributesT = Aws::Vector<ApplicationAttribute>>
43 void SetAttributes(AttributesT&& value) {
44 m_attributesHasBeenSet = true;
45 m_attributes = std::forward<AttributesT>(value);
46 }
47 template <typename AttributesT = Aws::Vector<ApplicationAttribute>>
48 ApplicationConfig& WithAttributes(AttributesT&& value) {
49 SetAttributes(std::forward<AttributesT>(value));
50 return *this;
51 }
52 template <typename AttributesT = ApplicationAttribute>
53 ApplicationConfig& AddAttributes(AttributesT&& value) {
54 m_attributesHasBeenSet = true;
55 m_attributes.emplace_back(std::forward<AttributesT>(value));
56 return *this;
57 }
59 private:
61 bool m_attributesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace WAFV2
66} // 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