AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline CreateAllowListRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline CreateAllowListRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateAllowListRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
60 inline const AllowListCriteria& GetCriteria() const{ return m_criteria; }
61 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
62 inline void SetCriteria(const AllowListCriteria& value) { m_criteriaHasBeenSet = true; m_criteria = value; }
63 inline void SetCriteria(AllowListCriteria&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); }
64 inline CreateAllowListRequest& WithCriteria(const AllowListCriteria& value) { SetCriteria(value); return *this;}
65 inline CreateAllowListRequest& WithCriteria(AllowListCriteria&& value) { SetCriteria(std::move(value)); return *this;}
67
69
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreateAllowListRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline CreateAllowListRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline CreateAllowListRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline CreateAllowListRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline CreateAllowListRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline CreateAllowListRequest& WithName(const char* value) { SetName(value); return *this;}
97
99
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline CreateAllowListRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
110 inline CreateAllowListRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreateAllowListRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 inline CreateAllowListRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline CreateAllowListRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline CreateAllowListRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
115 inline CreateAllowListRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline CreateAllowListRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline CreateAllowListRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119 private:
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123
124 AllowListCriteria m_criteria;
125 bool m_criteriaHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Macie2
139} // namespace Aws
CreateAllowListRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAllowListRequest & AddTags(const char *key, Aws::String &&value)
CreateAllowListRequest & WithDescription(const char *value)
CreateAllowListRequest & WithName(const char *value)
CreateAllowListRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAllowListRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAllowListRequest & WithDescription(const Aws::String &value)
AWS_MACIE2_API Aws::String SerializePayload() const override
CreateAllowListRequest & WithName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateAllowListRequest & WithDescription(Aws::String &&value)
const AllowListCriteria & GetCriteria() const
CreateAllowListRequest & AddTags(const char *key, const char *value)
CreateAllowListRequest & AddTags(Aws::String &&key, const char *value)
CreateAllowListRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAllowListRequest & WithClientToken(Aws::String &&value)
CreateAllowListRequest & WithCriteria(const AllowListCriteria &value)
CreateAllowListRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAllowListRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetCriteria(const AllowListCriteria &value)
CreateAllowListRequest & WithClientToken(const char *value)
CreateAllowListRequest & WithName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAllowListRequest & WithClientToken(const Aws::String &value)
CreateAllowListRequest & WithCriteria(AllowListCriteria &&value)
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