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

com.amazonaws.services.elasticfilesystem.model.UpdateFileSystemRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Elastic File System module holds the client classes that are used for communicating with Amazon Elastic File System

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.elasticfilesystem.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The ID of the file system that you want to update. *

*/ private String fileSystemId; /** *

* (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need * to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. *

*/ private String throughputMode; /** *

* (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file system * that you're creating. Required if ThroughputMode is set to provisioned. Valid values * are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact Amazon Web Services * Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. *

*/ private Double provisionedThroughputInMibps; /** *

* The ID of the file system that you want to update. *

* * @param fileSystemId * The ID of the file system that you want to update. */ public void setFileSystemId(String fileSystemId) { this.fileSystemId = fileSystemId; } /** *

* The ID of the file system that you want to update. *

* * @return The ID of the file system that you want to update. */ public String getFileSystemId() { return this.fileSystemId; } /** *

* The ID of the file system that you want to update. *

* * @param fileSystemId * The ID of the file system that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFileSystemRequest withFileSystemId(String fileSystemId) { setFileSystemId(fileSystemId); return this; } /** *

* (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need * to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. *

* * @param throughputMode * (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you * don't need to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. * @see ThroughputMode */ public void setThroughputMode(String throughputMode) { this.throughputMode = throughputMode; } /** *

* (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need * to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. *

* * @return (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you * don't need to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. * @see ThroughputMode */ public String getThroughputMode() { return this.throughputMode; } /** *

* (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need * to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. *

* * @param throughputMode * (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you * don't need to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. * @return Returns a reference to this object so that method calls can be chained together. * @see ThroughputMode */ public UpdateFileSystemRequest withThroughputMode(String throughputMode) { setThroughputMode(throughputMode); return this; } /** *

* (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need * to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. *

* * @param throughputMode * (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you * don't need to provide this value in your request. If you are changing the ThroughputMode to * provisioned, you must also set a value for ProvisionedThroughputInMibps. * @return Returns a reference to this object so that method calls can be chained together. * @see ThroughputMode */ public UpdateFileSystemRequest withThroughputMode(ThroughputMode throughputMode) { this.throughputMode = throughputMode.toString(); return this; } /** *

* (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file system * that you're creating. Required if ThroughputMode is set to provisioned. Valid values * are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact Amazon Web Services * Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. *

* * @param provisionedThroughputInMibps * (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file * system that you're creating. Required if ThroughputMode is set to provisioned. * Valid values are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact * Amazon Web Services Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. */ public void setProvisionedThroughputInMibps(Double provisionedThroughputInMibps) { this.provisionedThroughputInMibps = provisionedThroughputInMibps; } /** *

* (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file system * that you're creating. Required if ThroughputMode is set to provisioned. Valid values * are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact Amazon Web Services * Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. *

* * @return (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a * file system that you're creating. Required if ThroughputMode is set to * provisioned. Valid values are 1-3414 MiBps, with the upper limit depending on Region. To * increase this limit, contact Amazon Web Services Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. */ public Double getProvisionedThroughputInMibps() { return this.provisionedThroughputInMibps; } /** *

* (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file system * that you're creating. Required if ThroughputMode is set to provisioned. Valid values * are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact Amazon Web Services * Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. *

* * @param provisionedThroughputInMibps * (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file * system that you're creating. Required if ThroughputMode is set to provisioned. * Valid values are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact * Amazon Web Services Support. For more information, see Amazon EFS quotas that you can * increase in the Amazon EFS User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFileSystemRequest withProvisionedThroughputInMibps(Double provisionedThroughputInMibps) { setProvisionedThroughputInMibps(provisionedThroughputInMibps); 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 (getFileSystemId() != null) sb.append("FileSystemId: ").append(getFileSystemId()).append(","); if (getThroughputMode() != null) sb.append("ThroughputMode: ").append(getThroughputMode()).append(","); if (getProvisionedThroughputInMibps() != null) sb.append("ProvisionedThroughputInMibps: ").append(getProvisionedThroughputInMibps()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateFileSystemRequest == false) return false; UpdateFileSystemRequest other = (UpdateFileSystemRequest) obj; if (other.getFileSystemId() == null ^ this.getFileSystemId() == null) return false; if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == false) return false; if (other.getThroughputMode() == null ^ this.getThroughputMode() == null) return false; if (other.getThroughputMode() != null && other.getThroughputMode().equals(this.getThroughputMode()) == false) return false; if (other.getProvisionedThroughputInMibps() == null ^ this.getProvisionedThroughputInMibps() == null) return false; if (other.getProvisionedThroughputInMibps() != null && other.getProvisionedThroughputInMibps().equals(this.getProvisionedThroughputInMibps()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); hashCode = prime * hashCode + ((getThroughputMode() == null) ? 0 : getThroughputMode().hashCode()); hashCode = prime * hashCode + ((getProvisionedThroughputInMibps() == null) ? 0 : getProvisionedThroughputInMibps().hashCode()); return hashCode; } @Override public UpdateFileSystemRequest clone() { return (UpdateFileSystemRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy