/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include For a SQL-based Kinesis Data Analytics application, describes the mapping of
* each data element in the streaming source to the corresponding column in the
* in-application stream. Also used to describe the format of the reference
* data source.See Also:
AWS
* API Reference
The name of the column that is created in the in-application input stream or * reference table.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline RecordColumn& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline RecordColumn& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the column that is created in the in-application input stream or * reference table.
*/ inline RecordColumn& WithName(const char* value) { SetName(value); return *this;} /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline const Aws::String& GetMapping() const{ return m_mapping; } /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline bool MappingHasBeenSet() const { return m_mappingHasBeenSet; } /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline void SetMapping(const Aws::String& value) { m_mappingHasBeenSet = true; m_mapping = value; } /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline void SetMapping(Aws::String&& value) { m_mappingHasBeenSet = true; m_mapping = std::move(value); } /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline void SetMapping(const char* value) { m_mappingHasBeenSet = true; m_mapping.assign(value); } /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline RecordColumn& WithMapping(const Aws::String& value) { SetMapping(value); return *this;} /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline RecordColumn& WithMapping(Aws::String&& value) { SetMapping(std::move(value)); return *this;} /** *A reference to the data element in the streaming input or the reference data * source.
*/ inline RecordColumn& WithMapping(const char* value) { SetMapping(value); return *this;} /** *The type of column created in the in-application input stream or reference * table.
*/ inline const Aws::String& GetSqlType() const{ return m_sqlType; } /** *The type of column created in the in-application input stream or reference * table.
*/ inline bool SqlTypeHasBeenSet() const { return m_sqlTypeHasBeenSet; } /** *The type of column created in the in-application input stream or reference * table.
*/ inline void SetSqlType(const Aws::String& value) { m_sqlTypeHasBeenSet = true; m_sqlType = value; } /** *The type of column created in the in-application input stream or reference * table.
*/ inline void SetSqlType(Aws::String&& value) { m_sqlTypeHasBeenSet = true; m_sqlType = std::move(value); } /** *The type of column created in the in-application input stream or reference * table.
*/ inline void SetSqlType(const char* value) { m_sqlTypeHasBeenSet = true; m_sqlType.assign(value); } /** *The type of column created in the in-application input stream or reference * table.
*/ inline RecordColumn& WithSqlType(const Aws::String& value) { SetSqlType(value); return *this;} /** *The type of column created in the in-application input stream or reference * table.
*/ inline RecordColumn& WithSqlType(Aws::String&& value) { SetSqlType(std::move(value)); return *this;} /** *The type of column created in the in-application input stream or reference * table.
*/ inline RecordColumn& WithSqlType(const char* value) { SetSqlType(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_mapping; bool m_mappingHasBeenSet = false; Aws::String m_sqlType; bool m_sqlTypeHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws