com.amazonaws.services.fsx.model.UpdateFileSystemLustreMetadataConfiguration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-fsx Show documentation
/*
* 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 Lustre metadata performance configuration update for an Amazon FSx for Lustre file system using a
* PERSISTENT_2
deployment type. You can request an increase in your file system's Metadata IOPS and/or
* switch your file system's metadata configuration mode. For more information, see Managing metadata
* performance in the Amazon FSx for Lustre User Guide.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateFileSystemLustreMetadataConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system. Valid
* values are 1500
, 3000
, 6000
, 12000
, and multiples of
* 12000
up to a maximum of 192000
.
*
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned for the
* file system.
*
*/
private Integer iops;
/**
*
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as the
* value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater than or
* equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but do not
* input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is greater
* than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS is not
* supported.
*
*
*
*/
private String mode;
/**
*
* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system. Valid
* values are 1500
, 3000
, 6000
, 12000
, and multiples of
* 12000
up to a maximum of 192000
.
*
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned for the
* file system.
*
*
* @param iops
* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system.
* Valid values are 1500
, 3000
, 6000
, 12000
, and
* multiples of 12000
up to a maximum of 192000
.
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned for
* the file system.
*/
public void setIops(Integer iops) {
this.iops = iops;
}
/**
*
* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system. Valid
* values are 1500
, 3000
, 6000
, 12000
, and multiples of
* 12000
up to a maximum of 192000
.
*
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned for the
* file system.
*
*
* @return (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system.
* Valid values are 1500
, 3000
, 6000
, 12000
, and
* multiples of 12000
up to a maximum of 192000
.
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned
* for the file system.
*/
public Integer getIops() {
return this.iops;
}
/**
*
* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system. Valid
* values are 1500
, 3000
, 6000
, 12000
, and multiples of
* 12000
up to a maximum of 192000
.
*
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned for the
* file system.
*
*
* @param iops
* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for your file system.
* Valid values are 1500
, 3000
, 6000
, 12000
, and
* multiples of 12000
up to a maximum of 192000
.
*
* The value you provide must be greater than or equal to the current number of Metadata IOPS provisioned for
* the file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFileSystemLustreMetadataConfiguration withIops(Integer iops) {
setIops(iops);
return this;
}
/**
*
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as the
* value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater than or
* equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but do not
* input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is greater
* than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS is not
* supported.
*
*
*
*
* @param mode
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as
* the value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater
* than or equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but
* do not input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is
* greater than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS
* is not supported.
*
*
* @see MetadataConfigurationMode
*/
public void setMode(String mode) {
this.mode = mode;
}
/**
*
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as the
* value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater than or
* equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but do not
* input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is greater
* than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS is not
* supported.
*
*
*
*
* @return The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as
* the value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is
* greater than or equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but
* do not input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is
* greater than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS
* is not supported.
*
*
* @see MetadataConfigurationMode
*/
public String getMode() {
return this.mode;
}
/**
*
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as the
* value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater than or
* equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but do not
* input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is greater
* than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS is not
* supported.
*
*
*
*
* @param mode
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as
* the value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater
* than or equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but
* do not input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is
* greater than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS
* is not supported.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see MetadataConfigurationMode
*/
public UpdateFileSystemLustreMetadataConfiguration withMode(String mode) {
setMode(mode);
return this;
}
/**
*
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as the
* value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater than or
* equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but do not
* input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is greater
* than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS is not
* supported.
*
*
*
*
* @param mode
* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a
* PERSISTENT_2
deployment type.
*
* -
*
* To increase the Metadata IOPS or to switch from AUTOMATIC mode, specify USER_PROVISIONED
as
* the value for this parameter. Then use the Iops parameter to provide a Metadata IOPS value that is greater
* than or equal to the current number of Metadata IOPS provisioned for the file system.
*
*
* -
*
* To switch from USER_PROVISIONED mode, specify AUTOMATIC
as the value for this parameter, but
* do not input a value for Iops.
*
*
*
* If you request to switch from USER_PROVISIONED to AUTOMATIC mode and the current Metadata IOPS value is
* greater than the automated default, FSx for Lustre rejects the request because downscaling Metadata IOPS
* is not supported.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see MetadataConfigurationMode
*/
public UpdateFileSystemLustreMetadataConfiguration withMode(MetadataConfigurationMode mode) {
this.mode = mode.toString();
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 (getIops() != null)
sb.append("Iops: ").append(getIops()).append(",");
if (getMode() != null)
sb.append("Mode: ").append(getMode());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateFileSystemLustreMetadataConfiguration == false)
return false;
UpdateFileSystemLustreMetadataConfiguration other = (UpdateFileSystemLustreMetadataConfiguration) obj;
if (other.getIops() == null ^ this.getIops() == null)
return false;
if (other.getIops() != null && other.getIops().equals(this.getIops()) == false)
return false;
if (other.getMode() == null ^ this.getMode() == null)
return false;
if (other.getMode() != null && other.getMode().equals(this.getMode()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode());
hashCode = prime * hashCode + ((getMode() == null) ? 0 : getMode().hashCode());
return hashCode;
}
@Override
public UpdateFileSystemLustreMetadataConfiguration clone() {
try {
return (UpdateFileSystemLustreMetadataConfiguration) 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.UpdateFileSystemLustreMetadataConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}