AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
DeleteAutomationRuleRequest.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomationRequest.h>
8#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_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 ComputeOptimizerAutomation {
16namespace Model {
17
21 public:
22 AWS_COMPUTEOPTIMIZERAUTOMATION_API DeleteAutomationRuleRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteAutomationRule"; }
29
30 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::String SerializePayload() const override;
31
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
39 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
40 template <typename RuleArnT = Aws::String>
41 void SetRuleArn(RuleArnT&& value) {
42 m_ruleArnHasBeenSet = true;
43 m_ruleArn = std::forward<RuleArnT>(value);
44 }
45 template <typename RuleArnT = Aws::String>
47 SetRuleArn(std::forward<RuleArnT>(value));
48 return *this;
49 }
51
53
56 inline long long GetRuleRevision() const { return m_ruleRevision; }
57 inline bool RuleRevisionHasBeenSet() const { return m_ruleRevisionHasBeenSet; }
58 inline void SetRuleRevision(long long value) {
59 m_ruleRevisionHasBeenSet = true;
60 m_ruleRevision = value;
61 }
63 SetRuleRevision(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetClientToken() const { return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 template <typename ClientTokenT = Aws::String>
75 void SetClientToken(ClientTokenT&& value) {
76 m_clientTokenHasBeenSet = true;
77 m_clientToken = std::forward<ClientTokenT>(value);
78 }
79 template <typename ClientTokenT = Aws::String>
81 SetClientToken(std::forward<ClientTokenT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_ruleArn;
87
88 long long m_ruleRevision{0};
89
91 bool m_ruleArnHasBeenSet = false;
92 bool m_ruleRevisionHasBeenSet = false;
93 bool m_clientTokenHasBeenSet = true;
94};
95
96} // namespace Model
97} // namespace ComputeOptimizerAutomation
98} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::String SerializePayload() const override
DeleteAutomationRuleRequest & WithClientToken(ClientTokenT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPUTEOPTIMIZERAUTOMATION_API DeleteAutomationRuleRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String