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

com.amazonaws.services.fsx.model.DiskIopsConfiguration Maven / Gradle / Ivy

Go to download

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

The 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.fsx.model;

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

/**
 * 

* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP, Amazon FSx for * Windows File Server, or FSx for OpenZFS file system. By default, Amazon FSx automatically provisions 3 IOPS per GB of * storage capacity. You can provision additional IOPS per GB of storage. The configuration consists of the total number * of provisioned SSD IOPS and how it is was provisioned, or the mode (by the customer or by Amazon FSx). *

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

* Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB of * storage capacity, or if it using a USER_PROVISIONED value. *

*/ private String mode; /** *

* The total number of SSD IOPS provisioned for the file system. *

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity * 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as 200,000 * * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is outside of * the minimum or maximum values. *

*/ private Long iops; /** *

* Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB of * storage capacity, or if it using a USER_PROVISIONED value. *

* * @param mode * Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB * of storage capacity, or if it using a USER_PROVISIONED value. * @see DiskIopsConfigurationMode */ public void setMode(String mode) { this.mode = mode; } /** *

* Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB of * storage capacity, or if it using a USER_PROVISIONED value. *

* * @return Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per * GB of storage capacity, or if it using a USER_PROVISIONED value. * @see DiskIopsConfigurationMode */ public String getMode() { return this.mode; } /** *

* Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB of * storage capacity, or if it using a USER_PROVISIONED value. *

* * @param mode * Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB * of storage capacity, or if it using a USER_PROVISIONED value. * @return Returns a reference to this object so that method calls can be chained together. * @see DiskIopsConfigurationMode */ public DiskIopsConfiguration withMode(String mode) { setMode(mode); return this; } /** *

* Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB of * storage capacity, or if it using a USER_PROVISIONED value. *

* * @param mode * Specifies whether the file system is using the AUTOMATIC setting of SSD IOPS of 3 IOPS per GB * of storage capacity, or if it using a USER_PROVISIONED value. * @return Returns a reference to this object so that method calls can be chained together. * @see DiskIopsConfigurationMode */ public DiskIopsConfiguration withMode(DiskIopsConfigurationMode mode) { this.mode = mode.toString(); return this; } /** *

* The total number of SSD IOPS provisioned for the file system. *

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity * 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as 200,000 * * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is outside of * the minimum or maximum values. *

* * @param iops * The total number of SSD IOPS provisioned for the file system.

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as * 200,000 * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is * outside of the minimum or maximum values. */ public void setIops(Long iops) { this.iops = iops; } /** *

* The total number of SSD IOPS provisioned for the file system. *

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity * 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as 200,000 * * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is outside of * the minimum or maximum values. *

* * @return The total number of SSD IOPS provisioned for the file system.

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as * 200,000 * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is * outside of the minimum or maximum values. */ public Long getIops() { return this.iops; } /** *

* The total number of SSD IOPS provisioned for the file system. *

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity * 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as 200,000 * * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is outside of * the minimum or maximum values. *

* * @param iops * The total number of SSD IOPS provisioned for the file system.

*

* The minimum and maximum values for this property depend on the value of HAPairs and * StorageCapacity. The minimum value is calculated as StorageCapacity 3 * * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as * 200,000 * HAPairs. *

*

* Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of Iops is * outside of the minimum or maximum values. * @return Returns a reference to this object so that method calls can be chained together. */ public DiskIopsConfiguration withIops(Long iops) { setIops(iops); 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 (getMode() != null) sb.append("Mode: ").append(getMode()).append(","); if (getIops() != null) sb.append("Iops: ").append(getIops()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DiskIopsConfiguration == false) return false; DiskIopsConfiguration other = (DiskIopsConfiguration) obj; if (other.getMode() == null ^ this.getMode() == null) return false; if (other.getMode() != null && other.getMode().equals(this.getMode()) == false) return false; if (other.getIops() == null ^ this.getIops() == null) return false; if (other.getIops() != null && other.getIops().equals(this.getIops()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMode() == null) ? 0 : getMode().hashCode()); hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode()); return hashCode; } @Override public DiskIopsConfiguration clone() { try { return (DiskIopsConfiguration) 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.fsx.model.transform.DiskIopsConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy