AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateArchiveRuleRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/Criterion.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AccessAnalyzer {
18namespace Model {
19
26 public:
27 AWS_ACCESSANALYZER_API CreateArchiveRuleRequest() = 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 "CreateArchiveRule"; }
34
35 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAnalyzerName() const { return m_analyzerName; }
42 inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
43 template <typename AnalyzerNameT = Aws::String>
44 void SetAnalyzerName(AnalyzerNameT&& value) {
45 m_analyzerNameHasBeenSet = true;
46 m_analyzerName = std::forward<AnalyzerNameT>(value);
47 }
48 template <typename AnalyzerNameT = Aws::String>
50 SetAnalyzerName(std::forward<AnalyzerNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRuleName() const { return m_ruleName; }
60 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
61 template <typename RuleNameT = Aws::String>
62 void SetRuleName(RuleNameT&& value) {
63 m_ruleNameHasBeenSet = true;
64 m_ruleName = std::forward<RuleNameT>(value);
65 }
66 template <typename RuleNameT = Aws::String>
68 SetRuleName(std::forward<RuleNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const { return m_filter; }
78 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
79 template <typename FilterT = Aws::Map<Aws::String, Criterion>>
80 void SetFilter(FilterT&& value) {
81 m_filterHasBeenSet = true;
82 m_filter = std::forward<FilterT>(value);
83 }
84 template <typename FilterT = Aws::Map<Aws::String, Criterion>>
86 SetFilter(std::forward<FilterT>(value));
87 return *this;
88 }
89 template <typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
90 CreateArchiveRuleRequest& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
91 m_filterHasBeenSet = true;
92 m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetClientToken() const { return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 template <typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) {
105 m_clientTokenHasBeenSet = true;
106 m_clientToken = std::forward<ClientTokenT>(value);
107 }
108 template <typename ClientTokenT = Aws::String>
110 SetClientToken(std::forward<ClientTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_analyzerName;
116 bool m_analyzerNameHasBeenSet = false;
117
118 Aws::String m_ruleName;
119 bool m_ruleNameHasBeenSet = false;
120
122 bool m_filterHasBeenSet = false;
123
125 bool m_clientTokenHasBeenSet = true;
126};
127
128} // namespace Model
129} // namespace AccessAnalyzer
130} // namespace Aws
CreateArchiveRuleRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
CreateArchiveRuleRequest & AddFilter(FilterKeyT &&key, FilterValueT &&value)
AWS_ACCESSANALYZER_API CreateArchiveRuleRequest()=default
CreateArchiveRuleRequest & WithAnalyzerName(AnalyzerNameT &&value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
CreateArchiveRuleRequest & WithRuleName(RuleNameT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateArchiveRuleRequest & WithClientToken(ClientTokenT &&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