/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RedshiftDataAPIService { namespace Model { /** *

The properties (metadata) of a column.

See Also:

AWS * API Reference

*/ class ColumnMetadata { public: AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata(); AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The default value of the column.

*/ inline const Aws::String& GetColumnDefault() const{ return m_columnDefault; } /** *

The default value of the column.

*/ inline bool ColumnDefaultHasBeenSet() const { return m_columnDefaultHasBeenSet; } /** *

The default value of the column.

*/ inline void SetColumnDefault(const Aws::String& value) { m_columnDefaultHasBeenSet = true; m_columnDefault = value; } /** *

The default value of the column.

*/ inline void SetColumnDefault(Aws::String&& value) { m_columnDefaultHasBeenSet = true; m_columnDefault = std::move(value); } /** *

The default value of the column.

*/ inline void SetColumnDefault(const char* value) { m_columnDefaultHasBeenSet = true; m_columnDefault.assign(value); } /** *

The default value of the column.

*/ inline ColumnMetadata& WithColumnDefault(const Aws::String& value) { SetColumnDefault(value); return *this;} /** *

The default value of the column.

*/ inline ColumnMetadata& WithColumnDefault(Aws::String&& value) { SetColumnDefault(std::move(value)); return *this;} /** *

The default value of the column.

*/ inline ColumnMetadata& WithColumnDefault(const char* value) { SetColumnDefault(value); return *this;} /** *

A value that indicates whether the column is case-sensitive.

*/ inline bool GetIsCaseSensitive() const{ return m_isCaseSensitive; } /** *

A value that indicates whether the column is case-sensitive.

*/ inline bool IsCaseSensitiveHasBeenSet() const { return m_isCaseSensitiveHasBeenSet; } /** *

A value that indicates whether the column is case-sensitive.

*/ inline void SetIsCaseSensitive(bool value) { m_isCaseSensitiveHasBeenSet = true; m_isCaseSensitive = value; } /** *

A value that indicates whether the column is case-sensitive.

*/ inline ColumnMetadata& WithIsCaseSensitive(bool value) { SetIsCaseSensitive(value); return *this;} /** *

A value that indicates whether the column contains currency values.

*/ inline bool GetIsCurrency() const{ return m_isCurrency; } /** *

A value that indicates whether the column contains currency values.

*/ inline bool IsCurrencyHasBeenSet() const { return m_isCurrencyHasBeenSet; } /** *

A value that indicates whether the column contains currency values.

*/ inline void SetIsCurrency(bool value) { m_isCurrencyHasBeenSet = true; m_isCurrency = value; } /** *

A value that indicates whether the column contains currency values.

*/ inline ColumnMetadata& WithIsCurrency(bool value) { SetIsCurrency(value); return *this;} /** *

A value that indicates whether an integer column is signed.

*/ inline bool GetIsSigned() const{ return m_isSigned; } /** *

A value that indicates whether an integer column is signed.

*/ inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; } /** *

A value that indicates whether an integer column is signed.

*/ inline void SetIsSigned(bool value) { m_isSignedHasBeenSet = true; m_isSigned = value; } /** *

A value that indicates whether an integer column is signed.

*/ inline ColumnMetadata& WithIsSigned(bool value) { SetIsSigned(value); return *this;} /** *

The label for the column.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The label for the column.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The label for the column.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The label for the column.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The label for the column.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The label for the column.

*/ inline ColumnMetadata& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The label for the column.

*/ inline ColumnMetadata& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The label for the column.

*/ inline ColumnMetadata& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

The length of the column.

*/ inline int GetLength() const{ return m_length; } /** *

The length of the column.

*/ inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; } /** *

The length of the column.

*/ inline void SetLength(int value) { m_lengthHasBeenSet = true; m_length = value; } /** *

The length of the column.

*/ inline ColumnMetadata& WithLength(int value) { SetLength(value); return *this;} /** *

The name of the column.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the column.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the column.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the column.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the column.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the column.

*/ inline ColumnMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the column.

*/ inline ColumnMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the column.

*/ inline ColumnMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

A value that indicates whether the column is nullable.

*/ inline int GetNullable() const{ return m_nullable; } /** *

A value that indicates whether the column is nullable.

*/ inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; } /** *

A value that indicates whether the column is nullable.

*/ inline void SetNullable(int value) { m_nullableHasBeenSet = true; m_nullable = value; } /** *

A value that indicates whether the column is nullable.

*/ inline ColumnMetadata& WithNullable(int value) { SetNullable(value); return *this;} /** *

The precision value of a decimal number column.

*/ inline int GetPrecision() const{ return m_precision; } /** *

The precision value of a decimal number column.

*/ inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; } /** *

The precision value of a decimal number column.

*/ inline void SetPrecision(int value) { m_precisionHasBeenSet = true; m_precision = value; } /** *

The precision value of a decimal number column.

*/ inline ColumnMetadata& WithPrecision(int value) { SetPrecision(value); return *this;} /** *

The scale value of a decimal number column.

*/ inline int GetScale() const{ return m_scale; } /** *

The scale value of a decimal number column.

*/ inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; } /** *

The scale value of a decimal number column.

*/ inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; } /** *

The scale value of a decimal number column.

*/ inline ColumnMetadata& WithScale(int value) { SetScale(value); return *this;} /** *

The name of the schema that contains the table that includes the column.

*/ inline const Aws::String& GetSchemaName() const{ return m_schemaName; } /** *

The name of the schema that contains the table that includes the column.

*/ inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; } /** *

The name of the schema that contains the table that includes the column.

*/ inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; } /** *

The name of the schema that contains the table that includes the column.

*/ inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); } /** *

The name of the schema that contains the table that includes the column.

*/ inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); } /** *

The name of the schema that contains the table that includes the column.

*/ inline ColumnMetadata& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;} /** *

The name of the schema that contains the table that includes the column.

*/ inline ColumnMetadata& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;} /** *

The name of the schema that contains the table that includes the column.

*/ inline ColumnMetadata& WithSchemaName(const char* value) { SetSchemaName(value); return *this;} /** *

The name of the table that includes the column.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the table that includes the column.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The name of the table that includes the column.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The name of the table that includes the column.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The name of the table that includes the column.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The name of the table that includes the column.

*/ inline ColumnMetadata& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the table that includes the column.

*/ inline ColumnMetadata& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the table that includes the column.

*/ inline ColumnMetadata& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

The database-specific data type of the column.

*/ inline const Aws::String& GetTypeName() const{ return m_typeName; } /** *

The database-specific data type of the column.

*/ inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } /** *

The database-specific data type of the column.

*/ inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } /** *

The database-specific data type of the column.

*/ inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } /** *

The database-specific data type of the column.

*/ inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } /** *

The database-specific data type of the column.

*/ inline ColumnMetadata& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} /** *

The database-specific data type of the column.

*/ inline ColumnMetadata& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} /** *

The database-specific data type of the column.

*/ inline ColumnMetadata& WithTypeName(const char* value) { SetTypeName(value); return *this;} private: Aws::String m_columnDefault; bool m_columnDefaultHasBeenSet = false; bool m_isCaseSensitive; bool m_isCaseSensitiveHasBeenSet = false; bool m_isCurrency; bool m_isCurrencyHasBeenSet = false; bool m_isSigned; bool m_isSignedHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; int m_length; bool m_lengthHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_nullable; bool m_nullableHasBeenSet = false; int m_precision; bool m_precisionHasBeenSet = false; int m_scale; bool m_scaleHasBeenSet = false; Aws::String m_schemaName; bool m_schemaNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; Aws::String m_typeName; bool m_typeNameHasBeenSet = false; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws