AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAllowListRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/macie2/model/AllowListCriteria.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Macie2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MACIE2_API CreateAllowListRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAllowList"; }
34
35 AWS_MACIE2_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template<typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
47 template<typename ClientTokenT = Aws::String>
48 CreateAllowListRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
50
52
58 inline const AllowListCriteria& GetCriteria() const { return m_criteria; }
59 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
60 template<typename CriteriaT = AllowListCriteria>
61 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
62 template<typename CriteriaT = AllowListCriteria>
63 CreateAllowListRequest& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
65
67
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 CreateAllowListRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 CreateAllowListRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 CreateAllowListRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateAllowListRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
108 }
110 private:
111
113 bool m_clientTokenHasBeenSet = true;
114
115 AllowListCriteria m_criteria;
116 bool m_criteriaHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Macie2
130} // namespace Aws
CreateAllowListRequest & WithCriteria(CriteriaT &&value)
CreateAllowListRequest & WithClientToken(ClientTokenT &&value)
AWS_MACIE2_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
AWS_MACIE2_API CreateAllowListRequest()=default
CreateAllowListRequest & WithTags(TagsT &&value)
const AllowListCriteria & GetCriteria() const
CreateAllowListRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAllowListRequest & WithDescription(DescriptionT &&value)
CreateAllowListRequest & WithName(NameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String