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

com.amazonaws.services.datasync.model.NetAppONTAPVolume Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
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.datasync.model;

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

/**
 * 

* The information that DataSync Discovery collects about a volume in your on-premises storage system. *

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

* The name of the volume. *

*/ private String volumeName; /** *

* The universally unique identifier (UUID) of the volume. *

*/ private String resourceId; /** *

* The number of CIFS shares in the volume. *

*/ private Long cifsShareCount; /** *

* The volume's security style (such as Unix or NTFS). *

*/ private String securityStyle; /** *

* The UUID of the storage virtual machine (SVM) associated with the volume. *

*/ private String svmUuid; /** *

* The name of the SVM associated with the volume. *

*/ private String svmName; /** *

* The storage space that's being used in the volume. *

*/ private Long capacityUsed; /** *

* The total storage space that's available in the volume. *

*/ private Long capacityProvisioned; /** *

* The storage space that's being used in the volume without accounting for compression or deduplication. *

*/ private Long logicalCapacityUsed; /** *

* The number of NFS volumes in the volume. *

*/ private Boolean nfsExported; /** *

* The amount of storage in the volume that's being used for snapshots. *

*/ private Long snapshotCapacityUsed; /** *

* The performance data that DataSync Discovery collects about the volume. *

*/ private MaxP95Performance maxP95Performance; /** *

* The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more information, * see * Recommendations provided by DataSync Discovery. *

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

* Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or can't be * determined. *

*

* For more information, see Recommendation statuses. *

*/ private String recommendationStatus; /** *

* The number of LUNs (logical unit numbers) in the volume. *

*/ private Long lunCount; /** *

* The name of the volume. *

* * @param volumeName * The name of the volume. */ public void setVolumeName(String volumeName) { this.volumeName = volumeName; } /** *

* The name of the volume. *

* * @return The name of the volume. */ public String getVolumeName() { return this.volumeName; } /** *

* The name of the volume. *

* * @param volumeName * The name of the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withVolumeName(String volumeName) { setVolumeName(volumeName); return this; } /** *

* The universally unique identifier (UUID) of the volume. *

* * @param resourceId * The universally unique identifier (UUID) of the volume. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* The universally unique identifier (UUID) of the volume. *

* * @return The universally unique identifier (UUID) of the volume. */ public String getResourceId() { return this.resourceId; } /** *

* The universally unique identifier (UUID) of the volume. *

* * @param resourceId * The universally unique identifier (UUID) of the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

* The number of CIFS shares in the volume. *

* * @param cifsShareCount * The number of CIFS shares in the volume. */ public void setCifsShareCount(Long cifsShareCount) { this.cifsShareCount = cifsShareCount; } /** *

* The number of CIFS shares in the volume. *

* * @return The number of CIFS shares in the volume. */ public Long getCifsShareCount() { return this.cifsShareCount; } /** *

* The number of CIFS shares in the volume. *

* * @param cifsShareCount * The number of CIFS shares in the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withCifsShareCount(Long cifsShareCount) { setCifsShareCount(cifsShareCount); return this; } /** *

* The volume's security style (such as Unix or NTFS). *

* * @param securityStyle * The volume's security style (such as Unix or NTFS). */ public void setSecurityStyle(String securityStyle) { this.securityStyle = securityStyle; } /** *

* The volume's security style (such as Unix or NTFS). *

* * @return The volume's security style (such as Unix or NTFS). */ public String getSecurityStyle() { return this.securityStyle; } /** *

* The volume's security style (such as Unix or NTFS). *

* * @param securityStyle * The volume's security style (such as Unix or NTFS). * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withSecurityStyle(String securityStyle) { setSecurityStyle(securityStyle); return this; } /** *

* The UUID of the storage virtual machine (SVM) associated with the volume. *

* * @param svmUuid * The UUID of the storage virtual machine (SVM) associated with the volume. */ public void setSvmUuid(String svmUuid) { this.svmUuid = svmUuid; } /** *

* The UUID of the storage virtual machine (SVM) associated with the volume. *

* * @return The UUID of the storage virtual machine (SVM) associated with the volume. */ public String getSvmUuid() { return this.svmUuid; } /** *

* The UUID of the storage virtual machine (SVM) associated with the volume. *

* * @param svmUuid * The UUID of the storage virtual machine (SVM) associated with the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withSvmUuid(String svmUuid) { setSvmUuid(svmUuid); return this; } /** *

* The name of the SVM associated with the volume. *

* * @param svmName * The name of the SVM associated with the volume. */ public void setSvmName(String svmName) { this.svmName = svmName; } /** *

* The name of the SVM associated with the volume. *

* * @return The name of the SVM associated with the volume. */ public String getSvmName() { return this.svmName; } /** *

* The name of the SVM associated with the volume. *

* * @param svmName * The name of the SVM associated with the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withSvmName(String svmName) { setSvmName(svmName); return this; } /** *

* The storage space that's being used in the volume. *

* * @param capacityUsed * The storage space that's being used in the volume. */ public void setCapacityUsed(Long capacityUsed) { this.capacityUsed = capacityUsed; } /** *

* The storage space that's being used in the volume. *

* * @return The storage space that's being used in the volume. */ public Long getCapacityUsed() { return this.capacityUsed; } /** *

* The storage space that's being used in the volume. *

* * @param capacityUsed * The storage space that's being used in the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withCapacityUsed(Long capacityUsed) { setCapacityUsed(capacityUsed); return this; } /** *

* The total storage space that's available in the volume. *

* * @param capacityProvisioned * The total storage space that's available in the volume. */ public void setCapacityProvisioned(Long capacityProvisioned) { this.capacityProvisioned = capacityProvisioned; } /** *

* The total storage space that's available in the volume. *

* * @return The total storage space that's available in the volume. */ public Long getCapacityProvisioned() { return this.capacityProvisioned; } /** *

* The total storage space that's available in the volume. *

* * @param capacityProvisioned * The total storage space that's available in the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withCapacityProvisioned(Long capacityProvisioned) { setCapacityProvisioned(capacityProvisioned); return this; } /** *

* The storage space that's being used in the volume without accounting for compression or deduplication. *

* * @param logicalCapacityUsed * The storage space that's being used in the volume without accounting for compression or deduplication. */ public void setLogicalCapacityUsed(Long logicalCapacityUsed) { this.logicalCapacityUsed = logicalCapacityUsed; } /** *

* The storage space that's being used in the volume without accounting for compression or deduplication. *

* * @return The storage space that's being used in the volume without accounting for compression or deduplication. */ public Long getLogicalCapacityUsed() { return this.logicalCapacityUsed; } /** *

* The storage space that's being used in the volume without accounting for compression or deduplication. *

* * @param logicalCapacityUsed * The storage space that's being used in the volume without accounting for compression or deduplication. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withLogicalCapacityUsed(Long logicalCapacityUsed) { setLogicalCapacityUsed(logicalCapacityUsed); return this; } /** *

* The number of NFS volumes in the volume. *

* * @param nfsExported * The number of NFS volumes in the volume. */ public void setNfsExported(Boolean nfsExported) { this.nfsExported = nfsExported; } /** *

* The number of NFS volumes in the volume. *

* * @return The number of NFS volumes in the volume. */ public Boolean getNfsExported() { return this.nfsExported; } /** *

* The number of NFS volumes in the volume. *

* * @param nfsExported * The number of NFS volumes in the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withNfsExported(Boolean nfsExported) { setNfsExported(nfsExported); return this; } /** *

* The number of NFS volumes in the volume. *

* * @return The number of NFS volumes in the volume. */ public Boolean isNfsExported() { return this.nfsExported; } /** *

* The amount of storage in the volume that's being used for snapshots. *

* * @param snapshotCapacityUsed * The amount of storage in the volume that's being used for snapshots. */ public void setSnapshotCapacityUsed(Long snapshotCapacityUsed) { this.snapshotCapacityUsed = snapshotCapacityUsed; } /** *

* The amount of storage in the volume that's being used for snapshots. *

* * @return The amount of storage in the volume that's being used for snapshots. */ public Long getSnapshotCapacityUsed() { return this.snapshotCapacityUsed; } /** *

* The amount of storage in the volume that's being used for snapshots. *

* * @param snapshotCapacityUsed * The amount of storage in the volume that's being used for snapshots. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withSnapshotCapacityUsed(Long snapshotCapacityUsed) { setSnapshotCapacityUsed(snapshotCapacityUsed); return this; } /** *

* The performance data that DataSync Discovery collects about the volume. *

* * @param maxP95Performance * The performance data that DataSync Discovery collects about the volume. */ public void setMaxP95Performance(MaxP95Performance maxP95Performance) { this.maxP95Performance = maxP95Performance; } /** *

* The performance data that DataSync Discovery collects about the volume. *

* * @return The performance data that DataSync Discovery collects about the volume. */ public MaxP95Performance getMaxP95Performance() { return this.maxP95Performance; } /** *

* The performance data that DataSync Discovery collects about the volume. *

* * @param maxP95Performance * The performance data that DataSync Discovery collects about the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withMaxP95Performance(MaxP95Performance maxP95Performance) { setMaxP95Performance(maxP95Performance); return this; } /** *

* The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more information, * see * Recommendations provided by DataSync Discovery. *

* * @return The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more * information, see Recommendations provided by DataSync Discovery. */ public java.util.List getRecommendations() { return recommendations; } /** *

* The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more information, * see * Recommendations provided by DataSync Discovery. *

* * @param recommendations * The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more * information, see Recommendations provided by DataSync Discovery. */ public void setRecommendations(java.util.Collection recommendations) { if (recommendations == null) { this.recommendations = null; return; } this.recommendations = new java.util.ArrayList(recommendations); } /** *

* The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more information, * see * Recommendations provided by DataSync Discovery. *

*

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

* * @param recommendations * The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more * information, see Recommendations provided by DataSync Discovery. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withRecommendations(Recommendation... recommendations) { if (this.recommendations == null) { setRecommendations(new java.util.ArrayList(recommendations.length)); } for (Recommendation ele : recommendations) { this.recommendations.add(ele); } return this; } /** *

* The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more information, * see * Recommendations provided by DataSync Discovery. *

* * @param recommendations * The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more * information, see Recommendations provided by DataSync Discovery. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withRecommendations(java.util.Collection recommendations) { setRecommendations(recommendations); return this; } /** *

* Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or can't be * determined. *

*

* For more information, see Recommendation statuses. *

* * @param recommendationStatus * Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or * can't be determined.

*

* For more information, see Recommendation statuses. * @see RecommendationStatus */ public void setRecommendationStatus(String recommendationStatus) { this.recommendationStatus = recommendationStatus; } /** *

* Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or can't be * determined. *

*

* For more information, see Recommendation statuses. *

* * @return Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or * can't be determined.

*

* For more information, see Recommendation statuses. * @see RecommendationStatus */ public String getRecommendationStatus() { return this.recommendationStatus; } /** *

* Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or can't be * determined. *

*

* For more information, see Recommendation statuses. *

* * @param recommendationStatus * Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or * can't be determined.

*

* For more information, see Recommendation statuses. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationStatus */ public NetAppONTAPVolume withRecommendationStatus(String recommendationStatus) { setRecommendationStatus(recommendationStatus); return this; } /** *

* Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or can't be * determined. *

*

* For more information, see Recommendation statuses. *

* * @param recommendationStatus * Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or * can't be determined.

*

* For more information, see Recommendation statuses. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationStatus */ public NetAppONTAPVolume withRecommendationStatus(RecommendationStatus recommendationStatus) { this.recommendationStatus = recommendationStatus.toString(); return this; } /** *

* The number of LUNs (logical unit numbers) in the volume. *

* * @param lunCount * The number of LUNs (logical unit numbers) in the volume. */ public void setLunCount(Long lunCount) { this.lunCount = lunCount; } /** *

* The number of LUNs (logical unit numbers) in the volume. *

* * @return The number of LUNs (logical unit numbers) in the volume. */ public Long getLunCount() { return this.lunCount; } /** *

* The number of LUNs (logical unit numbers) in the volume. *

* * @param lunCount * The number of LUNs (logical unit numbers) in the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public NetAppONTAPVolume withLunCount(Long lunCount) { setLunCount(lunCount); 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 (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getCifsShareCount() != null) sb.append("CifsShareCount: ").append(getCifsShareCount()).append(","); if (getSecurityStyle() != null) sb.append("SecurityStyle: ").append(getSecurityStyle()).append(","); if (getSvmUuid() != null) sb.append("SvmUuid: ").append(getSvmUuid()).append(","); if (getSvmName() != null) sb.append("SvmName: ").append(getSvmName()).append(","); if (getCapacityUsed() != null) sb.append("CapacityUsed: ").append(getCapacityUsed()).append(","); if (getCapacityProvisioned() != null) sb.append("CapacityProvisioned: ").append(getCapacityProvisioned()).append(","); if (getLogicalCapacityUsed() != null) sb.append("LogicalCapacityUsed: ").append(getLogicalCapacityUsed()).append(","); if (getNfsExported() != null) sb.append("NfsExported: ").append(getNfsExported()).append(","); if (getSnapshotCapacityUsed() != null) sb.append("SnapshotCapacityUsed: ").append(getSnapshotCapacityUsed()).append(","); if (getMaxP95Performance() != null) sb.append("MaxP95Performance: ").append(getMaxP95Performance()).append(","); if (getRecommendations() != null) sb.append("Recommendations: ").append(getRecommendations()).append(","); if (getRecommendationStatus() != null) sb.append("RecommendationStatus: ").append(getRecommendationStatus()).append(","); if (getLunCount() != null) sb.append("LunCount: ").append(getLunCount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetAppONTAPVolume == false) return false; NetAppONTAPVolume other = (NetAppONTAPVolume) obj; if (other.getVolumeName() == null ^ this.getVolumeName() == null) return false; if (other.getVolumeName() != null && other.getVolumeName().equals(this.getVolumeName()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getCifsShareCount() == null ^ this.getCifsShareCount() == null) return false; if (other.getCifsShareCount() != null && other.getCifsShareCount().equals(this.getCifsShareCount()) == false) return false; if (other.getSecurityStyle() == null ^ this.getSecurityStyle() == null) return false; if (other.getSecurityStyle() != null && other.getSecurityStyle().equals(this.getSecurityStyle()) == false) return false; if (other.getSvmUuid() == null ^ this.getSvmUuid() == null) return false; if (other.getSvmUuid() != null && other.getSvmUuid().equals(this.getSvmUuid()) == false) return false; if (other.getSvmName() == null ^ this.getSvmName() == null) return false; if (other.getSvmName() != null && other.getSvmName().equals(this.getSvmName()) == false) return false; if (other.getCapacityUsed() == null ^ this.getCapacityUsed() == null) return false; if (other.getCapacityUsed() != null && other.getCapacityUsed().equals(this.getCapacityUsed()) == false) return false; if (other.getCapacityProvisioned() == null ^ this.getCapacityProvisioned() == null) return false; if (other.getCapacityProvisioned() != null && other.getCapacityProvisioned().equals(this.getCapacityProvisioned()) == false) return false; if (other.getLogicalCapacityUsed() == null ^ this.getLogicalCapacityUsed() == null) return false; if (other.getLogicalCapacityUsed() != null && other.getLogicalCapacityUsed().equals(this.getLogicalCapacityUsed()) == false) return false; if (other.getNfsExported() == null ^ this.getNfsExported() == null) return false; if (other.getNfsExported() != null && other.getNfsExported().equals(this.getNfsExported()) == false) return false; if (other.getSnapshotCapacityUsed() == null ^ this.getSnapshotCapacityUsed() == null) return false; if (other.getSnapshotCapacityUsed() != null && other.getSnapshotCapacityUsed().equals(this.getSnapshotCapacityUsed()) == false) return false; if (other.getMaxP95Performance() == null ^ this.getMaxP95Performance() == null) return false; if (other.getMaxP95Performance() != null && other.getMaxP95Performance().equals(this.getMaxP95Performance()) == false) return false; if (other.getRecommendations() == null ^ this.getRecommendations() == null) return false; if (other.getRecommendations() != null && other.getRecommendations().equals(this.getRecommendations()) == false) return false; if (other.getRecommendationStatus() == null ^ this.getRecommendationStatus() == null) return false; if (other.getRecommendationStatus() != null && other.getRecommendationStatus().equals(this.getRecommendationStatus()) == false) return false; if (other.getLunCount() == null ^ this.getLunCount() == null) return false; if (other.getLunCount() != null && other.getLunCount().equals(this.getLunCount()) == 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 + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getCifsShareCount() == null) ? 0 : getCifsShareCount().hashCode()); hashCode = prime * hashCode + ((getSecurityStyle() == null) ? 0 : getSecurityStyle().hashCode()); hashCode = prime * hashCode + ((getSvmUuid() == null) ? 0 : getSvmUuid().hashCode()); hashCode = prime * hashCode + ((getSvmName() == null) ? 0 : getSvmName().hashCode()); hashCode = prime * hashCode + ((getCapacityUsed() == null) ? 0 : getCapacityUsed().hashCode()); hashCode = prime * hashCode + ((getCapacityProvisioned() == null) ? 0 : getCapacityProvisioned().hashCode()); hashCode = prime * hashCode + ((getLogicalCapacityUsed() == null) ? 0 : getLogicalCapacityUsed().hashCode()); hashCode = prime * hashCode + ((getNfsExported() == null) ? 0 : getNfsExported().hashCode()); hashCode = prime * hashCode + ((getSnapshotCapacityUsed() == null) ? 0 : getSnapshotCapacityUsed().hashCode()); hashCode = prime * hashCode + ((getMaxP95Performance() == null) ? 0 : getMaxP95Performance().hashCode()); hashCode = prime * hashCode + ((getRecommendations() == null) ? 0 : getRecommendations().hashCode()); hashCode = prime * hashCode + ((getRecommendationStatus() == null) ? 0 : getRecommendationStatus().hashCode()); hashCode = prime * hashCode + ((getLunCount() == null) ? 0 : getLunCount().hashCode()); return hashCode; } @Override public NetAppONTAPVolume clone() { try { return (NetAppONTAPVolume) 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.datasync.model.transform.NetAppONTAPVolumeMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy