AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociationConfig.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/wafv2/model/AssociatedResourceType.h>
10#include <aws/wafv2/model/RequestBodyAssociatedResourceTypeConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
43 {
44 public:
45 AWS_WAFV2_API AssociationConfig();
48 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
65 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
66 inline void SetRequestBody(const Aws::Map<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
67 inline void SetRequestBody(Aws::Map<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); }
70 inline AssociationConfig& AddRequestBody(const AssociatedResourceType& key, const RequestBodyAssociatedResourceTypeConfig& value) { m_requestBodyHasBeenSet = true; m_requestBody.emplace(key, value); return *this; }
71 inline AssociationConfig& AddRequestBody(AssociatedResourceType&& key, const RequestBodyAssociatedResourceTypeConfig& value) { m_requestBodyHasBeenSet = true; m_requestBody.emplace(std::move(key), value); return *this; }
72 inline AssociationConfig& AddRequestBody(const AssociatedResourceType& key, RequestBodyAssociatedResourceTypeConfig&& value) { m_requestBodyHasBeenSet = true; m_requestBody.emplace(key, std::move(value)); return *this; }
73 inline AssociationConfig& AddRequestBody(AssociatedResourceType&& key, RequestBodyAssociatedResourceTypeConfig&& value) { m_requestBodyHasBeenSet = true; m_requestBody.emplace(std::move(key), std::move(value)); return *this; }
75 private:
76
78 bool m_requestBodyHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace WAFV2
83} // namespace Aws
AssociationConfig & AddRequestBody(const AssociatedResourceType &key, RequestBodyAssociatedResourceTypeConfig &&value)
AssociationConfig & AddRequestBody(AssociatedResourceType &&key, const RequestBodyAssociatedResourceTypeConfig &value)
void SetRequestBody(const Aws::Map< AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig > &value)
AssociationConfig & WithRequestBody(Aws::Map< AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig > &&value)
const Aws::Map< AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig > & GetRequestBody() const
AWS_WAFV2_API AssociationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociationConfig & WithRequestBody(const Aws::Map< AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig > &value)
AssociationConfig & AddRequestBody(const AssociatedResourceType &key, const RequestBodyAssociatedResourceTypeConfig &value)
AssociationConfig & AddRequestBody(AssociatedResourceType &&key, RequestBodyAssociatedResourceTypeConfig &&value)
AWS_WAFV2_API AssociationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRequestBody(Aws::Map< AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue