AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateArchiveRuleRequest.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 UpdateArchiveRuleRequest();
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 "UpdateArchiveRule"; }
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 UpdateArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
51 inline UpdateArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
52 inline UpdateArchiveRuleRequest& 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 UpdateArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
65 inline UpdateArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
66 inline UpdateArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
68
70
74 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
75 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
76 inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
77 inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
79 inline UpdateArchiveRuleRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
80 inline UpdateArchiveRuleRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
81 inline UpdateArchiveRuleRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
82 inline UpdateArchiveRuleRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
83 inline UpdateArchiveRuleRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
84 inline UpdateArchiveRuleRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
85 inline UpdateArchiveRuleRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
87
89
92 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
93 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
94 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
95 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
96 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
97 inline UpdateArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
98 inline UpdateArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
99 inline UpdateArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
101 private:
102
103 Aws::String m_analyzerName;
104 bool m_analyzerNameHasBeenSet = false;
105
106 Aws::String m_ruleName;
107 bool m_ruleNameHasBeenSet = false;
108
110 bool m_filterHasBeenSet = false;
111
112 Aws::String m_clientToken;
113 bool m_clientTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace AccessAnalyzer
118} // namespace Aws
UpdateArchiveRuleRequest & WithClientToken(Aws::String &&value)
UpdateArchiveRuleRequest & WithRuleName(const char *value)
UpdateArchiveRuleRequest & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
UpdateArchiveRuleRequest & WithAnalyzerName(const char *value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
UpdateArchiveRuleRequest & WithClientToken(const char *value)
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
UpdateArchiveRuleRequest & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
virtual const char * GetServiceRequestName() const override
UpdateArchiveRuleRequest & WithAnalyzerName(Aws::String &&value)
UpdateArchiveRuleRequest & WithAnalyzerName(const Aws::String &value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
UpdateArchiveRuleRequest & AddFilter(const char *key, Criterion &&value)
UpdateArchiveRuleRequest & WithRuleName(Aws::String &&value)
UpdateArchiveRuleRequest & WithClientToken(const Aws::String &value)
UpdateArchiveRuleRequest & AddFilter(const char *key, const Criterion &value)
UpdateArchiveRuleRequest & WithRuleName(const Aws::String &value)
UpdateArchiveRuleRequest & AddFilter(const Aws::String &key, Criterion &&value)
UpdateArchiveRuleRequest & AddFilter(const Aws::String &key, const Criterion &value)
UpdateArchiveRuleRequest & AddFilter(Aws::String &&key, Criterion &&value)
UpdateArchiveRuleRequest & AddFilter(Aws::String &&key, const 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