AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
47 inline const Aws::Utils::DateTime& GetSeedTime() const{ return m_seedTime; }
48 inline bool SeedTimeHasBeenSet() const { return m_seedTimeHasBeenSet; }
49 inline void SetSeedTime(const Aws::Utils::DateTime& value) { m_seedTimeHasBeenSet = true; m_seedTime = value; }
50 inline void SetSeedTime(Aws::Utils::DateTime&& value) { m_seedTimeHasBeenSet = true; m_seedTime = std::move(value); }
51 inline ServerReplicationParameters& WithSeedTime(const Aws::Utils::DateTime& value) { SetSeedTime(value); return *this;}
52 inline ServerReplicationParameters& WithSeedTime(Aws::Utils::DateTime&& value) { SetSeedTime(std::move(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 const LicenseType& GetLicenseType() const{ return m_licenseType; }
80 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
81 inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
82 inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
83 inline ServerReplicationParameters& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
84 inline ServerReplicationParameters& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
86
88
92 inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
93 inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
94 inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
97
99
102 inline bool GetEncrypted() const{ return m_encrypted; }
103 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
104 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
105 inline ServerReplicationParameters& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
107
109
117 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
118 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
119 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
120 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
121 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
122 inline ServerReplicationParameters& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
123 inline ServerReplicationParameters& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
124 inline ServerReplicationParameters& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
126 private:
127
128 Aws::Utils::DateTime m_seedTime;
129 bool m_seedTimeHasBeenSet = false;
130
131 int m_frequency;
132 bool m_frequencyHasBeenSet = false;
133
134 bool m_runOnce;
135 bool m_runOnceHasBeenSet = false;
136
137 LicenseType m_licenseType;
138 bool m_licenseTypeHasBeenSet = false;
139
140 int m_numberOfRecentAmisToKeep;
141 bool m_numberOfRecentAmisToKeepHasBeenSet = false;
142
143 bool m_encrypted;
144 bool m_encryptedHasBeenSet = false;
145
146 Aws::String m_kmsKeyId;
147 bool m_kmsKeyIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace SMS
152} // namespace Aws
void SetSeedTime(const Aws::Utils::DateTime &value)
ServerReplicationParameters & WithSeedTime(Aws::Utils::DateTime &&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 & WithLicenseType(LicenseType &&value)
ServerReplicationParameters & WithKmsKeyId(const char *value)
ServerReplicationParameters & WithKmsKeyId(Aws::String &&value)
ServerReplicationParameters & WithLicenseType(const LicenseType &value)
ServerReplicationParameters & WithSeedTime(const Aws::Utils::DateTime &value)
ServerReplicationParameters & WithRunOnce(bool value)
ServerReplicationParameters & WithNumberOfRecentAmisToKeep(int value)
ServerReplicationParameters & WithKmsKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue