AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename CriteriaT = AllowListCriteria>
48 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
49 template<typename CriteriaT = AllowListCriteria>
50 UpdateAllowListRequest& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 UpdateAllowListRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
71 inline const Aws::String& GetId() const { return m_id; }
72 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
73 template<typename IdT = Aws::String>
74 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
75 template<typename IdT = Aws::String>
76 UpdateAllowListRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(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 UpdateAllowListRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91 private:
92
93 AllowListCriteria m_criteria;
94 bool m_criteriaHasBeenSet = false;
95
96 Aws::String m_description;
97 bool m_descriptionHasBeenSet = false;
98
99 Aws::String m_id;
100 bool m_idHasBeenSet = false;
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Macie2
108} // namespace Aws
AWS_MACIE2_API Aws::String SerializePayload() const override
UpdateAllowListRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAllowListRequest & WithCriteria(CriteriaT &&value)
const AllowListCriteria & GetCriteria() const
UpdateAllowListRequest & WithId(IdT &&value)
UpdateAllowListRequest & WithDescription(DescriptionT &&value)
AWS_MACIE2_API UpdateAllowListRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String