AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateReplicationJobRequest.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 UpdateReplicationJobRequest() = 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 "UpdateReplicationJob"; }
33
34 AWS_SMS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetReplicationJobId() const { return m_replicationJobId; }
44 inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
45 template<typename ReplicationJobIdT = Aws::String>
46 void SetReplicationJobId(ReplicationJobIdT&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::forward<ReplicationJobIdT>(value); }
47 template<typename ReplicationJobIdT = Aws::String>
48 UpdateReplicationJobRequest& WithReplicationJobId(ReplicationJobIdT&& value) { SetReplicationJobId(std::forward<ReplicationJobIdT>(value)); return *this;}
50
52
55 inline int GetFrequency() const { return m_frequency; }
56 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
57 inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
58 inline UpdateReplicationJobRequest& WithFrequency(int value) { SetFrequency(value); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetNextReplicationRunStartTime() const { return m_nextReplicationRunStartTime; }
66 inline bool NextReplicationRunStartTimeHasBeenSet() const { return m_nextReplicationRunStartTimeHasBeenSet; }
67 template<typename NextReplicationRunStartTimeT = Aws::Utils::DateTime>
68 void SetNextReplicationRunStartTime(NextReplicationRunStartTimeT&& value) { m_nextReplicationRunStartTimeHasBeenSet = true; m_nextReplicationRunStartTime = std::forward<NextReplicationRunStartTimeT>(value); }
69 template<typename NextReplicationRunStartTimeT = Aws::Utils::DateTime>
70 UpdateReplicationJobRequest& WithNextReplicationRunStartTime(NextReplicationRunStartTimeT&& value) { SetNextReplicationRunStartTime(std::forward<NextReplicationRunStartTimeT>(value)); return *this;}
72
74
78 inline LicenseType GetLicenseType() const { return m_licenseType; }
79 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
80 inline void SetLicenseType(LicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
83
85
88 inline const Aws::String& GetRoleName() const { return m_roleName; }
89 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
90 template<typename RoleNameT = Aws::String>
91 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
92 template<typename RoleNameT = Aws::String>
93 UpdateReplicationJobRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 UpdateReplicationJobRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
113 inline int GetNumberOfRecentAmisToKeep() const { return m_numberOfRecentAmisToKeep; }
114 inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
115 inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
118
120
124 inline bool GetEncrypted() const { return m_encrypted; }
125 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
126 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
127 inline UpdateReplicationJobRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
129
131
139 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
140 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
141 template<typename KmsKeyIdT = Aws::String>
142 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
143 template<typename KmsKeyIdT = Aws::String>
144 UpdateReplicationJobRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
146 private:
147
148 Aws::String m_replicationJobId;
149 bool m_replicationJobIdHasBeenSet = false;
150
151 int m_frequency{0};
152 bool m_frequencyHasBeenSet = false;
153
154 Aws::Utils::DateTime m_nextReplicationRunStartTime{};
155 bool m_nextReplicationRunStartTimeHasBeenSet = false;
156
157 LicenseType m_licenseType{LicenseType::NOT_SET};
158 bool m_licenseTypeHasBeenSet = false;
159
160 Aws::String m_roleName;
161 bool m_roleNameHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
166 int m_numberOfRecentAmisToKeep{0};
167 bool m_numberOfRecentAmisToKeepHasBeenSet = false;
168
169 bool m_encrypted{false};
170 bool m_encryptedHasBeenSet = false;
171
172 Aws::String m_kmsKeyId;
173 bool m_kmsKeyIdHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace SMS
178} // namespace Aws
const Aws::Utils::DateTime & GetNextReplicationRunStartTime() const
UpdateReplicationJobRequest & WithReplicationJobId(ReplicationJobIdT &&value)
UpdateReplicationJobRequest & WithRoleName(RoleNameT &&value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateReplicationJobRequest & WithEncrypted(bool value)
UpdateReplicationJobRequest & WithFrequency(int value)
UpdateReplicationJobRequest & WithNextReplicationRunStartTime(NextReplicationRunStartTimeT &&value)
AWS_SMS_API Aws::String SerializePayload() const override
UpdateReplicationJobRequest & WithDescription(DescriptionT &&value)
UpdateReplicationJobRequest & WithLicenseType(LicenseType value)
AWS_SMS_API UpdateReplicationJobRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateReplicationJobRequest & WithNumberOfRecentAmisToKeep(int value)
UpdateReplicationJobRequest & WithKmsKeyId(KmsKeyIdT &&value)
void SetNextReplicationRunStartTime(NextReplicationRunStartTimeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String