AWS SDK for C++  1.9.2
AWS SDK for C++
ApplyArchiveRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace AccessAnalyzer
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ApplyArchiveRule"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
43 
47  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
48 
52  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
53 
57  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
58 
62  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
63 
67  inline ApplyArchiveRuleRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
68 
72  inline ApplyArchiveRuleRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
73 
77  inline ApplyArchiveRuleRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
78 
79 
83  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
84 
88  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 
93  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
94 
98  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
99 
103  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
104 
108  inline ApplyArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
109 
113  inline ApplyArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
114 
118  inline ApplyArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
119 
120 
124  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
125 
129  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
130 
134  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
135 
139  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
140 
144  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
145 
149  inline ApplyArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
150 
154  inline ApplyArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
155 
159  inline ApplyArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
160 
161  private:
162 
163  Aws::String m_analyzerArn;
164  bool m_analyzerArnHasBeenSet;
165 
166  Aws::String m_clientToken;
167  bool m_clientTokenHasBeenSet;
168 
169  Aws::String m_ruleName;
170  bool m_ruleNameHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace AccessAnalyzer
175 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: ApplyArchiveRuleRequest.h:47
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithClientToken
ApplyArchiveRuleRequest & WithClientToken(const char *value)
Definition: ApplyArchiveRuleRequest.h:118
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest
Definition: ApplyArchiveRuleRequest.h:26
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: ApplyArchiveRuleRequest.h:139
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: ApplyArchiveRuleRequest.h:88
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: ApplyArchiveRuleRequest.h:93
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: ApplyArchiveRuleRequest.h:98
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: ApplyArchiveRuleRequest.h:52
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: ApplyArchiveRuleRequest.h:42
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithAnalyzerArn
ApplyArchiveRuleRequest & WithAnalyzerArn(const char *value)
Definition: ApplyArchiveRuleRequest.h:77
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: ApplyArchiveRuleRequest.h:124
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithRuleName
ApplyArchiveRuleRequest & WithRuleName(const Aws::String &value)
Definition: ApplyArchiveRuleRequest.h:149
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithRuleName
ApplyArchiveRuleRequest & WithRuleName(Aws::String &&value)
Definition: ApplyArchiveRuleRequest.h:154
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: ApplyArchiveRuleRequest.h:57
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetClientToken
void SetClientToken(const char *value)
Definition: ApplyArchiveRuleRequest.h:103
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: ApplyArchiveRuleRequest.h:144
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ApplyArchiveRuleRequest.h:34
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: ApplyArchiveRuleRequest.h:62
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: ApplyArchiveRuleRequest.h:129
AWSString.h
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::ApplyArchiveRuleRequest
ApplyArchiveRuleRequest()
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithClientToken
ApplyArchiveRuleRequest & WithClientToken(const Aws::String &value)
Definition: ApplyArchiveRuleRequest.h:108
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithAnalyzerArn
ApplyArchiveRuleRequest & WithAnalyzerArn(Aws::String &&value)
Definition: ApplyArchiveRuleRequest.h:72
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: ApplyArchiveRuleRequest.h:83
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithRuleName
ApplyArchiveRuleRequest & WithRuleName(const char *value)
Definition: ApplyArchiveRuleRequest.h:159
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SerializePayload
Aws::String SerializePayload() const override
UUID.h
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: ApplyArchiveRuleRequest.h:134
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithClientToken
ApplyArchiveRuleRequest & WithClientToken(Aws::String &&value)
Definition: ApplyArchiveRuleRequest.h:113
Aws::AccessAnalyzer::Model::ApplyArchiveRuleRequest::WithAnalyzerArn
ApplyArchiveRuleRequest & WithAnalyzerArn(const Aws::String &value)
Definition: ApplyArchiveRuleRequest.h:67