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

com.amazonaws.services.fsx.model.CreateFileSystemLustreMetadataConfiguration 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 Lustre metadata performance configuration for the creation of an Amazon FSx for Lustre file system using a * PERSISTENT_2 deployment type. The configuration uses a Metadata IOPS value to set the maximum rate of * metadata disk IOPS supported by the file system. *

*

* After creation, the file system supports increasing metadata performance. For more information on Metadata IOPS, see * Lustre metadata performance configuration in the Amazon FSx for Lustre User Guide. *

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

* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of 12000 * up to a maximum of 192000. *

* *

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a valid * value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre automatically sets the * value based on your file system storage capacity. *

*
*/ private Integer iops; /** *

* The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a * PERSISTENT_2 deployment type. *

*
    *
  • *

    * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your file * system based on your file system storage capacity. *

    *
  • *
  • *

    * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

    *
  • *
*/ private String mode; /** *

* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of 12000 * up to a maximum of 192000. *

* *

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a valid * value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre automatically sets the * value based on your file system storage capacity. *

*
* * @param iops * (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of * 12000 up to a maximum of 192000.

*

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a * valid value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre * automatically sets the value based on your file system storage capacity. *

*/ public void setIops(Integer iops) { this.iops = iops; } /** *

* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of 12000 * up to a maximum of 192000. *

* *

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a valid * value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre automatically sets the * value based on your file system storage capacity. *

*
* * @return (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of * 12000 up to a maximum of 192000.

*

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a * valid value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre * automatically sets the value based on your file system storage capacity. *

*/ public Integer getIops() { return this.iops; } /** *

* (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of 12000 * up to a maximum of 192000. *

* *

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a valid * value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre automatically sets the * value based on your file system storage capacity. *

*
* * @param iops * (USER_PROVISIONED mode only) Specifies the number of Metadata IOPS to provision for the file system. This * parameter sets the maximum rate of metadata disk IOPS supported by the file system. Valid values are * 1500, 3000, 6000, 12000, and multiples of * 12000 up to a maximum of 192000.

*

* Iops doesn’t have a default value. If you're using USER_PROVISIONED mode, you can choose to specify a * valid value. If you're using AUTOMATIC mode, you cannot specify a value because FSx for Lustre * automatically sets the value based on your file system storage capacity. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateFileSystemLustreMetadataConfiguration 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. *

*
    *
  • *

    * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your file * system based on your file system storage capacity. *

    *
  • *
  • *

    * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

    *
  • *
* * @param mode * The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a * PERSISTENT_2 deployment type.

*
    *
  • *

    * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your * file system based on your file system storage capacity. *

    *
  • *
  • *

    * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

    *
  • * @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. *

    *
      *
    • *

      * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your file * system based on your file system storage capacity. *

      *
    • *
    • *

      * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

      *
    • *
    * * @return The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a * PERSISTENT_2 deployment type.

    *
      *
    • *

      * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for * your file system based on your file system storage capacity. *

      *
    • *
    • *

      * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

      *
    • * @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. *

      *
        *
      • *

        * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your file * system based on your file system storage capacity. *

        *
      • *
      • *

        * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

        *
      • *
      * * @param mode * The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a * PERSISTENT_2 deployment type.

      *
        *
      • *

        * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your * file system based on your file system storage capacity. *

        *
      • *
      • *

        * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see MetadataConfigurationMode */ public CreateFileSystemLustreMetadataConfiguration 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. *

        *
          *
        • *

          * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your file * system based on your file system storage capacity. *

          *
        • *
        • *

          * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

          *
        • *
        * * @param mode * The metadata configuration mode for provisioning Metadata IOPS for an FSx for Lustre file system using a * PERSISTENT_2 deployment type.

        *
          *
        • *

          * In AUTOMATIC mode, FSx for Lustre automatically provisions and scales the number of Metadata IOPS for your * file system based on your file system storage capacity. *

          *
        • *
        • *

          * In USER_PROVISIONED mode, you specify the number of Metadata IOPS to provision for your file system. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see MetadataConfigurationMode */ public CreateFileSystemLustreMetadataConfiguration 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 CreateFileSystemLustreMetadataConfiguration == false) return false; CreateFileSystemLustreMetadataConfiguration other = (CreateFileSystemLustreMetadataConfiguration) 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 CreateFileSystemLustreMetadataConfiguration clone() { try { return (CreateFileSystemLustreMetadataConfiguration) 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.CreateFileSystemLustreMetadataConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy