AWS SDK for C++  0.14.3
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 
37  {
38  public:
41  OrderableReplicationInstance& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
48 
52  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
53 
57  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
58 
62  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
63 
67  inline OrderableReplicationInstance& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
68 
72  inline OrderableReplicationInstance& WithEngineVersion(Aws::String&& value) { SetEngineVersion(value); return *this;}
73 
77  inline OrderableReplicationInstance& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
78 
84  inline const Aws::String& GetReplicationInstanceClass() const{ return m_replicationInstanceClass; }
85 
91  inline void SetReplicationInstanceClass(const Aws::String& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = value; }
92 
98  inline void SetReplicationInstanceClass(Aws::String&& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = value; }
99 
105  inline void SetReplicationInstanceClass(const char* value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass.assign(value); }
106 
112  inline OrderableReplicationInstance& WithReplicationInstanceClass(const Aws::String& value) { SetReplicationInstanceClass(value); return *this;}
113 
119  inline OrderableReplicationInstance& WithReplicationInstanceClass(Aws::String&& value) { SetReplicationInstanceClass(value); return *this;}
120 
126  inline OrderableReplicationInstance& WithReplicationInstanceClass(const char* value) { SetReplicationInstanceClass(value); return *this;}
127 
131  inline const Aws::String& GetStorageType() const{ return m_storageType; }
132 
136  inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
137 
141  inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
142 
146  inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
147 
151  inline OrderableReplicationInstance& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
152 
156  inline OrderableReplicationInstance& WithStorageType(Aws::String&& value) { SetStorageType(value); return *this;}
157 
161  inline OrderableReplicationInstance& WithStorageType(const char* value) { SetStorageType(value); return *this;}
162 
167  inline int GetMinAllocatedStorage() const{ return m_minAllocatedStorage; }
168 
173  inline void SetMinAllocatedStorage(int value) { m_minAllocatedStorageHasBeenSet = true; m_minAllocatedStorage = value; }
174 
179  inline OrderableReplicationInstance& WithMinAllocatedStorage(int value) { SetMinAllocatedStorage(value); return *this;}
180 
185  inline int GetMaxAllocatedStorage() const{ return m_maxAllocatedStorage; }
186 
191  inline void SetMaxAllocatedStorage(int value) { m_maxAllocatedStorageHasBeenSet = true; m_maxAllocatedStorage = value; }
192 
197  inline OrderableReplicationInstance& WithMaxAllocatedStorage(int value) { SetMaxAllocatedStorage(value); return *this;}
198 
203  inline int GetDefaultAllocatedStorage() const{ return m_defaultAllocatedStorage; }
204 
209  inline void SetDefaultAllocatedStorage(int value) { m_defaultAllocatedStorageHasBeenSet = true; m_defaultAllocatedStorage = value; }
210 
215  inline OrderableReplicationInstance& WithDefaultAllocatedStorage(int value) { SetDefaultAllocatedStorage(value); return *this;}
216 
221  inline int GetIncludedAllocatedStorage() const{ return m_includedAllocatedStorage; }
222 
227  inline void SetIncludedAllocatedStorage(int value) { m_includedAllocatedStorageHasBeenSet = true; m_includedAllocatedStorage = value; }
228 
233  inline OrderableReplicationInstance& WithIncludedAllocatedStorage(int value) { SetIncludedAllocatedStorage(value); return *this;}
234 
235  private:
236  Aws::String m_engineVersion;
237  bool m_engineVersionHasBeenSet;
238  Aws::String m_replicationInstanceClass;
239  bool m_replicationInstanceClassHasBeenSet;
240  Aws::String m_storageType;
241  bool m_storageTypeHasBeenSet;
242  int m_minAllocatedStorage;
243  bool m_minAllocatedStorageHasBeenSet;
244  int m_maxAllocatedStorage;
245  bool m_maxAllocatedStorageHasBeenSet;
246  int m_defaultAllocatedStorage;
247  bool m_defaultAllocatedStorageHasBeenSet;
248  int m_includedAllocatedStorage;
249  bool m_includedAllocatedStorageHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace DatabaseMigrationService
254 } // 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).