/sdk/src/Services/RDS/Generated/Model/DBClusterSnapshot.cs

https://gitlab.com/CORP-RESELLER/aws-sdk-net · C# · 378 lines · 183 code · 38 blank · 157 comment · 12 complexity · 607dc8491992011fd14e0d4960f8d0cd MD5 · raw file

  1. /*
  2. * Copyright 2010-2014 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. /*
  16. * Do not modify this file. This file is generated from the rds-2014-10-31.normal.json service model.
  17. */
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Xml.Serialization;
  21. using System.Text;
  22. using System.IO;
  23. using Amazon.Runtime;
  24. using Amazon.Runtime.Internal;
  25. namespace Amazon.RDS.Model
  26. {
  27. /// <summary>
  28. /// Contains the result of a successful invocation of the following actions:
  29. ///
  30. /// <ul> <li>
  31. /// <para>
  32. /// <a>CreateDBClusterSnapshot</a>
  33. /// </para>
  34. /// </li> <li>
  35. /// <para>
  36. /// <a>DeleteDBClusterSnapshot</a>
  37. /// </para>
  38. /// </li> </ul>
  39. /// <para>
  40. /// This data type is used as a response element in the <a>DescribeDBClusterSnapshots</a>
  41. /// action.
  42. /// </para>
  43. /// </summary>
  44. public partial class DBClusterSnapshot
  45. {
  46. private int? _allocatedStorage;
  47. private List<string> _availabilityZones = new List<string>();
  48. private DateTime? _clusterCreateTime;
  49. private string _dbClusterIdentifier;
  50. private string _dbClusterSnapshotIdentifier;
  51. private string _engine;
  52. private string _engineVersion;
  53. private string _kmsKeyId;
  54. private string _licenseModel;
  55. private string _masterUsername;
  56. private int? _percentProgress;
  57. private int? _port;
  58. private DateTime? _snapshotCreateTime;
  59. private string _snapshotType;
  60. private string _status;
  61. private bool? _storageEncrypted;
  62. private string _vpcId;
  63. /// <summary>
  64. /// Gets and sets the property AllocatedStorage.
  65. /// <para>
  66. /// Specifies the allocated storage size in gigabytes (GB).
  67. /// </para>
  68. /// </summary>
  69. public int AllocatedStorage
  70. {
  71. get { return this._allocatedStorage.GetValueOrDefault(); }
  72. set { this._allocatedStorage = value; }
  73. }
  74. // Check to see if AllocatedStorage property is set
  75. internal bool IsSetAllocatedStorage()
  76. {
  77. return this._allocatedStorage.HasValue;
  78. }
  79. /// <summary>
  80. /// Gets and sets the property AvailabilityZones.
  81. /// <para>
  82. /// Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot
  83. /// can be restored in.
  84. /// </para>
  85. /// </summary>
  86. public List<string> AvailabilityZones
  87. {
  88. get { return this._availabilityZones; }
  89. set { this._availabilityZones = value; }
  90. }
  91. // Check to see if AvailabilityZones property is set
  92. internal bool IsSetAvailabilityZones()
  93. {
  94. return this._availabilityZones != null && this._availabilityZones.Count > 0;
  95. }
  96. /// <summary>
  97. /// Gets and sets the property ClusterCreateTime.
  98. /// <para>
  99. /// Specifies the time when the DB cluster was created, in Universal Coordinated Time
  100. /// (UTC).
  101. /// </para>
  102. /// </summary>
  103. public DateTime ClusterCreateTime
  104. {
  105. get { return this._clusterCreateTime.GetValueOrDefault(); }
  106. set { this._clusterCreateTime = value; }
  107. }
  108. // Check to see if ClusterCreateTime property is set
  109. internal bool IsSetClusterCreateTime()
  110. {
  111. return this._clusterCreateTime.HasValue;
  112. }
  113. /// <summary>
  114. /// Gets and sets the property DBClusterIdentifier.
  115. /// <para>
  116. /// Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot
  117. /// was created from.
  118. /// </para>
  119. /// </summary>
  120. public string DBClusterIdentifier
  121. {
  122. get { return this._dbClusterIdentifier; }
  123. set { this._dbClusterIdentifier = value; }
  124. }
  125. // Check to see if DBClusterIdentifier property is set
  126. internal bool IsSetDBClusterIdentifier()
  127. {
  128. return this._dbClusterIdentifier != null;
  129. }
  130. /// <summary>
  131. /// Gets and sets the property DBClusterSnapshotIdentifier.
  132. /// <para>
  133. /// Specifies the identifier for the DB cluster snapshot.
  134. /// </para>
  135. /// </summary>
  136. public string DBClusterSnapshotIdentifier
  137. {
  138. get { return this._dbClusterSnapshotIdentifier; }
  139. set { this._dbClusterSnapshotIdentifier = value; }
  140. }
  141. // Check to see if DBClusterSnapshotIdentifier property is set
  142. internal bool IsSetDBClusterSnapshotIdentifier()
  143. {
  144. return this._dbClusterSnapshotIdentifier != null;
  145. }
  146. /// <summary>
  147. /// Gets and sets the property Engine.
  148. /// <para>
  149. /// Specifies the name of the database engine.
  150. /// </para>
  151. /// </summary>
  152. public string Engine
  153. {
  154. get { return this._engine; }
  155. set { this._engine = value; }
  156. }
  157. // Check to see if Engine property is set
  158. internal bool IsSetEngine()
  159. {
  160. return this._engine != null;
  161. }
  162. /// <summary>
  163. /// Gets and sets the property EngineVersion.
  164. /// <para>
  165. /// Provides the version of the database engine for this DB cluster snapshot.
  166. /// </para>
  167. /// </summary>
  168. public string EngineVersion
  169. {
  170. get { return this._engineVersion; }
  171. set { this._engineVersion = value; }
  172. }
  173. // Check to see if EngineVersion property is set
  174. internal bool IsSetEngineVersion()
  175. {
  176. return this._engineVersion != null;
  177. }
  178. /// <summary>
  179. /// Gets and sets the property KmsKeyId.
  180. /// <para>
  181. /// If <code>StorageEncrypted</code> is true, the KMS key identifier for the encrypted
  182. /// DB cluster snapshot.
  183. /// </para>
  184. /// </summary>
  185. public string KmsKeyId
  186. {
  187. get { return this._kmsKeyId; }
  188. set { this._kmsKeyId = value; }
  189. }
  190. // Check to see if KmsKeyId property is set
  191. internal bool IsSetKmsKeyId()
  192. {
  193. return this._kmsKeyId != null;
  194. }
  195. /// <summary>
  196. /// Gets and sets the property LicenseModel.
  197. /// <para>
  198. /// Provides the license model information for this DB cluster snapshot.
  199. /// </para>
  200. /// </summary>
  201. public string LicenseModel
  202. {
  203. get { return this._licenseModel; }
  204. set { this._licenseModel = value; }
  205. }
  206. // Check to see if LicenseModel property is set
  207. internal bool IsSetLicenseModel()
  208. {
  209. return this._licenseModel != null;
  210. }
  211. /// <summary>
  212. /// Gets and sets the property MasterUsername.
  213. /// <para>
  214. /// Provides the master username for the DB cluster snapshot.
  215. /// </para>
  216. /// </summary>
  217. public string MasterUsername
  218. {
  219. get { return this._masterUsername; }
  220. set { this._masterUsername = value; }
  221. }
  222. // Check to see if MasterUsername property is set
  223. internal bool IsSetMasterUsername()
  224. {
  225. return this._masterUsername != null;
  226. }
  227. /// <summary>
  228. /// Gets and sets the property PercentProgress.
  229. /// <para>
  230. /// Specifies the percentage of the estimated data that has been transferred.
  231. /// </para>
  232. /// </summary>
  233. public int PercentProgress
  234. {
  235. get { return this._percentProgress.GetValueOrDefault(); }
  236. set { this._percentProgress = value; }
  237. }
  238. // Check to see if PercentProgress property is set
  239. internal bool IsSetPercentProgress()
  240. {
  241. return this._percentProgress.HasValue;
  242. }
  243. /// <summary>
  244. /// Gets and sets the property Port.
  245. /// <para>
  246. /// Specifies the port that the DB cluster was listening on at the time of the snapshot.
  247. /// </para>
  248. /// </summary>
  249. public int Port
  250. {
  251. get { return this._port.GetValueOrDefault(); }
  252. set { this._port = value; }
  253. }
  254. // Check to see if Port property is set
  255. internal bool IsSetPort()
  256. {
  257. return this._port.HasValue;
  258. }
  259. /// <summary>
  260. /// Gets and sets the property SnapshotCreateTime.
  261. /// <para>
  262. /// Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).
  263. /// </para>
  264. /// </summary>
  265. public DateTime SnapshotCreateTime
  266. {
  267. get { return this._snapshotCreateTime.GetValueOrDefault(); }
  268. set { this._snapshotCreateTime = value; }
  269. }
  270. // Check to see if SnapshotCreateTime property is set
  271. internal bool IsSetSnapshotCreateTime()
  272. {
  273. return this._snapshotCreateTime.HasValue;
  274. }
  275. /// <summary>
  276. /// Gets and sets the property SnapshotType.
  277. /// <para>
  278. /// Provides the type of the DB cluster snapshot.
  279. /// </para>
  280. /// </summary>
  281. public string SnapshotType
  282. {
  283. get { return this._snapshotType; }
  284. set { this._snapshotType = value; }
  285. }
  286. // Check to see if SnapshotType property is set
  287. internal bool IsSetSnapshotType()
  288. {
  289. return this._snapshotType != null;
  290. }
  291. /// <summary>
  292. /// Gets and sets the property Status.
  293. /// <para>
  294. /// Specifies the status of this DB cluster snapshot.
  295. /// </para>
  296. /// </summary>
  297. public string Status
  298. {
  299. get { return this._status; }
  300. set { this._status = value; }
  301. }
  302. // Check to see if Status property is set
  303. internal bool IsSetStatus()
  304. {
  305. return this._status != null;
  306. }
  307. /// <summary>
  308. /// Gets and sets the property StorageEncrypted.
  309. /// <para>
  310. /// Specifies whether the DB cluster snapshot is encrypted.
  311. /// </para>
  312. /// </summary>
  313. public bool StorageEncrypted
  314. {
  315. get { return this._storageEncrypted.GetValueOrDefault(); }
  316. set { this._storageEncrypted = value; }
  317. }
  318. // Check to see if StorageEncrypted property is set
  319. internal bool IsSetStorageEncrypted()
  320. {
  321. return this._storageEncrypted.HasValue;
  322. }
  323. /// <summary>
  324. /// Gets and sets the property VpcId.
  325. /// <para>
  326. /// Provides the VPC ID associated with the DB cluster snapshot.
  327. /// </para>
  328. /// </summary>
  329. public string VpcId
  330. {
  331. get { return this._vpcId; }
  332. set { this._vpcId = value; }
  333. }
  334. // Check to see if VpcId property is set
  335. internal bool IsSetVpcId()
  336. {
  337. return this._vpcId != null;
  338. }
  339. }
  340. }