AWS SDK for C++  1.9.40
AWS SDK for C++
CreateReplicationJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sms/SMS_EXPORTS.h>
8 #include <aws/sms/SMSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SMS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationJob"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetServerId() const{ return m_serverId; }
43 
47  inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
48 
52  inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
53 
57  inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
58 
62  inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
63 
67  inline CreateReplicationJobRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
68 
72  inline CreateReplicationJobRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
73 
77  inline CreateReplicationJobRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
78 
79 
83  inline const Aws::Utils::DateTime& GetSeedReplicationTime() const{ return m_seedReplicationTime; }
84 
88  inline bool SeedReplicationTimeHasBeenSet() const { return m_seedReplicationTimeHasBeenSet; }
89 
93  inline void SetSeedReplicationTime(const Aws::Utils::DateTime& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = value; }
94 
98  inline void SetSeedReplicationTime(Aws::Utils::DateTime&& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = std::move(value); }
99 
103  inline CreateReplicationJobRequest& WithSeedReplicationTime(const Aws::Utils::DateTime& value) { SetSeedReplicationTime(value); return *this;}
104 
108  inline CreateReplicationJobRequest& WithSeedReplicationTime(Aws::Utils::DateTime&& value) { SetSeedReplicationTime(std::move(value)); return *this;}
109 
110 
114  inline int GetFrequency() const{ return m_frequency; }
115 
119  inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
120 
124  inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
125 
129  inline CreateReplicationJobRequest& WithFrequency(int value) { SetFrequency(value); return *this;}
130 
131 
135  inline bool GetRunOnce() const{ return m_runOnce; }
136 
140  inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
141 
145  inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
146 
150  inline CreateReplicationJobRequest& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
151 
152 
157  inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
158 
163  inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
164 
169  inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
170 
175  inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
176 
181  inline CreateReplicationJobRequest& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
182 
187  inline CreateReplicationJobRequest& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
188 
189 
193  inline const Aws::String& GetRoleName() const{ return m_roleName; }
194 
198  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
199 
203  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
204 
208  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
209 
213  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
214 
218  inline CreateReplicationJobRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
219 
223  inline CreateReplicationJobRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
224 
228  inline CreateReplicationJobRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
229 
230 
234  inline const Aws::String& GetDescription() const{ return m_description; }
235 
239  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
240 
244  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
245 
249  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
250 
254  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
255 
259  inline CreateReplicationJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
260 
264  inline CreateReplicationJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
265 
269  inline CreateReplicationJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
270 
271 
276  inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
277 
282  inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
283 
288  inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
289 
294  inline CreateReplicationJobRequest& WithNumberOfRecentAmisToKeep(int value) { SetNumberOfRecentAmisToKeep(value); return *this;}
295 
296 
300  inline bool GetEncrypted() const{ return m_encrypted; }
301 
305  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
306 
310  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
311 
315  inline CreateReplicationJobRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
316 
317 
326  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
327 
336  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
337 
346  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
347 
356  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
357 
366  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
367 
376  inline CreateReplicationJobRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
377 
386  inline CreateReplicationJobRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
387 
396  inline CreateReplicationJobRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
397 
398  private:
399 
400  Aws::String m_serverId;
401  bool m_serverIdHasBeenSet;
402 
403  Aws::Utils::DateTime m_seedReplicationTime;
404  bool m_seedReplicationTimeHasBeenSet;
405 
406  int m_frequency;
407  bool m_frequencyHasBeenSet;
408 
409  bool m_runOnce;
410  bool m_runOnceHasBeenSet;
411 
412  LicenseType m_licenseType;
413  bool m_licenseTypeHasBeenSet;
414 
415  Aws::String m_roleName;
416  bool m_roleNameHasBeenSet;
417 
418  Aws::String m_description;
419  bool m_descriptionHasBeenSet;
420 
421  int m_numberOfRecentAmisToKeep;
422  bool m_numberOfRecentAmisToKeepHasBeenSet;
423 
424  bool m_encrypted;
425  bool m_encryptedHasBeenSet;
426 
427  Aws::String m_kmsKeyId;
428  bool m_kmsKeyIdHasBeenSet;
429  };
430 
431 } // namespace Model
432 } // namespace SMS
433 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SMS::Model::CreateReplicationJobRequest::GetServerId
const Aws::String & GetServerId() const
Definition: CreateReplicationJobRequest.h:42
Aws::SMS::Model::CreateReplicationJobRequest::GetNumberOfRecentAmisToKeep
int GetNumberOfRecentAmisToKeep() const
Definition: CreateReplicationJobRequest.h:276
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SMS::Model::CreateReplicationJobRequest::WithServerId
CreateReplicationJobRequest & WithServerId(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:72
Aws::SMS::Model::CreateReplicationJobRequest::WithKmsKeyId
CreateReplicationJobRequest & WithKmsKeyId(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:386
Aws::SMS::Model::CreateReplicationJobRequest::SetEncrypted
void SetEncrypted(bool value)
Definition: CreateReplicationJobRequest.h:310
Aws::SMS::Model::CreateReplicationJobRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateReplicationJobRequest.h:234
SMSRequest.h
Aws::SMS::Model::CreateReplicationJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SMS::Model::CreateReplicationJobRequest::WithRunOnce
CreateReplicationJobRequest & WithRunOnce(bool value)
Definition: CreateReplicationJobRequest.h:150
Aws::SMS::Model::CreateReplicationJobRequest::SetLicenseType
void SetLicenseType(const LicenseType &value)
Definition: CreateReplicationJobRequest.h:169
Aws::SMS::Model::CreateReplicationJobRequest::SeedReplicationTimeHasBeenSet
bool SeedReplicationTimeHasBeenSet() const
Definition: CreateReplicationJobRequest.h:88
DateTime.h
Aws::SMS::Model::CreateReplicationJobRequest::WithRoleName
CreateReplicationJobRequest & WithRoleName(const char *value)
Definition: CreateReplicationJobRequest.h:228
Aws::SMS::Model::CreateReplicationJobRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:203
Aws::SMS::Model::CreateReplicationJobRequest::SetSeedReplicationTime
void SetSeedReplicationTime(Aws::Utils::DateTime &&value)
Definition: CreateReplicationJobRequest.h:98
Aws::SMS::Model::CreateReplicationJobRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:208
Aws::SMS::Model::CreateReplicationJobRequest::SetRunOnce
void SetRunOnce(bool value)
Definition: CreateReplicationJobRequest.h:145
Aws::SMS::Model::CreateReplicationJobRequest::SetServerId
void SetServerId(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:57
Aws::SMS::Model::CreateReplicationJobRequest::SetServerId
void SetServerId(const char *value)
Definition: CreateReplicationJobRequest.h:62
Aws::SMS::Model::CreateReplicationJobRequest::SetServerId
void SetServerId(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:52
Aws::SMS::Model::CreateReplicationJobRequest::CreateReplicationJobRequest
CreateReplicationJobRequest()
Aws::SMS::Model::CreateReplicationJobRequest::WithKmsKeyId
CreateReplicationJobRequest & WithKmsKeyId(const char *value)
Definition: CreateReplicationJobRequest.h:396
Aws::SMS::Model::CreateReplicationJobRequest::SetLicenseType
void SetLicenseType(LicenseType &&value)
Definition: CreateReplicationJobRequest.h:175
Aws::SMS::Model::CreateReplicationJobRequest::SetSeedReplicationTime
void SetSeedReplicationTime(const Aws::Utils::DateTime &value)
Definition: CreateReplicationJobRequest.h:93
Aws::SMS::Model::CreateReplicationJobRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: CreateReplicationJobRequest.h:193
Aws::SMS::Model::CreateReplicationJobRequest::WithRoleName
CreateReplicationJobRequest & WithRoleName(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:218
Aws::SMS::Model::CreateReplicationJobRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: CreateReplicationJobRequest.h:336
Aws::SMS::Model::CreateReplicationJobRequest::GetFrequency
int GetFrequency() const
Definition: CreateReplicationJobRequest.h:114
SMS_EXPORTS.h
Aws::SMS::Model::CreateReplicationJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateReplicationJobRequest.h:32
Aws::SMS::Model::CreateReplicationJobRequest::WithDescription
CreateReplicationJobRequest & WithDescription(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:259
Aws::SMS::Model::CreateReplicationJobRequest::WithSeedReplicationTime
CreateReplicationJobRequest & WithSeedReplicationTime(const Aws::Utils::DateTime &value)
Definition: CreateReplicationJobRequest.h:103
Aws::SMS::Model::CreateReplicationJobRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:356
Aws::SMS::Model::CreateReplicationJobRequest::SetFrequency
void SetFrequency(int value)
Definition: CreateReplicationJobRequest.h:124
LicenseType.h
Aws::SMS::Model::CreateReplicationJobRequest::WithDescription
CreateReplicationJobRequest & WithDescription(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:264
Aws::SMS::Model::CreateReplicationJobRequest::GetSeedReplicationTime
const Aws::Utils::DateTime & GetSeedReplicationTime() const
Definition: CreateReplicationJobRequest.h:83
Aws::SMS::SMSRequest
Definition: SMSRequest.h:17
Aws::SMS::Model::CreateReplicationJobRequest::ServerIdHasBeenSet
bool ServerIdHasBeenSet() const
Definition: CreateReplicationJobRequest.h:47
Aws::SMS::Model::CreateReplicationJobRequest::SetRoleName
void SetRoleName(const char *value)
Definition: CreateReplicationJobRequest.h:213
Aws::SMS::Model::CreateReplicationJobRequest::WithKmsKeyId
CreateReplicationJobRequest & WithKmsKeyId(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:376
Aws::SMS::Model::CreateReplicationJobRequest::GetLicenseType
const LicenseType & GetLicenseType() const
Definition: CreateReplicationJobRequest.h:157
Aws::SMS::Model::CreateReplicationJobRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: CreateReplicationJobRequest.h:366
Aws::AmplifyBackend::Model::DeliveryMethod::NOT_SET
@ NOT_SET
AWSString.h
Aws::SMS::Model::CreateReplicationJobRequest::WithLicenseType
CreateReplicationJobRequest & WithLicenseType(const LicenseType &value)
Definition: CreateReplicationJobRequest.h:181
Aws::SMS::Model::CreateReplicationJobRequest::WithDescription
CreateReplicationJobRequest & WithDescription(const char *value)
Definition: CreateReplicationJobRequest.h:269
Aws::SMS::Model::CreateReplicationJobRequest::WithEncrypted
CreateReplicationJobRequest & WithEncrypted(bool value)
Definition: CreateReplicationJobRequest.h:315
Aws::SMS::Model::CreateReplicationJobRequest::WithServerId
CreateReplicationJobRequest & WithServerId(const char *value)
Definition: CreateReplicationJobRequest.h:77
Aws::SMS::Model::CreateReplicationJobRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:249
Aws::SMS::Model::CreateReplicationJobRequest::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: CreateReplicationJobRequest.h:305
Aws::SMS::Model::CreateReplicationJobRequest::LicenseTypeHasBeenSet
bool LicenseTypeHasBeenSet() const
Definition: CreateReplicationJobRequest.h:163
Aws::SMS::Model::LicenseType
LicenseType
Definition: LicenseType.h:17
Aws::SMS::Model::CreateReplicationJobRequest::WithNumberOfRecentAmisToKeep
CreateReplicationJobRequest & WithNumberOfRecentAmisToKeep(int value)
Definition: CreateReplicationJobRequest.h:294
Aws::SMS::Model::CreateReplicationJobRequest
Definition: CreateReplicationJobRequest.h:24
Aws::SMS::Model::CreateReplicationJobRequest::WithSeedReplicationTime
CreateReplicationJobRequest & WithSeedReplicationTime(Aws::Utils::DateTime &&value)
Definition: CreateReplicationJobRequest.h:108
Aws::SMS::Model::CreateReplicationJobRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: CreateReplicationJobRequest.h:198
Aws::SMS::Model::CreateReplicationJobRequest::WithRoleName
CreateReplicationJobRequest & WithRoleName(Aws::String &&value)
Definition: CreateReplicationJobRequest.h:223
Aws::SMS::Model::CreateReplicationJobRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:244
Aws
Definition: AccessManagementClient.h:15
Aws::SMS::Model::CreateReplicationJobRequest::WithLicenseType
CreateReplicationJobRequest & WithLicenseType(LicenseType &&value)
Definition: CreateReplicationJobRequest.h:187
Aws::SMS::Model::CreateReplicationJobRequest::WithServerId
CreateReplicationJobRequest & WithServerId(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:67
Aws::SMS::Model::CreateReplicationJobRequest::WithFrequency
CreateReplicationJobRequest & WithFrequency(int value)
Definition: CreateReplicationJobRequest.h:129
Aws::SMS::Model::CreateReplicationJobRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateReplicationJobRequest.h:254
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SMS::Model::CreateReplicationJobRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateReplicationJobRequest.h:239
Aws::SMS::Model::CreateReplicationJobRequest::FrequencyHasBeenSet
bool FrequencyHasBeenSet() const
Definition: CreateReplicationJobRequest.h:119
Aws::SMS::Model::CreateReplicationJobRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SMS::Model::CreateReplicationJobRequest::SetNumberOfRecentAmisToKeep
void SetNumberOfRecentAmisToKeep(int value)
Definition: CreateReplicationJobRequest.h:288
Aws::SMS::Model::CreateReplicationJobRequest::NumberOfRecentAmisToKeepHasBeenSet
bool NumberOfRecentAmisToKeepHasBeenSet() const
Definition: CreateReplicationJobRequest.h:282
AWS_SMS_API
#define AWS_SMS_API
Definition: SMS_EXPORTS.h:28
Aws::SMS::Model::CreateReplicationJobRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: CreateReplicationJobRequest.h:346
Aws::SMS::Model::CreateReplicationJobRequest::GetRunOnce
bool GetRunOnce() const
Definition: CreateReplicationJobRequest.h:135
Aws::SMS::Model::CreateReplicationJobRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: CreateReplicationJobRequest.h:326
Aws::SMS::Model::CreateReplicationJobRequest::GetEncrypted
bool GetEncrypted() const
Definition: CreateReplicationJobRequest.h:300
Aws::SMS::Model::CreateReplicationJobRequest::RunOnceHasBeenSet
bool RunOnceHasBeenSet() const
Definition: CreateReplicationJobRequest.h:140