1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/glue/Glue_EXPORTS.h> 8 9 namespace Aws 10 { 11 namespace Utils 12 { 13 namespace Json 14 { 15 class JsonValue; 16 class JsonView; 17 } // namespace Json 18 } // namespace Utils 19 namespace Glue 20 { 21 namespace Model 22 { 23 24 /** 25 * <p>A structure containing the schema version information.</p><p><h3>See 26 * Also:</h3> <a 27 * href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SchemaVersionNumber">AWS 28 * API Reference</a></p> 29 */ 30 class AWS_GLUE_API SchemaVersionNumber 31 { 32 public: 33 SchemaVersionNumber(); 34 SchemaVersionNumber(Aws::Utils::Json::JsonView jsonValue); 35 SchemaVersionNumber& operator=(Aws::Utils::Json::JsonView jsonValue); 36 Aws::Utils::Json::JsonValue Jsonize() const; 37 38 39 /** 40 * <p>The latest version available for the schema.</p> 41 */ GetLatestVersion()42 inline bool GetLatestVersion() const{ return m_latestVersion; } 43 44 /** 45 * <p>The latest version available for the schema.</p> 46 */ LatestVersionHasBeenSet()47 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; } 48 49 /** 50 * <p>The latest version available for the schema.</p> 51 */ SetLatestVersion(bool value)52 inline void SetLatestVersion(bool value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; } 53 54 /** 55 * <p>The latest version available for the schema.</p> 56 */ WithLatestVersion(bool value)57 inline SchemaVersionNumber& WithLatestVersion(bool value) { SetLatestVersion(value); return *this;} 58 59 60 /** 61 * <p>The version number of the schema.</p> 62 */ GetVersionNumber()63 inline long long GetVersionNumber() const{ return m_versionNumber; } 64 65 /** 66 * <p>The version number of the schema.</p> 67 */ VersionNumberHasBeenSet()68 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } 69 70 /** 71 * <p>The version number of the schema.</p> 72 */ SetVersionNumber(long long value)73 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } 74 75 /** 76 * <p>The version number of the schema.</p> 77 */ WithVersionNumber(long long value)78 inline SchemaVersionNumber& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} 79 80 private: 81 82 bool m_latestVersion; 83 bool m_latestVersionHasBeenSet; 84 85 long long m_versionNumber; 86 bool m_versionNumberHasBeenSet; 87 }; 88 89 } // namespace Model 90 } // namespace Glue 91 } // namespace Aws 92