AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ReplicationRun.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sms/model/ReplicationRunState.h>
10#include <aws/sms/model/ReplicationRunType.h>
11#include <aws/sms/model/ReplicationRunStageDetails.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SMS
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SMS_API ReplicationRun() = default;
42
43
45
48 inline const Aws::String& GetReplicationRunId() const { return m_replicationRunId; }
49 inline bool ReplicationRunIdHasBeenSet() const { return m_replicationRunIdHasBeenSet; }
50 template<typename ReplicationRunIdT = Aws::String>
51 void SetReplicationRunId(ReplicationRunIdT&& value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId = std::forward<ReplicationRunIdT>(value); }
52 template<typename ReplicationRunIdT = Aws::String>
53 ReplicationRun& WithReplicationRunId(ReplicationRunIdT&& value) { SetReplicationRunId(std::forward<ReplicationRunIdT>(value)); return *this;}
55
57
60 inline ReplicationRunState GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(ReplicationRunState value) { m_stateHasBeenSet = true; m_state = value; }
63 inline ReplicationRun& WithState(ReplicationRunState value) { SetState(value); return *this;}
65
67
70 inline ReplicationRunType GetType() const { return m_type; }
71 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
72 inline void SetType(ReplicationRunType value) { m_typeHasBeenSet = true; m_type = value; }
73 inline ReplicationRun& WithType(ReplicationRunType value) { SetType(value); return *this;}
75
77
80 inline const ReplicationRunStageDetails& GetStageDetails() const { return m_stageDetails; }
81 inline bool StageDetailsHasBeenSet() const { return m_stageDetailsHasBeenSet; }
82 template<typename StageDetailsT = ReplicationRunStageDetails>
83 void SetStageDetails(StageDetailsT&& value) { m_stageDetailsHasBeenSet = true; m_stageDetails = std::forward<StageDetailsT>(value); }
84 template<typename StageDetailsT = ReplicationRunStageDetails>
85 ReplicationRun& WithStageDetails(StageDetailsT&& value) { SetStageDetails(std::forward<StageDetailsT>(value)); return *this;}
87
89
92 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
93 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
94 template<typename StatusMessageT = Aws::String>
95 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
96 template<typename StatusMessageT = Aws::String>
97 ReplicationRun& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
99
101
104 inline const Aws::String& GetAmiId() const { return m_amiId; }
105 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
106 template<typename AmiIdT = Aws::String>
107 void SetAmiId(AmiIdT&& value) { m_amiIdHasBeenSet = true; m_amiId = std::forward<AmiIdT>(value); }
108 template<typename AmiIdT = Aws::String>
109 ReplicationRun& WithAmiId(AmiIdT&& value) { SetAmiId(std::forward<AmiIdT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetScheduledStartTime() const { return m_scheduledStartTime; }
117 inline bool ScheduledStartTimeHasBeenSet() const { return m_scheduledStartTimeHasBeenSet; }
118 template<typename ScheduledStartTimeT = Aws::Utils::DateTime>
119 void SetScheduledStartTime(ScheduledStartTimeT&& value) { m_scheduledStartTimeHasBeenSet = true; m_scheduledStartTime = std::forward<ScheduledStartTimeT>(value); }
120 template<typename ScheduledStartTimeT = Aws::Utils::DateTime>
121 ReplicationRun& WithScheduledStartTime(ScheduledStartTimeT&& value) { SetScheduledStartTime(std::forward<ScheduledStartTimeT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetCompletedTime() const { return m_completedTime; }
129 inline bool CompletedTimeHasBeenSet() const { return m_completedTimeHasBeenSet; }
130 template<typename CompletedTimeT = Aws::Utils::DateTime>
131 void SetCompletedTime(CompletedTimeT&& value) { m_completedTimeHasBeenSet = true; m_completedTime = std::forward<CompletedTimeT>(value); }
132 template<typename CompletedTimeT = Aws::Utils::DateTime>
133 ReplicationRun& WithCompletedTime(CompletedTimeT&& value) { SetCompletedTime(std::forward<CompletedTimeT>(value)); return *this;}
135
137
140 inline const Aws::String& GetDescription() const { return m_description; }
141 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
142 template<typename DescriptionT = Aws::String>
143 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
144 template<typename DescriptionT = Aws::String>
145 ReplicationRun& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
147
149
152 inline bool GetEncrypted() const { return m_encrypted; }
153 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
154 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
155 inline ReplicationRun& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
157
159
167 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
168 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
169 template<typename KmsKeyIdT = Aws::String>
170 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
171 template<typename KmsKeyIdT = Aws::String>
172 ReplicationRun& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
174 private:
175
176 Aws::String m_replicationRunId;
177 bool m_replicationRunIdHasBeenSet = false;
178
180 bool m_stateHasBeenSet = false;
181
183 bool m_typeHasBeenSet = false;
184
185 ReplicationRunStageDetails m_stageDetails;
186 bool m_stageDetailsHasBeenSet = false;
187
188 Aws::String m_statusMessage;
189 bool m_statusMessageHasBeenSet = false;
190
191 Aws::String m_amiId;
192 bool m_amiIdHasBeenSet = false;
193
194 Aws::Utils::DateTime m_scheduledStartTime{};
195 bool m_scheduledStartTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_completedTime{};
198 bool m_completedTimeHasBeenSet = false;
199
200 Aws::String m_description;
201 bool m_descriptionHasBeenSet = false;
202
203 bool m_encrypted{false};
204 bool m_encryptedHasBeenSet = false;
205
206 Aws::String m_kmsKeyId;
207 bool m_kmsKeyIdHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace SMS
212} // namespace Aws
AWS_SMS_API ReplicationRun()=default
void SetScheduledStartTime(ScheduledStartTimeT &&value)
void SetDescription(DescriptionT &&value)
ReplicationRun & WithScheduledStartTime(ScheduledStartTimeT &&value)
const Aws::String & GetStatusMessage() const
const Aws::String & GetKmsKeyId() const
ReplicationRun & WithStageDetails(StageDetailsT &&value)
AWS_SMS_API ReplicationRun(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
ReplicationRun & WithDescription(DescriptionT &&value)
void SetReplicationRunId(ReplicationRunIdT &&value)
void SetStatusMessage(StatusMessageT &&value)
AWS_SMS_API ReplicationRun & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(ReplicationRunState value)
const ReplicationRunStageDetails & GetStageDetails() const
ReplicationRun & WithCompletedTime(CompletedTimeT &&value)
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKmsKeyId(KmsKeyIdT &&value)
ReplicationRun & WithEncrypted(bool value)
ReplicationRun & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Utils::DateTime & GetCompletedTime() const
ReplicationRun & WithStatusMessage(StatusMessageT &&value)
const Aws::Utils::DateTime & GetScheduledStartTime() const
ReplicationRun & WithAmiId(AmiIdT &&value)
const Aws::String & GetAmiId() const
const Aws::String & GetReplicationRunId() const
void SetCompletedTime(CompletedTimeT &&value)
ReplicationRun & WithReplicationRunId(ReplicationRunIdT &&value)
ReplicationRun & WithState(ReplicationRunState value)
ReplicationRunState GetState() const
ReplicationRunType GetType() const
ReplicationRun & WithType(ReplicationRunType value)
void SetType(ReplicationRunType value)
void SetStageDetails(StageDetailsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue