AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
CreateRecoveryPlanStepRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/DrsRequest.h>
10#include <aws/drs/Drs_EXPORTS.h>
11#include <aws/drs/model/RecoveryPlanStepConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace drs {
17namespace Model {
18
22 public:
23 AWS_DRS_API CreateRecoveryPlanStepRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateRecoveryPlanStep"; }
30
31 AWS_DRS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetRecoveryPlanArn() const { return m_recoveryPlanArn; }
38 inline bool RecoveryPlanArnHasBeenSet() const { return m_recoveryPlanArnHasBeenSet; }
39 template <typename RecoveryPlanArnT = Aws::String>
40 void SetRecoveryPlanArn(RecoveryPlanArnT&& value) {
41 m_recoveryPlanArnHasBeenSet = true;
42 m_recoveryPlanArn = std::forward<RecoveryPlanArnT>(value);
43 }
44 template <typename RecoveryPlanArnT = Aws::String>
46 SetRecoveryPlanArn(std::forward<RecoveryPlanArnT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetStepName() const { return m_stepName; }
54 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
55 template <typename StepNameT = Aws::String>
56 void SetStepName(StepNameT&& value) {
57 m_stepNameHasBeenSet = true;
58 m_stepName = std::forward<StepNameT>(value);
59 }
60 template <typename StepNameT = Aws::String>
62 SetStepName(std::forward<StepNameT>(value));
63 return *this;
64 }
66
68
69 inline int GetStepOrder() const { return m_stepOrder; }
70 inline bool StepOrderHasBeenSet() const { return m_stepOrderHasBeenSet; }
71 inline void SetStepOrder(int value) {
72 m_stepOrderHasBeenSet = true;
73 m_stepOrder = value;
74 }
76 SetStepOrder(value);
77 return *this;
78 }
80
82
83 inline const RecoveryPlanStepConfiguration& GetConfiguration() const { return m_configuration; }
84 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
85 template <typename ConfigurationT = RecoveryPlanStepConfiguration>
86 void SetConfiguration(ConfigurationT&& value) {
87 m_configurationHasBeenSet = true;
88 m_configuration = std::forward<ConfigurationT>(value);
89 }
90 template <typename ConfigurationT = RecoveryPlanStepConfiguration>
92 SetConfiguration(std::forward<ConfigurationT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetClientToken() const { return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 template <typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) {
105 m_clientTokenHasBeenSet = true;
106 m_clientToken = std::forward<ClientTokenT>(value);
107 }
108 template <typename ClientTokenT = Aws::String>
110 SetClientToken(std::forward<ClientTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_recoveryPlanArn;
116
117 Aws::String m_stepName;
118
119 int m_stepOrder{0};
120
121 RecoveryPlanStepConfiguration m_configuration;
122
124 bool m_recoveryPlanArnHasBeenSet = false;
125 bool m_stepNameHasBeenSet = false;
126 bool m_stepOrderHasBeenSet = false;
127 bool m_configurationHasBeenSet = false;
128 bool m_clientTokenHasBeenSet = true;
129};
130
131} // namespace Model
132} // namespace drs
133} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateRecoveryPlanStepRequest & WithStepName(StepNameT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
CreateRecoveryPlanStepRequest & WithConfiguration(ConfigurationT &&value)
CreateRecoveryPlanStepRequest & WithRecoveryPlanArn(RecoveryPlanArnT &&value)
CreateRecoveryPlanStepRequest & WithStepOrder(int value)
virtual const char * GetServiceRequestName() const override
const RecoveryPlanStepConfiguration & GetConfiguration() const
CreateRecoveryPlanStepRequest & WithClientToken(ClientTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String