AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
48 inline const Aws::String& GetReplicationRunId() const{ return m_replicationRunId; }
49 inline bool ReplicationRunIdHasBeenSet() const { return m_replicationRunIdHasBeenSet; }
50 inline void SetReplicationRunId(const Aws::String& value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId = value; }
51 inline void SetReplicationRunId(Aws::String&& value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId = std::move(value); }
52 inline void SetReplicationRunId(const char* value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId.assign(value); }
53 inline ReplicationRun& WithReplicationRunId(const Aws::String& value) { SetReplicationRunId(value); return *this;}
54 inline ReplicationRun& WithReplicationRunId(Aws::String&& value) { SetReplicationRunId(std::move(value)); return *this;}
55 inline ReplicationRun& WithReplicationRunId(const char* value) { SetReplicationRunId(value); return *this;}
57
59
62 inline const ReplicationRunState& GetState() const{ return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(const ReplicationRunState& value) { m_stateHasBeenSet = true; m_state = value; }
65 inline void SetState(ReplicationRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
66 inline ReplicationRun& WithState(const ReplicationRunState& value) { SetState(value); return *this;}
67 inline ReplicationRun& WithState(ReplicationRunState&& value) { SetState(std::move(value)); return *this;}
69
71
74 inline const ReplicationRunType& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const ReplicationRunType& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(ReplicationRunType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline ReplicationRun& WithType(const ReplicationRunType& value) { SetType(value); return *this;}
79 inline ReplicationRun& WithType(ReplicationRunType&& value) { SetType(std::move(value)); return *this;}
81
83
86 inline const ReplicationRunStageDetails& GetStageDetails() const{ return m_stageDetails; }
87 inline bool StageDetailsHasBeenSet() const { return m_stageDetailsHasBeenSet; }
88 inline void SetStageDetails(const ReplicationRunStageDetails& value) { m_stageDetailsHasBeenSet = true; m_stageDetails = value; }
89 inline void SetStageDetails(ReplicationRunStageDetails&& value) { m_stageDetailsHasBeenSet = true; m_stageDetails = std::move(value); }
90 inline ReplicationRun& WithStageDetails(const ReplicationRunStageDetails& value) { SetStageDetails(value); return *this;}
91 inline ReplicationRun& WithStageDetails(ReplicationRunStageDetails&& value) { SetStageDetails(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
99 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
100 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
101 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
102 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
103 inline ReplicationRun& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
104 inline ReplicationRun& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
105 inline ReplicationRun& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
107
109
112 inline const Aws::String& GetAmiId() const{ return m_amiId; }
113 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
114 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
115 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
116 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
117 inline ReplicationRun& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
118 inline ReplicationRun& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
119 inline ReplicationRun& WithAmiId(const char* value) { SetAmiId(value); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetScheduledStartTime() const{ return m_scheduledStartTime; }
127 inline bool ScheduledStartTimeHasBeenSet() const { return m_scheduledStartTimeHasBeenSet; }
128 inline void SetScheduledStartTime(const Aws::Utils::DateTime& value) { m_scheduledStartTimeHasBeenSet = true; m_scheduledStartTime = value; }
129 inline void SetScheduledStartTime(Aws::Utils::DateTime&& value) { m_scheduledStartTimeHasBeenSet = true; m_scheduledStartTime = std::move(value); }
131 inline ReplicationRun& WithScheduledStartTime(Aws::Utils::DateTime&& value) { SetScheduledStartTime(std::move(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetCompletedTime() const{ return m_completedTime; }
139 inline bool CompletedTimeHasBeenSet() const { return m_completedTimeHasBeenSet; }
140 inline void SetCompletedTime(const Aws::Utils::DateTime& value) { m_completedTimeHasBeenSet = true; m_completedTime = value; }
141 inline void SetCompletedTime(Aws::Utils::DateTime&& value) { m_completedTimeHasBeenSet = true; m_completedTime = std::move(value); }
142 inline ReplicationRun& WithCompletedTime(const Aws::Utils::DateTime& value) { SetCompletedTime(value); return *this;}
143 inline ReplicationRun& WithCompletedTime(Aws::Utils::DateTime&& value) { SetCompletedTime(std::move(value)); return *this;}
145
147
150 inline const Aws::String& GetDescription() const{ return m_description; }
151 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
152 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
153 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
154 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
155 inline ReplicationRun& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
156 inline ReplicationRun& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
157 inline ReplicationRun& WithDescription(const char* value) { SetDescription(value); return *this;}
159
161
164 inline bool GetEncrypted() const{ return m_encrypted; }
165 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
166 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
167 inline ReplicationRun& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
169
171
179 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
180 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
181 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
182 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
183 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
184 inline ReplicationRun& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
185 inline ReplicationRun& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
186 inline ReplicationRun& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
188 private:
189
190 Aws::String m_replicationRunId;
191 bool m_replicationRunIdHasBeenSet = false;
192
193 ReplicationRunState m_state;
194 bool m_stateHasBeenSet = false;
195
196 ReplicationRunType m_type;
197 bool m_typeHasBeenSet = false;
198
199 ReplicationRunStageDetails m_stageDetails;
200 bool m_stageDetailsHasBeenSet = false;
201
202 Aws::String m_statusMessage;
203 bool m_statusMessageHasBeenSet = false;
204
205 Aws::String m_amiId;
206 bool m_amiIdHasBeenSet = false;
207
208 Aws::Utils::DateTime m_scheduledStartTime;
209 bool m_scheduledStartTimeHasBeenSet = false;
210
211 Aws::Utils::DateTime m_completedTime;
212 bool m_completedTimeHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
217 bool m_encrypted;
218 bool m_encryptedHasBeenSet = false;
219
220 Aws::String m_kmsKeyId;
221 bool m_kmsKeyIdHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace SMS
226} // namespace Aws
void SetType(ReplicationRunType &&value)
ReplicationRun & WithScheduledStartTime(const Aws::Utils::DateTime &value)
void SetCompletedTime(Aws::Utils::DateTime &&value)
void SetScheduledStartTime(Aws::Utils::DateTime &&value)
ReplicationRun & WithStatusMessage(const char *value)
ReplicationRun & WithKmsKeyId(Aws::String &&value)
ReplicationRun & WithReplicationRunId(const Aws::String &value)
const Aws::String & GetStatusMessage() const
ReplicationRun & WithState(ReplicationRunState &&value)
const ReplicationRunType & GetType() const
void SetDescription(const char *value)
const Aws::String & GetKmsKeyId() const
void SetReplicationRunId(const Aws::String &value)
ReplicationRun & WithDescription(const Aws::String &value)
ReplicationRun & WithDescription(const char *value)
ReplicationRun & WithStageDetails(ReplicationRunStageDetails &&value)
ReplicationRun & WithCompletedTime(Aws::Utils::DateTime &&value)
void SetReplicationRunId(const char *value)
ReplicationRun & WithStatusMessage(Aws::String &&value)
AWS_SMS_API ReplicationRun(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
void SetStageDetails(ReplicationRunStageDetails &&value)
void SetCompletedTime(const Aws::Utils::DateTime &value)
ReplicationRun & WithKmsKeyId(const char *value)
AWS_SMS_API ReplicationRun & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicationRun & WithType(const ReplicationRunType &value)
void SetState(ReplicationRunState &&value)
const ReplicationRunStageDetails & GetStageDetails() const
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationRun & WithAmiId(const Aws::String &value)
ReplicationRun & WithEncrypted(bool value)
ReplicationRun & WithKmsKeyId(const Aws::String &value)
void SetKmsKeyId(const char *value)
const ReplicationRunState & GetState() const
const Aws::Utils::DateTime & GetCompletedTime() const
ReplicationRun & WithStageDetails(const ReplicationRunStageDetails &value)
void SetAmiId(const char *value)
void SetReplicationRunId(Aws::String &&value)
const Aws::Utils::DateTime & GetScheduledStartTime() const
void SetStatusMessage(const Aws::String &value)
ReplicationRun & WithAmiId(const char *value)
void SetState(const ReplicationRunState &value)
void SetStatusMessage(Aws::String &&value)
const Aws::String & GetAmiId() const
ReplicationRun & WithReplicationRunId(const char *value)
void SetStageDetails(const ReplicationRunStageDetails &value)
void SetStatusMessage(const char *value)
ReplicationRun & WithCompletedTime(const Aws::Utils::DateTime &value)
ReplicationRun & WithAmiId(Aws::String &&value)
const Aws::String & GetReplicationRunId() const
ReplicationRun & WithReplicationRunId(Aws::String &&value)
void SetDescription(const Aws::String &value)
ReplicationRun & WithType(ReplicationRunType &&value)
void SetAmiId(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetScheduledStartTime(const Aws::Utils::DateTime &value)
ReplicationRun & WithScheduledStartTime(Aws::Utils::DateTime &&value)
void SetKmsKeyId(Aws::String &&value)
void SetType(const ReplicationRunType &value)
ReplicationRun & WithDescription(Aws::String &&value)
ReplicationRun & WithState(const ReplicationRunState &value)
void SetAmiId(Aws::String &&value)
void SetKmsKeyId(const Aws::String &value)
ReplicationRun & WithStatusMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue