481 lines
14 KiB
C
481 lines
14 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/rds-data/RDSDataService_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace RDSDataService
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Contains the metadata for a column.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ColumnMetadata">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_RDSDATASERVICE_API ColumnMetadata
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ColumnMetadata();
|
|||
|
|
ColumnMetadata(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
ColumnMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetArrayBaseColumnType() const{ return m_arrayBaseColumnType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ArrayBaseColumnTypeHasBeenSet() const { return m_arrayBaseColumnTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetArrayBaseColumnType(int value) { m_arrayBaseColumnTypeHasBeenSet = true; m_arrayBaseColumnType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithArrayBaseColumnType(int value) { SetArrayBaseColumnType(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column increments automatically.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetIsAutoIncrement() const{ return m_isAutoIncrement; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column increments automatically.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IsAutoIncrementHasBeenSet() const { return m_isAutoIncrementHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column increments automatically.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIsAutoIncrement(bool value) { m_isAutoIncrementHasBeenSet = true; m_isAutoIncrement = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column increments automatically.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithIsAutoIncrement(bool value) { SetIsAutoIncrement(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is case-sensitive.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetIsCaseSensitive() const{ return m_isCaseSensitive; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is case-sensitive.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IsCaseSensitiveHasBeenSet() const { return m_isCaseSensitiveHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is case-sensitive.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIsCaseSensitive(bool value) { m_isCaseSensitiveHasBeenSet = true; m_isCaseSensitive = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is case-sensitive.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithIsCaseSensitive(bool value) { SetIsCaseSensitive(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column contains currency values.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetIsCurrency() const{ return m_isCurrency; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column contains currency values.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IsCurrencyHasBeenSet() const { return m_isCurrencyHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column contains currency values.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIsCurrency(bool value) { m_isCurrencyHasBeenSet = true; m_isCurrency = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column contains currency values.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithIsCurrency(bool value) { SetIsCurrency(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether an integer column is signed.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetIsSigned() const{ return m_isSigned; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether an integer column is signed.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether an integer column is signed.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIsSigned(bool value) { m_isSignedHasBeenSet = true; m_isSigned = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether an integer column is signed.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithIsSigned(bool value) { SetIsSigned(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetLabel() const{ return m_label; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The label for the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithLabel(const char* value) { SetLabel(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is nullable.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetNullable() const{ return m_nullable; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is nullable.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is nullable.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNullable(int value) { m_nullableHasBeenSet = true; m_nullable = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that indicates whether the column is nullable.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithNullable(int value) { SetNullable(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The precision value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetPrecision() const{ return m_precision; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The precision value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The precision value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPrecision(int value) { m_precisionHasBeenSet = true; m_precision = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The precision value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithPrecision(int value) { SetPrecision(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scale value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetScale() const{ return m_scale; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scale value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scale value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scale value of a decimal number column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithScale(int value) { SetScale(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the schema that owns the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTableName() const{ return m_tableName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the table that includes the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithTableName(const char* value) { SetTableName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetType() const{ return m_type; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(int value) { m_typeHasBeenSet = true; m_type = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithType(int value) { SetType(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTypeName() const{ return m_typeName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The database-specific data type of the column.</p>
|
|||
|
|
*/
|
|||
|
|
inline ColumnMetadata& WithTypeName(const char* value) { SetTypeName(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
int m_arrayBaseColumnType;
|
|||
|
|
bool m_arrayBaseColumnTypeHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_isAutoIncrement;
|
|||
|
|
bool m_isAutoIncrementHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_isCaseSensitive;
|
|||
|
|
bool m_isCaseSensitiveHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_isCurrency;
|
|||
|
|
bool m_isCurrencyHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_isSigned;
|
|||
|
|
bool m_isSignedHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_label;
|
|||
|
|
bool m_labelHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_nullable;
|
|||
|
|
bool m_nullableHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_precision;
|
|||
|
|
bool m_precisionHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_scale;
|
|||
|
|
bool m_scaleHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_schemaName;
|
|||
|
|
bool m_schemaNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_tableName;
|
|||
|
|
bool m_tableNameHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_type;
|
|||
|
|
bool m_typeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_typeName;
|
|||
|
|
bool m_typeNameHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace RDSDataService
|
|||
|
|
} // namespace Aws
|