AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplicationJobRequest.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/SMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sms/model/LicenseType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SMS
17{
18namespace 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_SMS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetServerId() const{ return m_serverId; }
44 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
45 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
46 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
47 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
48 inline CreateReplicationJobRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
49 inline CreateReplicationJobRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
50 inline CreateReplicationJobRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetSeedReplicationTime() const{ return m_seedReplicationTime; }
58 inline bool SeedReplicationTimeHasBeenSet() const { return m_seedReplicationTimeHasBeenSet; }
59 inline void SetSeedReplicationTime(const Aws::Utils::DateTime& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = value; }
60 inline void SetSeedReplicationTime(Aws::Utils::DateTime&& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = std::move(value); }
64
66
69 inline int GetFrequency() const{ return m_frequency; }
70 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
71 inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
72 inline CreateReplicationJobRequest& WithFrequency(int value) { SetFrequency(value); return *this;}
74
76
79 inline bool GetRunOnce() const{ return m_runOnce; }
80 inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
81 inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
82 inline CreateReplicationJobRequest& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
84
86
90 inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
91 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
92 inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
93 inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
94 inline CreateReplicationJobRequest& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
95 inline CreateReplicationJobRequest& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetRoleName() const{ return m_roleName; }
103 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
104 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
105 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
106 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
107 inline CreateReplicationJobRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
108 inline CreateReplicationJobRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
109 inline CreateReplicationJobRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
111
113
116 inline const Aws::String& GetDescription() const{ return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
119 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
120 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 inline CreateReplicationJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 inline CreateReplicationJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
123 inline CreateReplicationJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
125
127
131 inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
132 inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
133 inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
136
138
141 inline bool GetEncrypted() const{ return m_encrypted; }
142 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
143 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
144 inline CreateReplicationJobRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
146
148
156 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
157 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
158 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
159 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
160 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
161 inline CreateReplicationJobRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
162 inline CreateReplicationJobRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
163 inline CreateReplicationJobRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
165 private:
166
167 Aws::String m_serverId;
168 bool m_serverIdHasBeenSet = false;
169
170 Aws::Utils::DateTime m_seedReplicationTime;
171 bool m_seedReplicationTimeHasBeenSet = false;
172
173 int m_frequency;
174 bool m_frequencyHasBeenSet = false;
175
176 bool m_runOnce;
177 bool m_runOnceHasBeenSet = false;
178
179 LicenseType m_licenseType;
180 bool m_licenseTypeHasBeenSet = false;
181
182 Aws::String m_roleName;
183 bool m_roleNameHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 int m_numberOfRecentAmisToKeep;
189 bool m_numberOfRecentAmisToKeepHasBeenSet = false;
190
191 bool m_encrypted;
192 bool m_encryptedHasBeenSet = false;
193
194 Aws::String m_kmsKeyId;
195 bool m_kmsKeyIdHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace SMS
200} // namespace Aws
CreateReplicationJobRequest & WithRoleName(const Aws::String &value)
CreateReplicationJobRequest & WithRoleName(Aws::String &&value)
CreateReplicationJobRequest & WithLicenseType(const LicenseType &value)
CreateReplicationJobRequest & WithRunOnce(bool value)
CreateReplicationJobRequest & WithNumberOfRecentAmisToKeep(int value)
CreateReplicationJobRequest & WithDescription(const char *value)
CreateReplicationJobRequest & WithKmsKeyId(const char *value)
CreateReplicationJobRequest & WithEncrypted(bool value)
CreateReplicationJobRequest & WithSeedReplicationTime(const Aws::Utils::DateTime &value)
void SetSeedReplicationTime(Aws::Utils::DateTime &&value)
CreateReplicationJobRequest & WithServerId(Aws::String &&value)
CreateReplicationJobRequest & WithDescription(Aws::String &&value)
CreateReplicationJobRequest & WithDescription(const Aws::String &value)
CreateReplicationJobRequest & WithLicenseType(LicenseType &&value)
CreateReplicationJobRequest & WithKmsKeyId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateReplicationJobRequest & WithRoleName(const char *value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SMS_API Aws::String SerializePayload() const override
CreateReplicationJobRequest & WithServerId(const Aws::String &value)
CreateReplicationJobRequest & WithFrequency(int value)
void SetSeedReplicationTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetSeedReplicationTime() const
CreateReplicationJobRequest & WithServerId(const char *value)
CreateReplicationJobRequest & WithKmsKeyId(const Aws::String &value)
CreateReplicationJobRequest & WithSeedReplicationTime(Aws::Utils::DateTime &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String