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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If * you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. * Required if ThroughputMode is changed to provisioned on update. *

*/ 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) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If * you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. * Required if ThroughputMode is changed to provisioned on update. *

* * @param provisionedThroughputInMibps * (Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are * 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of * provisioned throughput. Required if ThroughputMode is changed to provisioned on * update. */ public void setProvisionedThroughputInMibps(Double provisionedThroughputInMibps) { this.provisionedThroughputInMibps = provisionedThroughputInMibps; } /** *

* (Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If * you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. * Required if ThroughputMode is changed to provisioned on update. *

* * @return (Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are * 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of * provisioned throughput. Required if ThroughputMode is changed to provisioned on * update. */ public Double getProvisionedThroughputInMibps() { return this.provisionedThroughputInMibps; } /** *

* (Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If * you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. * Required if ThroughputMode is changed to provisioned on update. *

* * @param provisionedThroughputInMibps * (Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are * 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of * provisioned throughput. Required if ThroughputMode is changed to provisioned on * update. * @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