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

com.amazonaws.services.iotanalytics.model.UpdateDatastoreRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Analytics module holds the client classes that are used for communicating with AWS IoT Analytics Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.iotanalytics.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the data store to be updated. *

*/ private String datastoreName; /** *

* How long, in days, message data is kept for the data store. The retention period can't be updated if the data * store's Amazon S3 storage is customer-managed. *

*/ private RetentionPeriod retentionPeriod; /** *

* Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is * serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created. *

*/ private DatastoreStorage datastoreStorage; /** *

* Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet. *

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. *

*/ private FileFormatConfiguration fileFormatConfiguration; /** *

* The name of the data store to be updated. *

* * @param datastoreName * The name of the data store to be updated. */ public void setDatastoreName(String datastoreName) { this.datastoreName = datastoreName; } /** *

* The name of the data store to be updated. *

* * @return The name of the data store to be updated. */ public String getDatastoreName() { return this.datastoreName; } /** *

* The name of the data store to be updated. *

* * @param datastoreName * The name of the data store to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDatastoreRequest withDatastoreName(String datastoreName) { setDatastoreName(datastoreName); return this; } /** *

* How long, in days, message data is kept for the data store. The retention period can't be updated if the data * store's Amazon S3 storage is customer-managed. *

* * @param retentionPeriod * How long, in days, message data is kept for the data store. The retention period can't be updated if the * data store's Amazon S3 storage is customer-managed. */ public void setRetentionPeriod(RetentionPeriod retentionPeriod) { this.retentionPeriod = retentionPeriod; } /** *

* How long, in days, message data is kept for the data store. The retention period can't be updated if the data * store's Amazon S3 storage is customer-managed. *

* * @return How long, in days, message data is kept for the data store. The retention period can't be updated if the * data store's Amazon S3 storage is customer-managed. */ public RetentionPeriod getRetentionPeriod() { return this.retentionPeriod; } /** *

* How long, in days, message data is kept for the data store. The retention period can't be updated if the data * store's Amazon S3 storage is customer-managed. *

* * @param retentionPeriod * How long, in days, message data is kept for the data store. The retention period can't be updated if the * data store's Amazon S3 storage is customer-managed. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDatastoreRequest withRetentionPeriod(RetentionPeriod retentionPeriod) { setRetentionPeriod(retentionPeriod); return this; } /** *

* Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is * serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created. *

* * @param datastoreStorage * Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default * is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store * is created. */ public void setDatastoreStorage(DatastoreStorage datastoreStorage) { this.datastoreStorage = datastoreStorage; } /** *

* Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is * serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created. *

* * @return Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default * is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store * is created. */ public DatastoreStorage getDatastoreStorage() { return this.datastoreStorage; } /** *

* Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is * serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created. *

* * @param datastoreStorage * Where data in a data store is stored.. You can choose serviceManagedS3 storage, * customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default * is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store * is created. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDatastoreRequest withDatastoreStorage(DatastoreStorage datastoreStorage) { setDatastoreStorage(datastoreStorage); return this; } /** *

* Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet. *

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. *

* * @param fileFormatConfiguration * Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. */ public void setFileFormatConfiguration(FileFormatConfiguration fileFormatConfiguration) { this.fileFormatConfiguration = fileFormatConfiguration; } /** *

* Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet. *

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. *

* * @return Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. */ public FileFormatConfiguration getFileFormatConfiguration() { return this.fileFormatConfiguration; } /** *

* Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet. *

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. *

* * @param fileFormatConfiguration * Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

*

* The default file format is JSON. You can specify only one format. *

*

* You can't change the file format after you create the data store. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDatastoreRequest withFileFormatConfiguration(FileFormatConfiguration fileFormatConfiguration) { setFileFormatConfiguration(fileFormatConfiguration); 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 (getDatastoreName() != null) sb.append("DatastoreName: ").append(getDatastoreName()).append(","); if (getRetentionPeriod() != null) sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(","); if (getDatastoreStorage() != null) sb.append("DatastoreStorage: ").append(getDatastoreStorage()).append(","); if (getFileFormatConfiguration() != null) sb.append("FileFormatConfiguration: ").append(getFileFormatConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateDatastoreRequest == false) return false; UpdateDatastoreRequest other = (UpdateDatastoreRequest) obj; if (other.getDatastoreName() == null ^ this.getDatastoreName() == null) return false; if (other.getDatastoreName() != null && other.getDatastoreName().equals(this.getDatastoreName()) == false) return false; if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null) return false; if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false) return false; if (other.getDatastoreStorage() == null ^ this.getDatastoreStorage() == null) return false; if (other.getDatastoreStorage() != null && other.getDatastoreStorage().equals(this.getDatastoreStorage()) == false) return false; if (other.getFileFormatConfiguration() == null ^ this.getFileFormatConfiguration() == null) return false; if (other.getFileFormatConfiguration() != null && other.getFileFormatConfiguration().equals(this.getFileFormatConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatastoreName() == null) ? 0 : getDatastoreName().hashCode()); hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode()); hashCode = prime * hashCode + ((getDatastoreStorage() == null) ? 0 : getDatastoreStorage().hashCode()); hashCode = prime * hashCode + ((getFileFormatConfiguration() == null) ? 0 : getFileFormatConfiguration().hashCode()); return hashCode; } @Override public UpdateDatastoreRequest clone() { return (UpdateDatastoreRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy