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

com.amazonaws.services.iotsitewise.model.DescribeStorageConfigurationResult Maven / Gradle / Ivy

/*
 * Copyright 2016-2021 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.iotsitewise.model;

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

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

    /**
     * 

* The storage tier that you specified for your data. The storageType parameter can be one of the * following values: *

*
    *
  • *

    * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

    *
  • *
  • *

    * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. The cold * tier is a customer-managed Amazon S3 bucket. *

    *
  • *
*/ private String storageType; /** *

* Contains information about the storage destination. *

*/ private MultiLayerStorage multiLayerStorage; /** *

* Contains the storage configuration for time series (data streams) that aren't associated with asset properties. * The disassociatedDataStorage can be one of the following values: *

*
    *
  • *

    * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

    * *

    * After the disassociatedDataStorage is enabled, you can't disable it. *

    *
  • *
  • *

    * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset * properties. *

    *
  • *
*

* For more information, see Data streams in the IoT * SiteWise User Guide. *

*/ private String disassociatedDataStorage; /** *

* How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier. *

*/ private RetentionPeriod retentionPeriod; private ConfigurationStatus configurationStatus; /** *

* The date the storage configuration was last updated, in Unix epoch time. *

*/ private java.util.Date lastUpdateDate; /** *

* The storage tier that you specified for your data. The storageType parameter can be one of the * following values: *

*
    *
  • *

    * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

    *
  • *
  • *

    * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. The cold * tier is a customer-managed Amazon S3 bucket. *

    *
  • *
* * @param storageType * The storage tier that you specified for your data. The storageType parameter can be one of * the following values:

*
    *
  • *

    * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

    *
  • *
  • *

    * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. * The cold tier is a customer-managed Amazon S3 bucket. *

    *
  • * @see StorageType */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *

    * The storage tier that you specified for your data. The storageType parameter can be one of the * following values: *

    *
      *
    • *

      * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

      *
    • *
    • *

      * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. The cold * tier is a customer-managed Amazon S3 bucket. *

      *
    • *
    * * @return The storage tier that you specified for your data. The storageType parameter can be one of * the following values:

    *
      *
    • *

      * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

      *
    • *
    • *

      * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. * The cold tier is a customer-managed Amazon S3 bucket. *

      *
    • * @see StorageType */ public String getStorageType() { return this.storageType; } /** *

      * The storage tier that you specified for your data. The storageType parameter can be one of the * following values: *

      *
        *
      • *

        * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

        *
      • *
      • *

        * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. The cold * tier is a customer-managed Amazon S3 bucket. *

        *
      • *
      * * @param storageType * The storage tier that you specified for your data. The storageType parameter can be one of * the following values:

      *
        *
      • *

        * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

        *
      • *
      • *

        * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. * The cold tier is a customer-managed Amazon S3 bucket. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see StorageType */ public DescribeStorageConfigurationResult withStorageType(String storageType) { setStorageType(storageType); return this; } /** *

        * The storage tier that you specified for your data. The storageType parameter can be one of the * following values: *

        *
          *
        • *

          * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

          *
        • *
        • *

          * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. The cold * tier is a customer-managed Amazon S3 bucket. *

          *
        • *
        * * @param storageType * The storage tier that you specified for your data. The storageType parameter can be one of * the following values:

        *
          *
        • *

          * SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a * service-managed database. *

          *
        • *
        • *

          * MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the cold tier. * The cold tier is a customer-managed Amazon S3 bucket. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see StorageType */ public DescribeStorageConfigurationResult withStorageType(StorageType storageType) { this.storageType = storageType.toString(); return this; } /** *

          * Contains information about the storage destination. *

          * * @param multiLayerStorage * Contains information about the storage destination. */ public void setMultiLayerStorage(MultiLayerStorage multiLayerStorage) { this.multiLayerStorage = multiLayerStorage; } /** *

          * Contains information about the storage destination. *

          * * @return Contains information about the storage destination. */ public MultiLayerStorage getMultiLayerStorage() { return this.multiLayerStorage; } /** *

          * Contains information about the storage destination. *

          * * @param multiLayerStorage * Contains information about the storage destination. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageConfigurationResult withMultiLayerStorage(MultiLayerStorage multiLayerStorage) { setMultiLayerStorage(multiLayerStorage); return this; } /** *

          * Contains the storage configuration for time series (data streams) that aren't associated with asset properties. * The disassociatedDataStorage can be one of the following values: *

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset * properties. *

            *
          • *
          *

          * For more information, see Data streams in the IoT * SiteWise User Guide. *

          * * @param disassociatedDataStorage * Contains the storage configuration for time series (data streams) that aren't associated with asset * properties. The disassociatedDataStorage can be one of the following values:

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with * asset properties. *

            *
          • *
          *

          * For more information, see Data streams in the * IoT SiteWise User Guide. * @see DisassociatedDataStorageState */ public void setDisassociatedDataStorage(String disassociatedDataStorage) { this.disassociatedDataStorage = disassociatedDataStorage; } /** *

          * Contains the storage configuration for time series (data streams) that aren't associated with asset properties. * The disassociatedDataStorage can be one of the following values: *

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset * properties. *

            *
          • *
          *

          * For more information, see Data streams in the IoT * SiteWise User Guide. *

          * * @return Contains the storage configuration for time series (data streams) that aren't associated with asset * properties. The disassociatedDataStorage can be one of the following values:

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated * with asset properties. *

            *
          • *
          *

          * For more information, see Data streams in * the IoT SiteWise User Guide. * @see DisassociatedDataStorageState */ public String getDisassociatedDataStorage() { return this.disassociatedDataStorage; } /** *

          * Contains the storage configuration for time series (data streams) that aren't associated with asset properties. * The disassociatedDataStorage can be one of the following values: *

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset * properties. *

            *
          • *
          *

          * For more information, see Data streams in the IoT * SiteWise User Guide. *

          * * @param disassociatedDataStorage * Contains the storage configuration for time series (data streams) that aren't associated with asset * properties. The disassociatedDataStorage can be one of the following values:

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with * asset properties. *

            *
          • *
          *

          * For more information, see Data streams in the * IoT SiteWise User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see DisassociatedDataStorageState */ public DescribeStorageConfigurationResult withDisassociatedDataStorage(String disassociatedDataStorage) { setDisassociatedDataStorage(disassociatedDataStorage); return this; } /** *

          * Contains the storage configuration for time series (data streams) that aren't associated with asset properties. * The disassociatedDataStorage can be one of the following values: *

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset * properties. *

            *
          • *
          *

          * For more information, see Data streams in the IoT * SiteWise User Guide. *

          * * @param disassociatedDataStorage * Contains the storage configuration for time series (data streams) that aren't associated with asset * properties. The disassociatedDataStorage can be one of the following values:

          *
            *
          • *

            * ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. *

            * *

            * After the disassociatedDataStorage is enabled, you can't disable it. *

            *
          • *
          • *

            * DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with * asset properties. *

            *
          • *
          *

          * For more information, see Data streams in the * IoT SiteWise User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see DisassociatedDataStorageState */ public DescribeStorageConfigurationResult withDisassociatedDataStorage(DisassociatedDataStorageState disassociatedDataStorage) { this.disassociatedDataStorage = disassociatedDataStorage.toString(); return this; } /** *

          * How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier. *

          * * @param retentionPeriod * How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot * tier. */ public void setRetentionPeriod(RetentionPeriod retentionPeriod) { this.retentionPeriod = retentionPeriod; } /** *

          * How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier. *

          * * @return How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot * tier. */ public RetentionPeriod getRetentionPeriod() { return this.retentionPeriod; } /** *

          * How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier. *

          * * @param retentionPeriod * How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot * tier. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageConfigurationResult withRetentionPeriod(RetentionPeriod retentionPeriod) { setRetentionPeriod(retentionPeriod); return this; } /** * @param configurationStatus */ public void setConfigurationStatus(ConfigurationStatus configurationStatus) { this.configurationStatus = configurationStatus; } /** * @return */ public ConfigurationStatus getConfigurationStatus() { return this.configurationStatus; } /** * @param configurationStatus * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageConfigurationResult withConfigurationStatus(ConfigurationStatus configurationStatus) { setConfigurationStatus(configurationStatus); return this; } /** *

          * The date the storage configuration was last updated, in Unix epoch time. *

          * * @param lastUpdateDate * The date the storage configuration was last updated, in Unix epoch time. */ public void setLastUpdateDate(java.util.Date lastUpdateDate) { this.lastUpdateDate = lastUpdateDate; } /** *

          * The date the storage configuration was last updated, in Unix epoch time. *

          * * @return The date the storage configuration was last updated, in Unix epoch time. */ public java.util.Date getLastUpdateDate() { return this.lastUpdateDate; } /** *

          * The date the storage configuration was last updated, in Unix epoch time. *

          * * @param lastUpdateDate * The date the storage configuration was last updated, in Unix epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageConfigurationResult withLastUpdateDate(java.util.Date lastUpdateDate) { setLastUpdateDate(lastUpdateDate); 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 (getStorageType() != null) sb.append("StorageType: ").append(getStorageType()).append(","); if (getMultiLayerStorage() != null) sb.append("MultiLayerStorage: ").append(getMultiLayerStorage()).append(","); if (getDisassociatedDataStorage() != null) sb.append("DisassociatedDataStorage: ").append(getDisassociatedDataStorage()).append(","); if (getRetentionPeriod() != null) sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(","); if (getConfigurationStatus() != null) sb.append("ConfigurationStatus: ").append(getConfigurationStatus()).append(","); if (getLastUpdateDate() != null) sb.append("LastUpdateDate: ").append(getLastUpdateDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStorageConfigurationResult == false) return false; DescribeStorageConfigurationResult other = (DescribeStorageConfigurationResult) obj; if (other.getStorageType() == null ^ this.getStorageType() == null) return false; if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == false) return false; if (other.getMultiLayerStorage() == null ^ this.getMultiLayerStorage() == null) return false; if (other.getMultiLayerStorage() != null && other.getMultiLayerStorage().equals(this.getMultiLayerStorage()) == false) return false; if (other.getDisassociatedDataStorage() == null ^ this.getDisassociatedDataStorage() == null) return false; if (other.getDisassociatedDataStorage() != null && other.getDisassociatedDataStorage().equals(this.getDisassociatedDataStorage()) == 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.getConfigurationStatus() == null ^ this.getConfigurationStatus() == null) return false; if (other.getConfigurationStatus() != null && other.getConfigurationStatus().equals(this.getConfigurationStatus()) == false) return false; if (other.getLastUpdateDate() == null ^ this.getLastUpdateDate() == null) return false; if (other.getLastUpdateDate() != null && other.getLastUpdateDate().equals(this.getLastUpdateDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); hashCode = prime * hashCode + ((getMultiLayerStorage() == null) ? 0 : getMultiLayerStorage().hashCode()); hashCode = prime * hashCode + ((getDisassociatedDataStorage() == null) ? 0 : getDisassociatedDataStorage().hashCode()); hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode()); hashCode = prime * hashCode + ((getConfigurationStatus() == null) ? 0 : getConfigurationStatus().hashCode()); hashCode = prime * hashCode + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode()); return hashCode; } @Override public DescribeStorageConfigurationResult clone() { try { return (DescribeStorageConfigurationResult) 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