AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ApplyArchiveRuleRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace AccessAnalyzer
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_ACCESSANALYZER_API ApplyArchiveRuleRequest() = default;
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_ACCESSANALYZER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAnalyzerArn() const { return m_analyzerArn; }
44 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
45 template<typename AnalyzerArnT = Aws::String>
46 void SetAnalyzerArn(AnalyzerArnT&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::forward<AnalyzerArnT>(value); }
47 template<typename AnalyzerArnT = Aws::String>
48 ApplyArchiveRuleRequest& WithAnalyzerArn(AnalyzerArnT&& value) { SetAnalyzerArn(std::forward<AnalyzerArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetRuleName() const { return m_ruleName; }
56 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
57 template<typename RuleNameT = Aws::String>
58 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
59 template<typename RuleNameT = Aws::String>
60 ApplyArchiveRuleRequest& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetClientToken() const { return m_clientToken; }
68 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 template<typename ClientTokenT = Aws::String>
70 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
71 template<typename ClientTokenT = Aws::String>
72 ApplyArchiveRuleRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
74 private:
75
76 Aws::String m_analyzerArn;
77 bool m_analyzerArnHasBeenSet = false;
78
79 Aws::String m_ruleName;
80 bool m_ruleNameHasBeenSet = false;
81
83 bool m_clientTokenHasBeenSet = true;
84 };
85
86} // namespace Model
87} // namespace AccessAnalyzer
88} // namespace Aws
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ApplyArchiveRuleRequest & WithRuleName(RuleNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ACCESSANALYZER_API ApplyArchiveRuleRequest()=default
ApplyArchiveRuleRequest & WithClientToken(ClientTokenT &&value)
ApplyArchiveRuleRequest & WithAnalyzerArn(AnalyzerArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String