AWS SDK for C++  1.9.2
AWS SDK for C++
GetArchiveRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AccessAnalyzer
15 {
16 namespace Model
17 {
18 
25  {
26  public:
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 "GetArchiveRule"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
42 
46  inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
47 
51  inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
52 
56  inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
57 
61  inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
62 
66  inline GetArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
67 
71  inline GetArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
72 
76  inline GetArchiveRuleRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
77 
78 
82  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
83 
87  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
88 
92  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
93 
97  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
98 
102  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
103 
107  inline GetArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
108 
112  inline GetArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
113 
117  inline GetArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
118 
119  private:
120 
121  Aws::String m_analyzerName;
122  bool m_analyzerNameHasBeenSet;
123 
124  Aws::String m_ruleName;
125  bool m_ruleNameHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace AccessAnalyzer
130 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::WithRuleName
GetArchiveRuleRequest & WithRuleName(Aws::String &&value)
Definition: GetArchiveRuleRequest.h:112
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::WithAnalyzerName
GetArchiveRuleRequest & WithAnalyzerName(const char *value)
Definition: GetArchiveRuleRequest.h:76
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::WithAnalyzerName
GetArchiveRuleRequest & WithAnalyzerName(Aws::String &&value)
Definition: GetArchiveRuleRequest.h:71
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: GetArchiveRuleRequest.h:92
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::GetAnalyzerName
const Aws::String & GetAnalyzerName() const
Definition: GetArchiveRuleRequest.h:41
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::WithAnalyzerName
GetArchiveRuleRequest & WithAnalyzerName(const Aws::String &value)
Definition: GetArchiveRuleRequest.h:66
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: GetArchiveRuleRequest.h:82
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::AnalyzerNameHasBeenSet
bool AnalyzerNameHasBeenSet() const
Definition: GetArchiveRuleRequest.h:46
AWSString.h
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: GetArchiveRuleRequest.h:102
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: GetArchiveRuleRequest.h:87
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SetAnalyzerName
void SetAnalyzerName(const char *value)
Definition: GetArchiveRuleRequest.h:61
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SetAnalyzerName
void SetAnalyzerName(Aws::String &&value)
Definition: GetArchiveRuleRequest.h:56
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest
Definition: GetArchiveRuleRequest.h:25
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::WithRuleName
GetArchiveRuleRequest & WithRuleName(const Aws::String &value)
Definition: GetArchiveRuleRequest.h:107
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: GetArchiveRuleRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::SetAnalyzerName
void SetAnalyzerName(const Aws::String &value)
Definition: GetArchiveRuleRequest.h:51
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetArchiveRuleRequest.h:33
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::WithRuleName
GetArchiveRuleRequest & WithRuleName(const char *value)
Definition: GetArchiveRuleRequest.h:117
Aws::AccessAnalyzer::Model::GetArchiveRuleRequest::GetArchiveRuleRequest
GetArchiveRuleRequest()