AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateArchiveRuleRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/accessanalyzer/model/Criterion.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace AccessAnalyzer
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_ACCESSANALYZER_API CreateArchiveRuleRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateArchiveRule"; }
37
38 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
46 inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
47 inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
48 inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
49 inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
50 inline CreateArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
51 inline CreateArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
52 inline CreateArchiveRuleRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
54
56
59 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
60 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
61 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
62 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
63 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
64 inline CreateArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
65 inline CreateArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
66 inline CreateArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
68
70
73 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
74 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
75 inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
76 inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
78 inline CreateArchiveRuleRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
79 inline CreateArchiveRuleRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
80 inline CreateArchiveRuleRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
81 inline CreateArchiveRuleRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
82 inline CreateArchiveRuleRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
83 inline CreateArchiveRuleRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
84 inline CreateArchiveRuleRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
86
88
91 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
94 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
95 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
96 inline CreateArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
97 inline CreateArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
98 inline CreateArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
100 private:
101
102 Aws::String m_analyzerName;
103 bool m_analyzerNameHasBeenSet = false;
104
105 Aws::String m_ruleName;
106 bool m_ruleNameHasBeenSet = false;
107
109 bool m_filterHasBeenSet = false;
110
111 Aws::String m_clientToken;
112 bool m_clientTokenHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AccessAnalyzer
117} // namespace Aws
CreateArchiveRuleRequest & AddFilter(const Aws::String &key, Criterion &&value)
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
virtual const char * GetServiceRequestName() const override
CreateArchiveRuleRequest & AddFilter(const char *key, const Criterion &value)
CreateArchiveRuleRequest & WithClientToken(const char *value)
CreateArchiveRuleRequest & WithRuleName(const Aws::String &value)
CreateArchiveRuleRequest & WithRuleName(Aws::String &&value)
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
CreateArchiveRuleRequest & WithAnalyzerName(const Aws::String &value)
CreateArchiveRuleRequest & AddFilter(const Aws::String &key, const Criterion &value)
CreateArchiveRuleRequest & WithClientToken(const Aws::String &value)
CreateArchiveRuleRequest & WithRuleName(const char *value)
CreateArchiveRuleRequest & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateArchiveRuleRequest & AddFilter(Aws::String &&key, Criterion &&value)
CreateArchiveRuleRequest & WithAnalyzerName(Aws::String &&value)
CreateArchiveRuleRequest & WithClientToken(Aws::String &&value)
CreateArchiveRuleRequest & AddFilter(Aws::String &&key, const Criterion &value)
CreateArchiveRuleRequest & WithAnalyzerName(const char *value)
CreateArchiveRuleRequest & AddFilter(const char *key, Criterion &&value)
CreateArchiveRuleRequest & WithFilter(Aws::Map< Aws::String, Criterion > &&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