AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ApplyArchiveRuleRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AccessAnalyzer {
16namespace Model {
17
24 public:
25 AWS_ACCESSANALYZER_API ApplyArchiveRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ApplyArchiveRule"; }
32
33 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAnalyzerArn() const { return m_analyzerArn; }
40 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
41 template <typename AnalyzerArnT = Aws::String>
42 void SetAnalyzerArn(AnalyzerArnT&& value) {
43 m_analyzerArnHasBeenSet = true;
44 m_analyzerArn = std::forward<AnalyzerArnT>(value);
45 }
46 template <typename AnalyzerArnT = Aws::String>
48 SetAnalyzerArn(std::forward<AnalyzerArnT>(value));
49 return *this;
50 }
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) {
61 m_ruleNameHasBeenSet = true;
62 m_ruleName = std::forward<RuleNameT>(value);
63 }
64 template <typename RuleNameT = Aws::String>
66 SetRuleName(std::forward<RuleNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetClientToken() const { return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 template <typename ClientTokenT = Aws::String>
78 void SetClientToken(ClientTokenT&& value) {
79 m_clientTokenHasBeenSet = true;
80 m_clientToken = std::forward<ClientTokenT>(value);
81 }
82 template <typename ClientTokenT = Aws::String>
84 SetClientToken(std::forward<ClientTokenT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_analyzerArn;
90
91 Aws::String m_ruleName;
92
94 bool m_analyzerArnHasBeenSet = false;
95 bool m_ruleNameHasBeenSet = false;
96 bool m_clientTokenHasBeenSet = true;
97};
98
99} // namespace Model
100} // namespace AccessAnalyzer
101} // 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