AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAllowListRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/macie2/model/AllowListCriteria.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Macie2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MACIE2_API UpdateAllowListRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAllowList"; }
32
33 AWS_MACIE2_API Aws::String SerializePayload() const override;
34
35
37
45 inline const AllowListCriteria& GetCriteria() const{ return m_criteria; }
46 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
47 inline void SetCriteria(const AllowListCriteria& value) { m_criteriaHasBeenSet = true; m_criteria = value; }
48 inline void SetCriteria(AllowListCriteria&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); }
49 inline UpdateAllowListRequest& WithCriteria(const AllowListCriteria& value) { SetCriteria(value); return *this;}
50 inline UpdateAllowListRequest& WithCriteria(AllowListCriteria&& value) { SetCriteria(std::move(value)); return *this;}
52
54
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline UpdateAllowListRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline UpdateAllowListRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline UpdateAllowListRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
73 inline const Aws::String& GetId() const{ return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
76 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
77 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
78 inline UpdateAllowListRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
79 inline UpdateAllowListRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 inline UpdateAllowListRequest& WithId(const char* value) { SetId(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 UpdateAllowListRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline UpdateAllowListRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline UpdateAllowListRequest& WithName(const char* value) { SetName(value); return *this;}
97 private:
98
99 AllowListCriteria m_criteria;
100 bool m_criteriaHasBeenSet = false;
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Macie2
114} // namespace Aws
AWS_MACIE2_API Aws::String SerializePayload() const override
UpdateAllowListRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateAllowListRequest & WithId(const char *value)
UpdateAllowListRequest & WithDescription(const Aws::String &value)
UpdateAllowListRequest & WithId(Aws::String &&value)
UpdateAllowListRequest & WithDescription(Aws::String &&value)
UpdateAllowListRequest & WithCriteria(AllowListCriteria &&value)
void SetCriteria(const AllowListCriteria &value)
const AllowListCriteria & GetCriteria() const
UpdateAllowListRequest & WithName(Aws::String &&value)
UpdateAllowListRequest & WithName(const Aws::String &value)
UpdateAllowListRequest & WithId(const Aws::String &value)
UpdateAllowListRequest & WithCriteria(const AllowListCriteria &value)
UpdateAllowListRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String