com.amazonaws.services.fsx.model.CreateFileCacheLustreConfiguration 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 Amazon File Cache configuration for the cache that you are creating.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateFileCacheLustreConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in
* MB/s/TiB. The only supported value is 1000
.
*
*/
private Integer perUnitStorageThroughput;
/**
*
* Specifies the cache deployment type, which must be CACHE_1
.
*
*/
private String deploymentType;
private String weeklyMaintenanceStartTime;
/**
*
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*
*/
private FileCacheLustreMetadataConfiguration metadataConfiguration;
/**
*
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in
* MB/s/TiB. The only supported value is 1000
.
*
*
* @param perUnitStorageThroughput
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in
* MB/s/TiB. The only supported value is 1000
.
*/
public void setPerUnitStorageThroughput(Integer perUnitStorageThroughput) {
this.perUnitStorageThroughput = perUnitStorageThroughput;
}
/**
*
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in
* MB/s/TiB. The only supported value is 1000
.
*
*
* @return Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity,
* in MB/s/TiB. The only supported value is 1000
.
*/
public Integer getPerUnitStorageThroughput() {
return this.perUnitStorageThroughput;
}
/**
*
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in
* MB/s/TiB. The only supported value is 1000
.
*
*
* @param perUnitStorageThroughput
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in
* MB/s/TiB. The only supported value is 1000
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileCacheLustreConfiguration withPerUnitStorageThroughput(Integer perUnitStorageThroughput) {
setPerUnitStorageThroughput(perUnitStorageThroughput);
return this;
}
/**
*
* Specifies the cache deployment type, which must be CACHE_1
.
*
*
* @param deploymentType
* Specifies the cache deployment type, which must be CACHE_1
.
* @see FileCacheLustreDeploymentType
*/
public void setDeploymentType(String deploymentType) {
this.deploymentType = deploymentType;
}
/**
*
* Specifies the cache deployment type, which must be CACHE_1
.
*
*
* @return Specifies the cache deployment type, which must be CACHE_1
.
* @see FileCacheLustreDeploymentType
*/
public String getDeploymentType() {
return this.deploymentType;
}
/**
*
* Specifies the cache deployment type, which must be CACHE_1
.
*
*
* @param deploymentType
* Specifies the cache deployment type, which must be CACHE_1
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FileCacheLustreDeploymentType
*/
public CreateFileCacheLustreConfiguration withDeploymentType(String deploymentType) {
setDeploymentType(deploymentType);
return this;
}
/**
*
* Specifies the cache deployment type, which must be CACHE_1
.
*
*
* @param deploymentType
* Specifies the cache deployment type, which must be CACHE_1
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FileCacheLustreDeploymentType
*/
public CreateFileCacheLustreConfiguration withDeploymentType(FileCacheLustreDeploymentType deploymentType) {
this.deploymentType = deploymentType.toString();
return this;
}
/**
* @param weeklyMaintenanceStartTime
*/
public void setWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) {
this.weeklyMaintenanceStartTime = weeklyMaintenanceStartTime;
}
/**
* @return
*/
public String getWeeklyMaintenanceStartTime() {
return this.weeklyMaintenanceStartTime;
}
/**
* @param weeklyMaintenanceStartTime
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileCacheLustreConfiguration withWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) {
setWeeklyMaintenanceStartTime(weeklyMaintenanceStartTime);
return this;
}
/**
*
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*
*
* @param metadataConfiguration
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*/
public void setMetadataConfiguration(FileCacheLustreMetadataConfiguration metadataConfiguration) {
this.metadataConfiguration = metadataConfiguration;
}
/**
*
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*
*
* @return The configuration for a Lustre MDT (Metadata Target) storage volume.
*/
public FileCacheLustreMetadataConfiguration getMetadataConfiguration() {
return this.metadataConfiguration;
}
/**
*
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*
*
* @param metadataConfiguration
* The configuration for a Lustre MDT (Metadata Target) storage volume.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileCacheLustreConfiguration withMetadataConfiguration(FileCacheLustreMetadataConfiguration metadataConfiguration) {
setMetadataConfiguration(metadataConfiguration);
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 (getPerUnitStorageThroughput() != null)
sb.append("PerUnitStorageThroughput: ").append(getPerUnitStorageThroughput()).append(",");
if (getDeploymentType() != null)
sb.append("DeploymentType: ").append(getDeploymentType()).append(",");
if (getWeeklyMaintenanceStartTime() != null)
sb.append("WeeklyMaintenanceStartTime: ").append(getWeeklyMaintenanceStartTime()).append(",");
if (getMetadataConfiguration() != null)
sb.append("MetadataConfiguration: ").append(getMetadataConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateFileCacheLustreConfiguration == false)
return false;
CreateFileCacheLustreConfiguration other = (CreateFileCacheLustreConfiguration) obj;
if (other.getPerUnitStorageThroughput() == null ^ this.getPerUnitStorageThroughput() == null)
return false;
if (other.getPerUnitStorageThroughput() != null && other.getPerUnitStorageThroughput().equals(this.getPerUnitStorageThroughput()) == false)
return false;
if (other.getDeploymentType() == null ^ this.getDeploymentType() == null)
return false;
if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false)
return false;
if (other.getWeeklyMaintenanceStartTime() == null ^ this.getWeeklyMaintenanceStartTime() == null)
return false;
if (other.getWeeklyMaintenanceStartTime() != null && other.getWeeklyMaintenanceStartTime().equals(this.getWeeklyMaintenanceStartTime()) == false)
return false;
if (other.getMetadataConfiguration() == null ^ this.getMetadataConfiguration() == null)
return false;
if (other.getMetadataConfiguration() != null && other.getMetadataConfiguration().equals(this.getMetadataConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPerUnitStorageThroughput() == null) ? 0 : getPerUnitStorageThroughput().hashCode());
hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode());
hashCode = prime * hashCode + ((getWeeklyMaintenanceStartTime() == null) ? 0 : getWeeklyMaintenanceStartTime().hashCode());
hashCode = prime * hashCode + ((getMetadataConfiguration() == null) ? 0 : getMetadataConfiguration().hashCode());
return hashCode;
}
@Override
public CreateFileCacheLustreConfiguration clone() {
try {
return (CreateFileCacheLustreConfiguration) 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.CreateFileCacheLustreConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}