AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceCriteria.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/AlbConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkSecurityManager {
22namespace Model {
23
31 public:
32 AWS_NETWORKSECURITYMANAGER_API ResourceCriteria() = default;
33 AWS_NETWORKSECURITYMANAGER_API ResourceCriteria(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API ResourceCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
42 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
43 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
44 void SetTags(TagsT&& value) {
45 m_tagsHasBeenSet = true;
46 m_tags = std::forward<TagsT>(value);
47 }
48 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
49 ResourceCriteria& WithTags(TagsT&& value) {
50 SetTags(std::forward<TagsT>(value));
51 return *this;
52 }
53 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
54 ResourceCriteria& AddTags(TagsKeyT&& key, TagsValueT&& value) {
55 m_tagsHasBeenSet = true;
56 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
57 return *this;
58 }
60
62
65 inline const AlbConfiguration& GetAlbConfig() const { return m_albConfig; }
66 inline bool AlbConfigHasBeenSet() const { return m_albConfigHasBeenSet; }
67 template <typename AlbConfigT = AlbConfiguration>
68 void SetAlbConfig(AlbConfigT&& value) {
69 m_albConfigHasBeenSet = true;
70 m_albConfig = std::forward<AlbConfigT>(value);
71 }
72 template <typename AlbConfigT = AlbConfiguration>
73 ResourceCriteria& WithAlbConfig(AlbConfigT&& value) {
74 SetAlbConfig(std::forward<AlbConfigT>(value));
75 return *this;
76 }
78 private:
80
81 AlbConfiguration m_albConfig;
82 bool m_tagsHasBeenSet = false;
83 bool m_albConfigHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace NetworkSecurityManager
88} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API ResourceCriteria(Aws::Utils::Json::JsonView jsonValue)
ResourceCriteria & WithAlbConfig(AlbConfigT &&value)
AWS_NETWORKSECURITYMANAGER_API ResourceCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceCriteria & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API ResourceCriteria()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue