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

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

/*
 * Copyright 2018-2023 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.AmazonWebServiceRequest;

/**
 * The request for an UpdateDataset operation
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateDatasetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A token that ensures idempotency. This token expires in 10 minutes. *

*/ private String clientToken; /** *

* The unique identifier for the Dataset to update. *

*/ private String datasetId; /** *

* A display title for the Dataset. *

*/ private String datasetTitle; /** *

* The format in which the 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 for the Dataset. *

*/ private String datasetDescription; /** *

* The unique resource identifier for a Dataset. *

*/ private String alias; /** *

* Definition for a schema on a tabular Dataset. *

*/ private SchemaUnion schemaDefinition; /** *

* A token that ensures idempotency. This token expires in 10 minutes. *

* * @param clientToken * A token that ensures idempotency. This token expires in 10 minutes. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A token that ensures idempotency. This token expires in 10 minutes. *

* * @return A token that ensures idempotency. This token expires in 10 minutes. */ public String getClientToken() { return this.clientToken; } /** *

* A token that ensures idempotency. This token expires in 10 minutes. *

* * @param clientToken * A token that ensures idempotency. This token expires in 10 minutes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDatasetRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The unique identifier for the Dataset to update. *

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

* The unique identifier for the Dataset to update. *

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

* The unique identifier for the Dataset to update. *

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

* A display title for the Dataset. *

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

* A display title for the Dataset. *

* * @return A display title for the Dataset. */ public String getDatasetTitle() { return this.datasetTitle; } /** *

* A display title for the Dataset. *

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

* The format in which the 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 the 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 the 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 the 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 the 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 the 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 UpdateDatasetRequest withKind(String kind) { setKind(kind); return this; } /** *

        * The format in which the 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 the 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 UpdateDatasetRequest withKind(DatasetKind kind) { this.kind = kind.toString(); return this; } /** *

          * A description for the Dataset. *

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

          * A description for the Dataset. *

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

          * A description for the Dataset. *

          * * @param datasetDescription * A description for the Dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDatasetRequest withDatasetDescription(String datasetDescription) { setDatasetDescription(datasetDescription); 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 UpdateDatasetRequest withAlias(String alias) { setAlias(alias); 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 UpdateDatasetRequest withSchemaDefinition(SchemaUnion schemaDefinition) { setSchemaDefinition(schemaDefinition); 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 (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getDatasetId() != null) sb.append("DatasetId: ").append(getDatasetId()).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 (getAlias() != null) sb.append("Alias: ").append(getAlias()).append(","); if (getSchemaDefinition() != null) sb.append("SchemaDefinition: ").append(getSchemaDefinition()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateDatasetRequest == false) return false; UpdateDatasetRequest other = (UpdateDatasetRequest) obj; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getDatasetId() == null ^ this.getDatasetId() == null) return false; if (other.getDatasetId() != null && other.getDatasetId().equals(this.getDatasetId()) == 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.getAlias() == null ^ this.getAlias() == null) return false; if (other.getAlias() != null && other.getAlias().equals(this.getAlias()) == false) return false; if (other.getSchemaDefinition() == null ^ this.getSchemaDefinition() == null) return false; if (other.getSchemaDefinition() != null && other.getSchemaDefinition().equals(this.getSchemaDefinition()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getDatasetId() == null) ? 0 : getDatasetId().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 + ((getAlias() == null) ? 0 : getAlias().hashCode()); hashCode = prime * hashCode + ((getSchemaDefinition() == null) ? 0 : getSchemaDefinition().hashCode()); return hashCode; } @Override public UpdateDatasetRequest clone() { return (UpdateDatasetRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy