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

com.amazonaws.services.finspacedata.model.GetDatasetResult 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;

/**
 * Response for the GetDataset operation
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetDatasetResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The unique identifier for a Dataset. *

*/ private String datasetId; /** *

* The ARN identifier of the Dataset. *

*/ private String datasetArn; /** *

* Display title for a Dataset. *

*/ private String datasetTitle; /** *

* The format in which Dataset data is structured. *

*
    *
  • *

    * TABULAR – Data is structured in a tabular format. *

    *
  • *
  • *

    * NON_TABULAR – Data is structured in a non-tabular format. *

    *
  • *
*/ private String kind; /** *

* A description of the Dataset. *

*/ private String datasetDescription; /** *

* The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

*/ private Long createTime; /** *

* The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

*/ private Long lastModifiedTime; /** *

* Definition for a schema on a tabular Dataset. *

*/ private SchemaUnion schemaDefinition; /** *

* The unique resource identifier for a Dataset. *

*/ private String alias; /** *

* Status of the Dataset creation. *

*
    *
  • *

    * PENDING – Dataset is pending creation. *

    *
  • *
  • *

    * FAILED – Dataset creation has failed. *

    *
  • *
  • *

    * SUCCESS – Dataset creation has succeeded. *

    *
  • *
  • *

    * RUNNING – Dataset creation is running. *

    *
  • *
*/ private String status; /** *

* The unique identifier for a Dataset. *

* * @param datasetId * The unique identifier for a Dataset. */ public void setDatasetId(String datasetId) { this.datasetId = datasetId; } /** *

* The unique identifier for a Dataset. *

* * @return The unique identifier for a Dataset. */ public String getDatasetId() { return this.datasetId; } /** *

* The unique identifier for a Dataset. *

* * @param datasetId * The unique identifier for a Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withDatasetId(String datasetId) { setDatasetId(datasetId); return this; } /** *

* The ARN identifier of the Dataset. *

* * @param datasetArn * The ARN identifier of the Dataset. */ public void setDatasetArn(String datasetArn) { this.datasetArn = datasetArn; } /** *

* The ARN identifier of the Dataset. *

* * @return The ARN identifier of the Dataset. */ public String getDatasetArn() { return this.datasetArn; } /** *

* The ARN identifier of the Dataset. *

* * @param datasetArn * The ARN identifier of the Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withDatasetArn(String datasetArn) { setDatasetArn(datasetArn); return this; } /** *

* Display title for a Dataset. *

* * @param datasetTitle * Display title for a Dataset. */ public void setDatasetTitle(String datasetTitle) { this.datasetTitle = datasetTitle; } /** *

* Display title for a Dataset. *

* * @return Display title for a Dataset. */ public String getDatasetTitle() { return this.datasetTitle; } /** *

* Display title for a Dataset. *

* * @param datasetTitle * Display title for a Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withDatasetTitle(String datasetTitle) { setDatasetTitle(datasetTitle); return this; } /** *

* The format in which Dataset data is structured. *

*
    *
  • *

    * TABULAR – Data is structured in a tabular format. *

    *
  • *
  • *

    * NON_TABULAR – Data is structured in a non-tabular format. *

    *
  • *
* * @param kind * The format in which Dataset data is structured.

*
    *
  • *

    * TABULAR – Data is structured in a tabular format. *

    *
  • *
  • *

    * NON_TABULAR – Data is structured in a non-tabular format. *

    *
  • * @see DatasetKind */ public void setKind(String kind) { this.kind = kind; } /** *

    * The format in which Dataset data is structured. *

    *
      *
    • *

      * TABULAR – Data is structured in a tabular format. *

      *
    • *
    • *

      * NON_TABULAR – Data is structured in a non-tabular format. *

      *
    • *
    * * @return The format in which Dataset data is structured.

    *
      *
    • *

      * TABULAR – Data is structured in a tabular format. *

      *
    • *
    • *

      * NON_TABULAR – Data is structured in a non-tabular format. *

      *
    • * @see DatasetKind */ public String getKind() { return this.kind; } /** *

      * The format in which Dataset data is structured. *

      *
        *
      • *

        * TABULAR – Data is structured in a tabular format. *

        *
      • *
      • *

        * NON_TABULAR – Data is structured in a non-tabular format. *

        *
      • *
      * * @param kind * The format in which Dataset data is structured.

      *
        *
      • *

        * TABULAR – Data is structured in a tabular format. *

        *
      • *
      • *

        * NON_TABULAR – Data is structured in a non-tabular format. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetKind */ public GetDatasetResult withKind(String kind) { setKind(kind); return this; } /** *

        * The format in which Dataset data is structured. *

        *
          *
        • *

          * TABULAR – Data is structured in a tabular format. *

          *
        • *
        • *

          * NON_TABULAR – Data is structured in a non-tabular format. *

          *
        • *
        * * @param kind * The format in which Dataset data is structured.

        *
          *
        • *

          * TABULAR – Data is structured in a tabular format. *

          *
        • *
        • *

          * NON_TABULAR – Data is structured in a non-tabular format. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetKind */ public GetDatasetResult withKind(DatasetKind kind) { this.kind = kind.toString(); return this; } /** *

          * A description of the Dataset. *

          * * @param datasetDescription * A description of the Dataset. */ public void setDatasetDescription(String datasetDescription) { this.datasetDescription = datasetDescription; } /** *

          * A description of the Dataset. *

          * * @return A description of the Dataset. */ public String getDatasetDescription() { return this.datasetDescription; } /** *

          * A description of the Dataset. *

          * * @param datasetDescription * A description of the Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withDatasetDescription(String datasetDescription) { setDatasetDescription(datasetDescription); return this; } /** *

          * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

          * * @param createTime * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as * 1635768000000. */ public void setCreateTime(Long createTime) { this.createTime = createTime; } /** *

          * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

          * * @return The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as * 1635768000000. */ public Long getCreateTime() { return this.createTime; } /** *

          * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

          * * @param createTime * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as * 1635768000000. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withCreateTime(Long createTime) { setCreateTime(createTime); return this; } /** *

          * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

          * * @param lastModifiedTime * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For * example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. */ public void setLastModifiedTime(Long lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

          * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

          * * @return The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For * example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. */ public Long getLastModifiedTime() { return this.lastModifiedTime; } /** *

          * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *

          * * @param lastModifiedTime * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For * example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withLastModifiedTime(Long lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

          * Definition for a schema on a tabular Dataset. *

          * * @param schemaDefinition * Definition for a schema on a tabular Dataset. */ public void setSchemaDefinition(SchemaUnion schemaDefinition) { this.schemaDefinition = schemaDefinition; } /** *

          * Definition for a schema on a tabular Dataset. *

          * * @return Definition for a schema on a tabular Dataset. */ public SchemaUnion getSchemaDefinition() { return this.schemaDefinition; } /** *

          * Definition for a schema on a tabular Dataset. *

          * * @param schemaDefinition * Definition for a schema on a tabular Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withSchemaDefinition(SchemaUnion schemaDefinition) { setSchemaDefinition(schemaDefinition); return this; } /** *

          * The unique resource identifier for a Dataset. *

          * * @param alias * The unique resource identifier for a Dataset. */ public void setAlias(String alias) { this.alias = alias; } /** *

          * The unique resource identifier for a Dataset. *

          * * @return The unique resource identifier for a Dataset. */ public String getAlias() { return this.alias; } /** *

          * The unique resource identifier for a Dataset. *

          * * @param alias * The unique resource identifier for a Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatasetResult withAlias(String alias) { setAlias(alias); return this; } /** *

          * Status of the Dataset creation. *

          *
            *
          • *

            * PENDING – Dataset is pending creation. *

            *
          • *
          • *

            * FAILED – Dataset creation has failed. *

            *
          • *
          • *

            * SUCCESS – Dataset creation has succeeded. *

            *
          • *
          • *

            * RUNNING – Dataset creation is running. *

            *
          • *
          * * @param status * Status of the Dataset creation.

          *
            *
          • *

            * PENDING – Dataset is pending creation. *

            *
          • *
          • *

            * FAILED – Dataset creation has failed. *

            *
          • *
          • *

            * SUCCESS – Dataset creation has succeeded. *

            *
          • *
          • *

            * RUNNING – Dataset creation is running. *

            *
          • * @see DatasetStatus */ public void setStatus(String status) { this.status = status; } /** *

            * Status of the Dataset creation. *

            *
              *
            • *

              * PENDING – Dataset is pending creation. *

              *
            • *
            • *

              * FAILED – Dataset creation has failed. *

              *
            • *
            • *

              * SUCCESS – Dataset creation has succeeded. *

              *
            • *
            • *

              * RUNNING – Dataset creation is running. *

              *
            • *
            * * @return Status of the Dataset creation.

            *
              *
            • *

              * PENDING – Dataset is pending creation. *

              *
            • *
            • *

              * FAILED – Dataset creation has failed. *

              *
            • *
            • *

              * SUCCESS – Dataset creation has succeeded. *

              *
            • *
            • *

              * RUNNING – Dataset creation is running. *

              *
            • * @see DatasetStatus */ public String getStatus() { return this.status; } /** *

              * Status of the Dataset creation. *

              *
                *
              • *

                * PENDING – Dataset is pending creation. *

                *
              • *
              • *

                * FAILED – Dataset creation has failed. *

                *
              • *
              • *

                * SUCCESS – Dataset creation has succeeded. *

                *
              • *
              • *

                * RUNNING – Dataset creation is running. *

                *
              • *
              * * @param status * Status of the Dataset creation.

              *
                *
              • *

                * PENDING – Dataset is pending creation. *

                *
              • *
              • *

                * FAILED – Dataset creation has failed. *

                *
              • *
              • *

                * SUCCESS – Dataset creation has succeeded. *

                *
              • *
              • *

                * RUNNING – Dataset creation is running. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetStatus */ public GetDatasetResult withStatus(String status) { setStatus(status); return this; } /** *

                * Status of the Dataset creation. *

                *
                  *
                • *

                  * PENDING – Dataset is pending creation. *

                  *
                • *
                • *

                  * FAILED – Dataset creation has failed. *

                  *
                • *
                • *

                  * SUCCESS – Dataset creation has succeeded. *

                  *
                • *
                • *

                  * RUNNING – Dataset creation is running. *

                  *
                • *
                * * @param status * Status of the Dataset creation.

                *
                  *
                • *

                  * PENDING – Dataset is pending creation. *

                  *
                • *
                • *

                  * FAILED – Dataset creation has failed. *

                  *
                • *
                • *

                  * SUCCESS – Dataset creation has succeeded. *

                  *
                • *
                • *

                  * RUNNING – Dataset creation is running. *

                  *
                • * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetStatus */ public GetDatasetResult withStatus(DatasetStatus status) { this.status = status.toString(); 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 (getDatasetId() != null) sb.append("DatasetId: ").append(getDatasetId()).append(","); if (getDatasetArn() != null) sb.append("DatasetArn: ").append(getDatasetArn()).append(","); if (getDatasetTitle() != null) sb.append("DatasetTitle: ").append(getDatasetTitle()).append(","); if (getKind() != null) sb.append("Kind: ").append(getKind()).append(","); if (getDatasetDescription() != null) sb.append("DatasetDescription: ").append(getDatasetDescription()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getSchemaDefinition() != null) sb.append("SchemaDefinition: ").append(getSchemaDefinition()).append(","); if (getAlias() != null) sb.append("Alias: ").append(getAlias()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDatasetResult == false) return false; GetDatasetResult other = (GetDatasetResult) obj; if (other.getDatasetId() == null ^ this.getDatasetId() == null) return false; if (other.getDatasetId() != null && other.getDatasetId().equals(this.getDatasetId()) == false) return false; if (other.getDatasetArn() == null ^ this.getDatasetArn() == null) return false; if (other.getDatasetArn() != null && other.getDatasetArn().equals(this.getDatasetArn()) == false) return false; if (other.getDatasetTitle() == null ^ this.getDatasetTitle() == null) return false; if (other.getDatasetTitle() != null && other.getDatasetTitle().equals(this.getDatasetTitle()) == false) return false; if (other.getKind() == null ^ this.getKind() == null) return false; if (other.getKind() != null && other.getKind().equals(this.getKind()) == false) return false; if (other.getDatasetDescription() == null ^ this.getDatasetDescription() == null) return false; if (other.getDatasetDescription() != null && other.getDatasetDescription().equals(this.getDatasetDescription()) == false) return false; if (other.getCreateTime() == null ^ this.getCreateTime() == null) return false; if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getSchemaDefinition() == null ^ this.getSchemaDefinition() == null) return false; if (other.getSchemaDefinition() != null && other.getSchemaDefinition().equals(this.getSchemaDefinition()) == false) return false; if (other.getAlias() == null ^ this.getAlias() == null) return false; if (other.getAlias() != null && other.getAlias().equals(this.getAlias()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatasetId() == null) ? 0 : getDatasetId().hashCode()); hashCode = prime * hashCode + ((getDatasetArn() == null) ? 0 : getDatasetArn().hashCode()); hashCode = prime * hashCode + ((getDatasetTitle() == null) ? 0 : getDatasetTitle().hashCode()); hashCode = prime * hashCode + ((getKind() == null) ? 0 : getKind().hashCode()); hashCode = prime * hashCode + ((getDatasetDescription() == null) ? 0 : getDatasetDescription().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getSchemaDefinition() == null) ? 0 : getSchemaDefinition().hashCode()); hashCode = prime * hashCode + ((getAlias() == null) ? 0 : getAlias().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public GetDatasetResult clone() { try { return (GetDatasetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy