AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_SMS_API CreateReplicationJobRequest() = default;
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 template<typename ServerIdT = Aws::String>
46 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
47 template<typename ServerIdT = Aws::String>
48 CreateReplicationJobRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetSeedReplicationTime() const { return m_seedReplicationTime; }
56 inline bool SeedReplicationTimeHasBeenSet() const { return m_seedReplicationTimeHasBeenSet; }
57 template<typename SeedReplicationTimeT = Aws::Utils::DateTime>
58 void SetSeedReplicationTime(SeedReplicationTimeT&& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = std::forward<SeedReplicationTimeT>(value); }
59 template<typename SeedReplicationTimeT = Aws::Utils::DateTime>
60 CreateReplicationJobRequest& WithSeedReplicationTime(SeedReplicationTimeT&& value) { SetSeedReplicationTime(std::forward<SeedReplicationTimeT>(value)); return *this;}
62
64
67 inline int GetFrequency() const { return m_frequency; }
68 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
69 inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
70 inline CreateReplicationJobRequest& WithFrequency(int value) { SetFrequency(value); return *this;}
72
74
77 inline bool GetRunOnce() const { return m_runOnce; }
78 inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
79 inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
80 inline CreateReplicationJobRequest& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
82
84
88 inline LicenseType GetLicenseType() const { return m_licenseType; }
89 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
90 inline void SetLicenseType(LicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
93
95
98 inline const Aws::String& GetRoleName() const { return m_roleName; }
99 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
100 template<typename RoleNameT = Aws::String>
101 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
102 template<typename RoleNameT = Aws::String>
103 CreateReplicationJobRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template<typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
114 template<typename DescriptionT = Aws::String>
115 CreateReplicationJobRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
117
119
123 inline int GetNumberOfRecentAmisToKeep() const { return m_numberOfRecentAmisToKeep; }
124 inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
125 inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
128
130
133 inline bool GetEncrypted() const { return m_encrypted; }
134 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
135 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
136 inline CreateReplicationJobRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
138
140
148 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
149 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
150 template<typename KmsKeyIdT = Aws::String>
151 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
152 template<typename KmsKeyIdT = Aws::String>
153 CreateReplicationJobRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
155 private:
156
157 Aws::String m_serverId;
158 bool m_serverIdHasBeenSet = false;
159
160 Aws::Utils::DateTime m_seedReplicationTime{};
161 bool m_seedReplicationTimeHasBeenSet = false;
162
163 int m_frequency{0};
164 bool m_frequencyHasBeenSet = false;
165
166 bool m_runOnce{false};
167 bool m_runOnceHasBeenSet = false;
168
169 LicenseType m_licenseType{LicenseType::NOT_SET};
170 bool m_licenseTypeHasBeenSet = false;
171
172 Aws::String m_roleName;
173 bool m_roleNameHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
178 int m_numberOfRecentAmisToKeep{0};
179 bool m_numberOfRecentAmisToKeepHasBeenSet = false;
180
181 bool m_encrypted{false};
182 bool m_encryptedHasBeenSet = false;
183
184 Aws::String m_kmsKeyId;
185 bool m_kmsKeyIdHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace SMS
190} // namespace Aws
CreateReplicationJobRequest & WithSeedReplicationTime(SeedReplicationTimeT &&value)
CreateReplicationJobRequest & WithRunOnce(bool value)
CreateReplicationJobRequest & WithNumberOfRecentAmisToKeep(int value)
CreateReplicationJobRequest & WithEncrypted(bool value)
CreateReplicationJobRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateReplicationJobRequest & WithDescription(DescriptionT &&value)
CreateReplicationJobRequest & WithServerId(ServerIdT &&value)
CreateReplicationJobRequest & WithRoleName(RoleNameT &&value)
AWS_SMS_API CreateReplicationJobRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SMS_API Aws::String SerializePayload() const override
void SetSeedReplicationTime(SeedReplicationTimeT &&value)
CreateReplicationJobRequest & WithLicenseType(LicenseType value)
CreateReplicationJobRequest & WithFrequency(int value)
const Aws::Utils::DateTime & GetSeedReplicationTime() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String