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

com.amazonaws.services.finspace.model.KxVolume 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.finspace.model;

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

/**
 * 

* The structure that contains the metadata of the volume. *

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

* A unique identifier for the volume. *

*/ private String volumeName; /** *

* The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. *

*/ private String volumeType; /** *

* The status of volume. *

*
    *
  • *

    * CREATING – The volume creation is in progress. *

    *
  • *
  • *

    * CREATE_FAILED – The volume creation has failed. *

    *
  • *
  • *

    * ACTIVE – The volume is active. *

    *
  • *
  • *

    * UPDATING – The volume is in the process of being updated. *

    *
  • *
  • *

    * UPDATE_FAILED – The update action failed. *

    *
  • *
  • *

    * UPDATED – The volume is successfully updated. *

    *
  • *
  • *

    * DELETING – The volume is in the process of being deleted. *

    *
  • *
  • *

    * DELETE_FAILED – The system failed to delete the volume. *

    *
  • *
  • *

    * DELETED – The volume is successfully deleted. *

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

* A description of the volume. *

*/ private String description; /** *

* The error message when a failed state occurs. *

*/ private String statusReason; /** *

* The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. *

*/ private String azMode; /** *

* The identifier of the availability zones. *

*/ private java.util.List availabilityZoneIds; /** *

* The timestamp at which the volume 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 java.util.Date createdTimestamp; /** *

* The last time that the volume was updated 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 java.util.Date lastModifiedTimestamp; /** *

* A unique identifier for the volume. *

* * @param volumeName * A unique identifier for the volume. */ public void setVolumeName(String volumeName) { this.volumeName = volumeName; } /** *

* A unique identifier for the volume. *

* * @return A unique identifier for the volume. */ public String getVolumeName() { return this.volumeName; } /** *

* A unique identifier for the volume. *

* * @param volumeName * A unique identifier for the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public KxVolume withVolumeName(String volumeName) { setVolumeName(volumeName); return this; } /** *

* The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. *

* * @param volumeType * The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. * @see KxVolumeType */ public void setVolumeType(String volumeType) { this.volumeType = volumeType; } /** *

* The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. *

* * @return The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. * @see KxVolumeType */ public String getVolumeType() { return this.volumeType; } /** *

* The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. *

* * @param volumeType * The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. * @return Returns a reference to this object so that method calls can be chained together. * @see KxVolumeType */ public KxVolume withVolumeType(String volumeType) { setVolumeType(volumeType); return this; } /** *

* The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. *

* * @param volumeType * The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. * @return Returns a reference to this object so that method calls can be chained together. * @see KxVolumeType */ public KxVolume withVolumeType(KxVolumeType volumeType) { this.volumeType = volumeType.toString(); return this; } /** *

* The status of volume. *

*
    *
  • *

    * CREATING – The volume creation is in progress. *

    *
  • *
  • *

    * CREATE_FAILED – The volume creation has failed. *

    *
  • *
  • *

    * ACTIVE – The volume is active. *

    *
  • *
  • *

    * UPDATING – The volume is in the process of being updated. *

    *
  • *
  • *

    * UPDATE_FAILED – The update action failed. *

    *
  • *
  • *

    * UPDATED – The volume is successfully updated. *

    *
  • *
  • *

    * DELETING – The volume is in the process of being deleted. *

    *
  • *
  • *

    * DELETE_FAILED – The system failed to delete the volume. *

    *
  • *
  • *

    * DELETED – The volume is successfully deleted. *

    *
  • *
* * @param status * The status of volume.

*
    *
  • *

    * CREATING – The volume creation is in progress. *

    *
  • *
  • *

    * CREATE_FAILED – The volume creation has failed. *

    *
  • *
  • *

    * ACTIVE – The volume is active. *

    *
  • *
  • *

    * UPDATING – The volume is in the process of being updated. *

    *
  • *
  • *

    * UPDATE_FAILED – The update action failed. *

    *
  • *
  • *

    * UPDATED – The volume is successfully updated. *

    *
  • *
  • *

    * DELETING – The volume is in the process of being deleted. *

    *
  • *
  • *

    * DELETE_FAILED – The system failed to delete the volume. *

    *
  • *
  • *

    * DELETED – The volume is successfully deleted. *

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

    * The status of volume. *

    *
      *
    • *

      * CREATING – The volume creation is in progress. *

      *
    • *
    • *

      * CREATE_FAILED – The volume creation has failed. *

      *
    • *
    • *

      * ACTIVE – The volume is active. *

      *
    • *
    • *

      * UPDATING – The volume is in the process of being updated. *

      *
    • *
    • *

      * UPDATE_FAILED – The update action failed. *

      *
    • *
    • *

      * UPDATED – The volume is successfully updated. *

      *
    • *
    • *

      * DELETING – The volume is in the process of being deleted. *

      *
    • *
    • *

      * DELETE_FAILED – The system failed to delete the volume. *

      *
    • *
    • *

      * DELETED – The volume is successfully deleted. *

      *
    • *
    * * @return The status of volume.

    *
      *
    • *

      * CREATING – The volume creation is in progress. *

      *
    • *
    • *

      * CREATE_FAILED – The volume creation has failed. *

      *
    • *
    • *

      * ACTIVE – The volume is active. *

      *
    • *
    • *

      * UPDATING – The volume is in the process of being updated. *

      *
    • *
    • *

      * UPDATE_FAILED – The update action failed. *

      *
    • *
    • *

      * UPDATED – The volume is successfully updated. *

      *
    • *
    • *

      * DELETING – The volume is in the process of being deleted. *

      *
    • *
    • *

      * DELETE_FAILED – The system failed to delete the volume. *

      *
    • *
    • *

      * DELETED – The volume is successfully deleted. *

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

      * The status of volume. *

      *
        *
      • *

        * CREATING – The volume creation is in progress. *

        *
      • *
      • *

        * CREATE_FAILED – The volume creation has failed. *

        *
      • *
      • *

        * ACTIVE – The volume is active. *

        *
      • *
      • *

        * UPDATING – The volume is in the process of being updated. *

        *
      • *
      • *

        * UPDATE_FAILED – The update action failed. *

        *
      • *
      • *

        * UPDATED – The volume is successfully updated. *

        *
      • *
      • *

        * DELETING – The volume is in the process of being deleted. *

        *
      • *
      • *

        * DELETE_FAILED – The system failed to delete the volume. *

        *
      • *
      • *

        * DELETED – The volume is successfully deleted. *

        *
      • *
      * * @param status * The status of volume.

      *
        *
      • *

        * CREATING – The volume creation is in progress. *

        *
      • *
      • *

        * CREATE_FAILED – The volume creation has failed. *

        *
      • *
      • *

        * ACTIVE – The volume is active. *

        *
      • *
      • *

        * UPDATING – The volume is in the process of being updated. *

        *
      • *
      • *

        * UPDATE_FAILED – The update action failed. *

        *
      • *
      • *

        * UPDATED – The volume is successfully updated. *

        *
      • *
      • *

        * DELETING – The volume is in the process of being deleted. *

        *
      • *
      • *

        * DELETE_FAILED – The system failed to delete the volume. *

        *
      • *
      • *

        * DELETED – The volume is successfully deleted. *

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

        * The status of volume. *

        *
          *
        • *

          * CREATING – The volume creation is in progress. *

          *
        • *
        • *

          * CREATE_FAILED – The volume creation has failed. *

          *
        • *
        • *

          * ACTIVE – The volume is active. *

          *
        • *
        • *

          * UPDATING – The volume is in the process of being updated. *

          *
        • *
        • *

          * UPDATE_FAILED – The update action failed. *

          *
        • *
        • *

          * UPDATED – The volume is successfully updated. *

          *
        • *
        • *

          * DELETING – The volume is in the process of being deleted. *

          *
        • *
        • *

          * DELETE_FAILED – The system failed to delete the volume. *

          *
        • *
        • *

          * DELETED – The volume is successfully deleted. *

          *
        • *
        * * @param status * The status of volume.

        *
          *
        • *

          * CREATING – The volume creation is in progress. *

          *
        • *
        • *

          * CREATE_FAILED – The volume creation has failed. *

          *
        • *
        • *

          * ACTIVE – The volume is active. *

          *
        • *
        • *

          * UPDATING – The volume is in the process of being updated. *

          *
        • *
        • *

          * UPDATE_FAILED – The update action failed. *

          *
        • *
        • *

          * UPDATED – The volume is successfully updated. *

          *
        • *
        • *

          * DELETING – The volume is in the process of being deleted. *

          *
        • *
        • *

          * DELETE_FAILED – The system failed to delete the volume. *

          *
        • *
        • *

          * DELETED – The volume is successfully deleted. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see KxVolumeStatus */ public KxVolume withStatus(KxVolumeStatus status) { this.status = status.toString(); return this; } /** *

          * A description of the volume. *

          * * @param description * A description of the volume. */ public void setDescription(String description) { this.description = description; } /** *

          * A description of the volume. *

          * * @return A description of the volume. */ public String getDescription() { return this.description; } /** *

          * A description of the volume. *

          * * @param description * A description of the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public KxVolume withDescription(String description) { setDescription(description); return this; } /** *

          * The error message when a failed state occurs. *

          * * @param statusReason * The error message when a failed state occurs. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

          * The error message when a failed state occurs. *

          * * @return The error message when a failed state occurs. */ public String getStatusReason() { return this.statusReason; } /** *

          * The error message when a failed state occurs. *

          * * @param statusReason * The error message when a failed state occurs. * @return Returns a reference to this object so that method calls can be chained together. */ public KxVolume withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *

          * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. *

          * * @param azMode * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. * @see KxAzMode */ public void setAzMode(String azMode) { this.azMode = azMode; } /** *

          * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. *

          * * @return The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. * @see KxAzMode */ public String getAzMode() { return this.azMode; } /** *

          * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. *

          * * @param azMode * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. * @return Returns a reference to this object so that method calls can be chained together. * @see KxAzMode */ public KxVolume withAzMode(String azMode) { setAzMode(azMode); return this; } /** *

          * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. *

          * * @param azMode * The number of availability zones you want to assign per volume. Currently, FinSpace only supports * SINGLE for volumes. This places dataview in a single AZ. * @return Returns a reference to this object so that method calls can be chained together. * @see KxAzMode */ public KxVolume withAzMode(KxAzMode azMode) { this.azMode = azMode.toString(); return this; } /** *

          * The identifier of the availability zones. *

          * * @return The identifier of the availability zones. */ public java.util.List getAvailabilityZoneIds() { return availabilityZoneIds; } /** *

          * The identifier of the availability zones. *

          * * @param availabilityZoneIds * The identifier of the availability zones. */ public void setAvailabilityZoneIds(java.util.Collection availabilityZoneIds) { if (availabilityZoneIds == null) { this.availabilityZoneIds = null; return; } this.availabilityZoneIds = new java.util.ArrayList(availabilityZoneIds); } /** *

          * The identifier of the availability zones. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailabilityZoneIds(java.util.Collection)} or {@link #withAvailabilityZoneIds(java.util.Collection)} * if you want to override the existing values. *

          * * @param availabilityZoneIds * The identifier of the availability zones. * @return Returns a reference to this object so that method calls can be chained together. */ public KxVolume withAvailabilityZoneIds(String... availabilityZoneIds) { if (this.availabilityZoneIds == null) { setAvailabilityZoneIds(new java.util.ArrayList(availabilityZoneIds.length)); } for (String ele : availabilityZoneIds) { this.availabilityZoneIds.add(ele); } return this; } /** *

          * The identifier of the availability zones. *

          * * @param availabilityZoneIds * The identifier of the availability zones. * @return Returns a reference to this object so that method calls can be chained together. */ public KxVolume withAvailabilityZoneIds(java.util.Collection availabilityZoneIds) { setAvailabilityZoneIds(availabilityZoneIds); return this; } /** *

          * The timestamp at which the volume 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 createdTimestamp * The timestamp at which the volume 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 setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** *

          * The timestamp at which the volume 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 volume 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 java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** *

          * The timestamp at which the volume 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 createdTimestamp * The timestamp at which the volume 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 KxVolume withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** *

          * The last time that the volume was updated 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 lastModifiedTimestamp * The last time that the volume was updated 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 setLastModifiedTimestamp(java.util.Date lastModifiedTimestamp) { this.lastModifiedTimestamp = lastModifiedTimestamp; } /** *

          * The last time that the volume was updated 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 last time that the volume was updated 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 java.util.Date getLastModifiedTimestamp() { return this.lastModifiedTimestamp; } /** *

          * The last time that the volume was updated 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 lastModifiedTimestamp * The last time that the volume was updated 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 KxVolume withLastModifiedTimestamp(java.util.Date lastModifiedTimestamp) { setLastModifiedTimestamp(lastModifiedTimestamp); 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 (getVolumeName() != null) sb.append("VolumeName: ").append(getVolumeName()).append(","); if (getVolumeType() != null) sb.append("VolumeType: ").append(getVolumeType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getAzMode() != null) sb.append("AzMode: ").append(getAzMode()).append(","); if (getAvailabilityZoneIds() != null) sb.append("AvailabilityZoneIds: ").append(getAvailabilityZoneIds()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); if (getLastModifiedTimestamp() != null) sb.append("LastModifiedTimestamp: ").append(getLastModifiedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KxVolume == false) return false; KxVolume other = (KxVolume) obj; if (other.getVolumeName() == null ^ this.getVolumeName() == null) return false; if (other.getVolumeName() != null && other.getVolumeName().equals(this.getVolumeName()) == false) return false; if (other.getVolumeType() == null ^ this.getVolumeType() == null) return false; if (other.getVolumeType() != null && other.getVolumeType().equals(this.getVolumeType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getAzMode() == null ^ this.getAzMode() == null) return false; if (other.getAzMode() != null && other.getAzMode().equals(this.getAzMode()) == false) return false; if (other.getAvailabilityZoneIds() == null ^ this.getAvailabilityZoneIds() == null) return false; if (other.getAvailabilityZoneIds() != null && other.getAvailabilityZoneIds().equals(this.getAvailabilityZoneIds()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; if (other.getLastModifiedTimestamp() == null ^ this.getLastModifiedTimestamp() == null) return false; if (other.getLastModifiedTimestamp() != null && other.getLastModifiedTimestamp().equals(this.getLastModifiedTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVolumeName() == null) ? 0 : getVolumeName().hashCode()); hashCode = prime * hashCode + ((getVolumeType() == null) ? 0 : getVolumeType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getAzMode() == null) ? 0 : getAzMode().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZoneIds() == null) ? 0 : getAvailabilityZoneIds().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTimestamp() == null) ? 0 : getLastModifiedTimestamp().hashCode()); return hashCode; } @Override public KxVolume clone() { try { return (KxVolume) 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.finspace.model.transform.KxVolumeMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy