AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ServerReplicationParameters.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/sms/model/LicenseType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SMS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SMS_API ServerReplicationParameters() = default;
41
42
44
47 inline const Aws::Utils::DateTime& GetSeedTime() const { return m_seedTime; }
48 inline bool SeedTimeHasBeenSet() const { return m_seedTimeHasBeenSet; }
49 template<typename SeedTimeT = Aws::Utils::DateTime>
50 void SetSeedTime(SeedTimeT&& value) { m_seedTimeHasBeenSet = true; m_seedTime = std::forward<SeedTimeT>(value); }
51 template<typename SeedTimeT = Aws::Utils::DateTime>
52 ServerReplicationParameters& WithSeedTime(SeedTimeT&& value) { SetSeedTime(std::forward<SeedTimeT>(value)); return *this;}
54
56
59 inline int GetFrequency() const { return m_frequency; }
60 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
61 inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
62 inline ServerReplicationParameters& WithFrequency(int value) { SetFrequency(value); return *this;}
64
66
69 inline bool GetRunOnce() const { return m_runOnce; }
70 inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
71 inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
72 inline ServerReplicationParameters& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
74
76
79 inline LicenseType GetLicenseType() const { return m_licenseType; }
80 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
81 inline void SetLicenseType(LicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
84
86
90 inline int GetNumberOfRecentAmisToKeep() const { return m_numberOfRecentAmisToKeep; }
91 inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
92 inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
95
97
100 inline bool GetEncrypted() const { return m_encrypted; }
101 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
102 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
103 inline ServerReplicationParameters& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
105
107
115 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
116 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
117 template<typename KmsKeyIdT = Aws::String>
118 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
119 template<typename KmsKeyIdT = Aws::String>
120 ServerReplicationParameters& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
122 private:
123
124 Aws::Utils::DateTime m_seedTime{};
125 bool m_seedTimeHasBeenSet = false;
126
127 int m_frequency{0};
128 bool m_frequencyHasBeenSet = false;
129
130 bool m_runOnce{false};
131 bool m_runOnceHasBeenSet = false;
132
133 LicenseType m_licenseType{LicenseType::NOT_SET};
134 bool m_licenseTypeHasBeenSet = false;
135
136 int m_numberOfRecentAmisToKeep{0};
137 bool m_numberOfRecentAmisToKeepHasBeenSet = false;
138
139 bool m_encrypted{false};
140 bool m_encryptedHasBeenSet = false;
141
142 Aws::String m_kmsKeyId;
143 bool m_kmsKeyIdHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SMS
148} // namespace Aws
ServerReplicationParameters & WithLicenseType(LicenseType value)
ServerReplicationParameters & WithEncrypted(bool value)
AWS_SMS_API ServerReplicationParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SMS_API ServerReplicationParameters(Aws::Utils::Json::JsonView jsonValue)
ServerReplicationParameters & WithFrequency(int value)
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
ServerReplicationParameters & WithSeedTime(SeedTimeT &&value)
ServerReplicationParameters & WithKmsKeyId(KmsKeyIdT &&value)
AWS_SMS_API ServerReplicationParameters()=default
ServerReplicationParameters & WithRunOnce(bool value)
ServerReplicationParameters & WithNumberOfRecentAmisToKeep(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue