AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AnalyzerNameT = Aws::String>
48 void SetAnalyzerName(AnalyzerNameT&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::forward<AnalyzerNameT>(value); }
49 template<typename AnalyzerNameT = Aws::String>
50 CreateArchiveRuleRequest& WithAnalyzerName(AnalyzerNameT&& value) { SetAnalyzerName(std::forward<AnalyzerNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetRuleName() const { return m_ruleName; }
58 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
59 template<typename RuleNameT = Aws::String>
60 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
61 template<typename RuleNameT = Aws::String>
62 CreateArchiveRuleRequest& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
64
66
69 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const { return m_filter; }
70 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
71 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
72 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
73 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
74 CreateArchiveRuleRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
75 template<typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
76 CreateArchiveRuleRequest& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
77 m_filterHasBeenSet = true; m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value)); return *this;
78 }
80
82
85 inline const Aws::String& GetClientToken() const { return m_clientToken; }
86 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
87 template<typename ClientTokenT = Aws::String>
88 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
89 template<typename ClientTokenT = Aws::String>
90 CreateArchiveRuleRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
92 private:
93
94 Aws::String m_analyzerName;
95 bool m_analyzerNameHasBeenSet = false;
96
97 Aws::String m_ruleName;
98 bool m_ruleNameHasBeenSet = false;
99
101 bool m_filterHasBeenSet = false;
102
104 bool m_clientTokenHasBeenSet = true;
105 };
106
107} // namespace Model
108} // namespace AccessAnalyzer
109} // 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