AWS SDK for C++  0.12.9
AWS SDK for C++
OrderableReplicationInstance.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace DatabaseMigrationService
29 {
30 namespace Model
31 {
32 
34  {
35  public:
38  OrderableReplicationInstance& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
44  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
45 
49  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
50 
54  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
55 
59  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
60 
64  inline OrderableReplicationInstance& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
65 
69  inline OrderableReplicationInstance& WithEngineVersion(Aws::String&& value) { SetEngineVersion(value); return *this;}
70 
74  inline OrderableReplicationInstance& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
75 
81  inline const Aws::String& GetReplicationInstanceClass() const{ return m_replicationInstanceClass; }
82 
88  inline void SetReplicationInstanceClass(const Aws::String& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = value; }
89 
95  inline void SetReplicationInstanceClass(Aws::String&& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = value; }
96 
102  inline void SetReplicationInstanceClass(const char* value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass.assign(value); }
103 
109  inline OrderableReplicationInstance& WithReplicationInstanceClass(const Aws::String& value) { SetReplicationInstanceClass(value); return *this;}
110 
116  inline OrderableReplicationInstance& WithReplicationInstanceClass(Aws::String&& value) { SetReplicationInstanceClass(value); return *this;}
117 
123  inline OrderableReplicationInstance& WithReplicationInstanceClass(const char* value) { SetReplicationInstanceClass(value); return *this;}
124 
128  inline const Aws::String& GetStorageType() const{ return m_storageType; }
129 
133  inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
134 
138  inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
139 
143  inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
144 
148  inline OrderableReplicationInstance& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
149 
153  inline OrderableReplicationInstance& WithStorageType(Aws::String&& value) { SetStorageType(value); return *this;}
154 
158  inline OrderableReplicationInstance& WithStorageType(const char* value) { SetStorageType(value); return *this;}
159 
164  inline long GetMinAllocatedStorage() const{ return m_minAllocatedStorage; }
165 
170  inline void SetMinAllocatedStorage(long value) { m_minAllocatedStorageHasBeenSet = true; m_minAllocatedStorage = value; }
171 
176  inline OrderableReplicationInstance& WithMinAllocatedStorage(long value) { SetMinAllocatedStorage(value); return *this;}
177 
182  inline long GetMaxAllocatedStorage() const{ return m_maxAllocatedStorage; }
183 
188  inline void SetMaxAllocatedStorage(long value) { m_maxAllocatedStorageHasBeenSet = true; m_maxAllocatedStorage = value; }
189 
194  inline OrderableReplicationInstance& WithMaxAllocatedStorage(long value) { SetMaxAllocatedStorage(value); return *this;}
195 
200  inline long GetDefaultAllocatedStorage() const{ return m_defaultAllocatedStorage; }
201 
206  inline void SetDefaultAllocatedStorage(long value) { m_defaultAllocatedStorageHasBeenSet = true; m_defaultAllocatedStorage = value; }
207 
212  inline OrderableReplicationInstance& WithDefaultAllocatedStorage(long value) { SetDefaultAllocatedStorage(value); return *this;}
213 
218  inline long GetIncludedAllocatedStorage() const{ return m_includedAllocatedStorage; }
219 
224  inline void SetIncludedAllocatedStorage(long value) { m_includedAllocatedStorageHasBeenSet = true; m_includedAllocatedStorage = value; }
225 
230  inline OrderableReplicationInstance& WithIncludedAllocatedStorage(long value) { SetIncludedAllocatedStorage(value); return *this;}
231 
232  private:
233  Aws::String m_engineVersion;
234  bool m_engineVersionHasBeenSet;
235  Aws::String m_replicationInstanceClass;
236  bool m_replicationInstanceClassHasBeenSet;
237  Aws::String m_storageType;
238  bool m_storageTypeHasBeenSet;
239  long m_minAllocatedStorage;
240  bool m_minAllocatedStorageHasBeenSet;
241  long m_maxAllocatedStorage;
242  bool m_maxAllocatedStorageHasBeenSet;
243  long m_defaultAllocatedStorage;
244  bool m_defaultAllocatedStorageHasBeenSet;
245  long m_includedAllocatedStorage;
246  bool m_includedAllocatedStorageHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace DatabaseMigrationService
251 } // namespace Aws
OrderableReplicationInstance & WithEngineVersion(const char *value)
OrderableReplicationInstance & WithReplicationInstanceClass(const char *value)
OrderableReplicationInstance & WithReplicationInstanceClass(Aws::String &&value)
#define AWS_DATABASEMIGRATIONSERVICE_API
OrderableReplicationInstance & WithReplicationInstanceClass(const Aws::String &value)
OrderableReplicationInstance & WithEngineVersion(const Aws::String &value)
OrderableReplicationInstance & WithStorageType(Aws::String &&value)
OrderableReplicationInstance & WithStorageType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
OrderableReplicationInstance & WithEngineVersion(Aws::String &&value)
JSON (JavaScript Object Notation).