AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlanStep.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/RecoveryPlanStepConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace drs {
21namespace Model {
22
29 public:
30 AWS_DRS_API RecoveryPlanStep() = default;
34
36
39 inline const Aws::String& GetRecoveryPlanStepArn() const { return m_recoveryPlanStepArn; }
40 inline bool RecoveryPlanStepArnHasBeenSet() const { return m_recoveryPlanStepArnHasBeenSet; }
41 template <typename RecoveryPlanStepArnT = Aws::String>
42 void SetRecoveryPlanStepArn(RecoveryPlanStepArnT&& value) {
43 m_recoveryPlanStepArnHasBeenSet = true;
44 m_recoveryPlanStepArn = std::forward<RecoveryPlanStepArnT>(value);
45 }
46 template <typename RecoveryPlanStepArnT = Aws::String>
47 RecoveryPlanStep& WithRecoveryPlanStepArn(RecoveryPlanStepArnT&& value) {
48 SetRecoveryPlanStepArn(std::forward<RecoveryPlanStepArnT>(value));
49 return *this;
50 }
52
54
55 inline int GetStepOrder() const { return m_stepOrder; }
56 inline bool StepOrderHasBeenSet() const { return m_stepOrderHasBeenSet; }
57 inline void SetStepOrder(int value) {
58 m_stepOrderHasBeenSet = true;
59 m_stepOrder = value;
60 }
61 inline RecoveryPlanStep& WithStepOrder(int value) {
62 SetStepOrder(value);
63 return *this;
64 }
66
68
69 inline const Aws::String& GetStepName() const { return m_stepName; }
70 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
71 template <typename StepNameT = Aws::String>
72 void SetStepName(StepNameT&& value) {
73 m_stepNameHasBeenSet = true;
74 m_stepName = std::forward<StepNameT>(value);
75 }
76 template <typename StepNameT = Aws::String>
77 RecoveryPlanStep& WithStepName(StepNameT&& value) {
78 SetStepName(std::forward<StepNameT>(value));
79 return *this;
80 }
82
84
85 inline const RecoveryPlanStepConfiguration& GetConfiguration() const { return m_configuration; }
86 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
87 template <typename ConfigurationT = RecoveryPlanStepConfiguration>
88 void SetConfiguration(ConfigurationT&& value) {
89 m_configurationHasBeenSet = true;
90 m_configuration = std::forward<ConfigurationT>(value);
91 }
92 template <typename ConfigurationT = RecoveryPlanStepConfiguration>
93 RecoveryPlanStep& WithConfiguration(ConfigurationT&& value) {
94 SetConfiguration(std::forward<ConfigurationT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
104 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
105 template <typename CreatedAtT = Aws::String>
106 void SetCreatedAt(CreatedAtT&& value) {
107 m_createdAtHasBeenSet = true;
108 m_createdAt = std::forward<CreatedAtT>(value);
109 }
110 template <typename CreatedAtT = Aws::String>
111 RecoveryPlanStep& WithCreatedAt(CreatedAtT&& value) {
112 SetCreatedAt(std::forward<CreatedAtT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
122 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
123 template <typename UpdatedAtT = Aws::String>
124 void SetUpdatedAt(UpdatedAtT&& value) {
125 m_updatedAtHasBeenSet = true;
126 m_updatedAt = std::forward<UpdatedAtT>(value);
127 }
128 template <typename UpdatedAtT = Aws::String>
129 RecoveryPlanStep& WithUpdatedAt(UpdatedAtT&& value) {
130 SetUpdatedAt(std::forward<UpdatedAtT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_recoveryPlanStepArn;
136
137 int m_stepOrder{0};
138
139 Aws::String m_stepName;
140
141 RecoveryPlanStepConfiguration m_configuration;
142
143 Aws::String m_createdAt;
144
145 Aws::String m_updatedAt;
146 bool m_recoveryPlanStepArnHasBeenSet = false;
147 bool m_stepOrderHasBeenSet = false;
148 bool m_stepNameHasBeenSet = false;
149 bool m_configurationHasBeenSet = false;
150 bool m_createdAtHasBeenSet = false;
151 bool m_updatedAtHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace drs
156} // namespace Aws
const Aws::String & GetCreatedAt() const
RecoveryPlanStep & WithCreatedAt(CreatedAtT &&value)
AWS_DRS_API RecoveryPlanStep & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API RecoveryPlanStep(Aws::Utils::Json::JsonView jsonValue)
const RecoveryPlanStepConfiguration & GetConfiguration() const
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryPlanStep & WithStepName(StepNameT &&value)
const Aws::String & GetStepName() const
RecoveryPlanStep & WithRecoveryPlanStepArn(RecoveryPlanStepArnT &&value)
void SetConfiguration(ConfigurationT &&value)
void SetRecoveryPlanStepArn(RecoveryPlanStepArnT &&value)
void SetStepName(StepNameT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
RecoveryPlanStep & WithConfiguration(ConfigurationT &&value)
RecoveryPlanStep & WithUpdatedAt(UpdatedAtT &&value)
RecoveryPlanStep & WithStepOrder(int value)
const Aws::String & GetRecoveryPlanStepArn() const
AWS_DRS_API RecoveryPlanStep()=default
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetUpdatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue