All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.finspacedata.model.ColumnDefinition Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.finspacedata.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The definition of a column in a tabular Dataset. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ColumnDefinition implements Serializable, Cloneable, StructuredPojo { /** *

* Data type of a column. *

*
    *
  • *

    * STRING – A String data type. *

    *

    * CHAR – A char data type. *

    *

    * INTEGER – An integer data type. *

    *

    * TINYINT – A tinyint data type. *

    *

    * SMALLINT – A smallint data type. *

    *

    * BIGINT – A bigint data type. *

    *

    * FLOAT – A float data type. *

    *

    * DOUBLE – A double data type. *

    *

    * DATE – A date data type. *

    *

    * DATETIME – A datetime data type. *

    *

    * BOOLEAN – A boolean data type. *

    *

    * BINARY – A binary data type. *

    *
  • *
*/ private String dataType; /** *

* The name of a column. *

*/ private String columnName; /** *

* Description for a column. *

*/ private String columnDescription; /** *

* Data type of a column. *

*
    *
  • *

    * STRING – A String data type. *

    *

    * CHAR – A char data type. *

    *

    * INTEGER – An integer data type. *

    *

    * TINYINT – A tinyint data type. *

    *

    * SMALLINT – A smallint data type. *

    *

    * BIGINT – A bigint data type. *

    *

    * FLOAT – A float data type. *

    *

    * DOUBLE – A double data type. *

    *

    * DATE – A date data type. *

    *

    * DATETIME – A datetime data type. *

    *

    * BOOLEAN – A boolean data type. *

    *

    * BINARY – A binary data type. *

    *
  • *
* * @param dataType * Data type of a column.

*
    *
  • *

    * STRING – A String data type. *

    *

    * CHAR – A char data type. *

    *

    * INTEGER – An integer data type. *

    *

    * TINYINT – A tinyint data type. *

    *

    * SMALLINT – A smallint data type. *

    *

    * BIGINT – A bigint data type. *

    *

    * FLOAT – A float data type. *

    *

    * DOUBLE – A double data type. *

    *

    * DATE – A date data type. *

    *

    * DATETIME – A datetime data type. *

    *

    * BOOLEAN – A boolean data type. *

    *

    * BINARY – A binary data type. *

    *
  • * @see ColumnDataType */ public void setDataType(String dataType) { this.dataType = dataType; } /** *

    * Data type of a column. *

    *
      *
    • *

      * STRING – A String data type. *

      *

      * CHAR – A char data type. *

      *

      * INTEGER – An integer data type. *

      *

      * TINYINT – A tinyint data type. *

      *

      * SMALLINT – A smallint data type. *

      *

      * BIGINT – A bigint data type. *

      *

      * FLOAT – A float data type. *

      *

      * DOUBLE – A double data type. *

      *

      * DATE – A date data type. *

      *

      * DATETIME – A datetime data type. *

      *

      * BOOLEAN – A boolean data type. *

      *

      * BINARY – A binary data type. *

      *
    • *
    * * @return Data type of a column.

    *
      *
    • *

      * STRING – A String data type. *

      *

      * CHAR – A char data type. *

      *

      * INTEGER – An integer data type. *

      *

      * TINYINT – A tinyint data type. *

      *

      * SMALLINT – A smallint data type. *

      *

      * BIGINT – A bigint data type. *

      *

      * FLOAT – A float data type. *

      *

      * DOUBLE – A double data type. *

      *

      * DATE – A date data type. *

      *

      * DATETIME – A datetime data type. *

      *

      * BOOLEAN – A boolean data type. *

      *

      * BINARY – A binary data type. *

      *
    • * @see ColumnDataType */ public String getDataType() { return this.dataType; } /** *

      * Data type of a column. *

      *
        *
      • *

        * STRING – A String data type. *

        *

        * CHAR – A char data type. *

        *

        * INTEGER – An integer data type. *

        *

        * TINYINT – A tinyint data type. *

        *

        * SMALLINT – A smallint data type. *

        *

        * BIGINT – A bigint data type. *

        *

        * FLOAT – A float data type. *

        *

        * DOUBLE – A double data type. *

        *

        * DATE – A date data type. *

        *

        * DATETIME – A datetime data type. *

        *

        * BOOLEAN – A boolean data type. *

        *

        * BINARY – A binary data type. *

        *
      • *
      * * @param dataType * Data type of a column.

      *
        *
      • *

        * STRING – A String data type. *

        *

        * CHAR – A char data type. *

        *

        * INTEGER – An integer data type. *

        *

        * TINYINT – A tinyint data type. *

        *

        * SMALLINT – A smallint data type. *

        *

        * BIGINT – A bigint data type. *

        *

        * FLOAT – A float data type. *

        *

        * DOUBLE – A double data type. *

        *

        * DATE – A date data type. *

        *

        * DATETIME – A datetime data type. *

        *

        * BOOLEAN – A boolean data type. *

        *

        * BINARY – A binary data type. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ColumnDataType */ public ColumnDefinition withDataType(String dataType) { setDataType(dataType); return this; } /** *

        * Data type of a column. *

        *
          *
        • *

          * STRING – A String data type. *

          *

          * CHAR – A char data type. *

          *

          * INTEGER – An integer data type. *

          *

          * TINYINT – A tinyint data type. *

          *

          * SMALLINT – A smallint data type. *

          *

          * BIGINT – A bigint data type. *

          *

          * FLOAT – A float data type. *

          *

          * DOUBLE – A double data type. *

          *

          * DATE – A date data type. *

          *

          * DATETIME – A datetime data type. *

          *

          * BOOLEAN – A boolean data type. *

          *

          * BINARY – A binary data type. *

          *
        • *
        * * @param dataType * Data type of a column.

        *
          *
        • *

          * STRING – A String data type. *

          *

          * CHAR – A char data type. *

          *

          * INTEGER – An integer data type. *

          *

          * TINYINT – A tinyint data type. *

          *

          * SMALLINT – A smallint data type. *

          *

          * BIGINT – A bigint data type. *

          *

          * FLOAT – A float data type. *

          *

          * DOUBLE – A double data type. *

          *

          * DATE – A date data type. *

          *

          * DATETIME – A datetime data type. *

          *

          * BOOLEAN – A boolean data type. *

          *

          * BINARY – A binary data type. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ColumnDataType */ public ColumnDefinition withDataType(ColumnDataType dataType) { this.dataType = dataType.toString(); return this; } /** *

          * The name of a column. *

          * * @param columnName * The name of a column. */ public void setColumnName(String columnName) { this.columnName = columnName; } /** *

          * The name of a column. *

          * * @return The name of a column. */ public String getColumnName() { return this.columnName; } /** *

          * The name of a column. *

          * * @param columnName * The name of a column. * @return Returns a reference to this object so that method calls can be chained together. */ public ColumnDefinition withColumnName(String columnName) { setColumnName(columnName); return this; } /** *

          * Description for a column. *

          * * @param columnDescription * Description for a column. */ public void setColumnDescription(String columnDescription) { this.columnDescription = columnDescription; } /** *

          * Description for a column. *

          * * @return Description for a column. */ public String getColumnDescription() { return this.columnDescription; } /** *

          * Description for a column. *

          * * @param columnDescription * Description for a column. * @return Returns a reference to this object so that method calls can be chained together. */ public ColumnDefinition withColumnDescription(String columnDescription) { setColumnDescription(columnDescription); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDataType() != null) sb.append("DataType: ").append(getDataType()).append(","); if (getColumnName() != null) sb.append("ColumnName: ").append(getColumnName()).append(","); if (getColumnDescription() != null) sb.append("ColumnDescription: ").append(getColumnDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ColumnDefinition == false) return false; ColumnDefinition other = (ColumnDefinition) obj; if (other.getDataType() == null ^ this.getDataType() == null) return false; if (other.getDataType() != null && other.getDataType().equals(this.getDataType()) == false) return false; if (other.getColumnName() == null ^ this.getColumnName() == null) return false; if (other.getColumnName() != null && other.getColumnName().equals(this.getColumnName()) == false) return false; if (other.getColumnDescription() == null ^ this.getColumnDescription() == null) return false; if (other.getColumnDescription() != null && other.getColumnDescription().equals(this.getColumnDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); hashCode = prime * hashCode + ((getColumnName() == null) ? 0 : getColumnName().hashCode()); hashCode = prime * hashCode + ((getColumnDescription() == null) ? 0 : getColumnDescription().hashCode()); return hashCode; } @Override public ColumnDefinition clone() { try { return (ColumnDefinition) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.finspacedata.model.transform.ColumnDefinitionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy