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

com.amazonaws.services.fsx.model.FileCacheLustreConfiguration 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

There is a newer version: 1.12.780
Show 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 configuration for the Amazon File Cache resource. *

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

* Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of * storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput * (MB/s/TiB). The only supported value is 1000. *

*/ private Integer perUnitStorageThroughput; /** *

* The deployment type of the Amazon File Cache resource, which must be CACHE_1. *

*/ private String deploymentType; /** *

* You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the cache's * description. *

*/ private String mountName; private String weeklyMaintenanceStartTime; /** *

* The configuration for a Lustre MDT (Metadata Target) storage volume. *

*/ private FileCacheLustreMetadataConfiguration metadataConfiguration; /** *

* The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache resource * to Amazon CloudWatch Logs. *

*/ private LustreLogConfiguration logConfiguration; /** *

* Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of * storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput * (MB/s/TiB). The only supported value is 1000. *

* * @param perUnitStorageThroughput * Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte * of storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * * PerUnitStorageThroughput (MB/s/TiB). The only supported value is 1000. */ public void setPerUnitStorageThroughput(Integer perUnitStorageThroughput) { this.perUnitStorageThroughput = perUnitStorageThroughput; } /** *

* Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of * storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput * (MB/s/TiB). The only supported value is 1000. *

* * @return Per unit storage throughput represents the megabytes per second of read or write throughput per 1 * tebibyte of storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * * PerUnitStorageThroughput (MB/s/TiB). The only supported value is 1000. */ public Integer getPerUnitStorageThroughput() { return this.perUnitStorageThroughput; } /** *

* Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of * storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput * (MB/s/TiB). The only supported value is 1000. *

* * @param perUnitStorageThroughput * Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte * of storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * * PerUnitStorageThroughput (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 FileCacheLustreConfiguration withPerUnitStorageThroughput(Integer perUnitStorageThroughput) { setPerUnitStorageThroughput(perUnitStorageThroughput); return this; } /** *

* The deployment type of the Amazon File Cache resource, which must be CACHE_1. *

* * @param deploymentType * The deployment type of the Amazon File Cache resource, which must be CACHE_1. * @see FileCacheLustreDeploymentType */ public void setDeploymentType(String deploymentType) { this.deploymentType = deploymentType; } /** *

* The deployment type of the Amazon File Cache resource, which must be CACHE_1. *

* * @return The deployment type of the Amazon File Cache resource, which must be CACHE_1. * @see FileCacheLustreDeploymentType */ public String getDeploymentType() { return this.deploymentType; } /** *

* The deployment type of the Amazon File Cache resource, which must be CACHE_1. *

* * @param deploymentType * The deployment type of the Amazon File Cache resource, which must be CACHE_1. * @return Returns a reference to this object so that method calls can be chained together. * @see FileCacheLustreDeploymentType */ public FileCacheLustreConfiguration withDeploymentType(String deploymentType) { setDeploymentType(deploymentType); return this; } /** *

* The deployment type of the Amazon File Cache resource, which must be CACHE_1. *

* * @param deploymentType * The deployment type of the Amazon File Cache resource, which must be CACHE_1. * @return Returns a reference to this object so that method calls can be chained together. * @see FileCacheLustreDeploymentType */ public FileCacheLustreConfiguration withDeploymentType(FileCacheLustreDeploymentType deploymentType) { this.deploymentType = deploymentType.toString(); return this; } /** *

* You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the cache's * description. *

* * @param mountName * You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the * cache's description. */ public void setMountName(String mountName) { this.mountName = mountName; } /** *

* You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the cache's * description. *

* * @return You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the * cache's description. */ public String getMountName() { return this.mountName; } /** *

* You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the cache's * description. *

* * @param mountName * You use the MountName value when mounting the cache. If you pass a cache ID to the * DescribeFileCaches operation, it returns the the MountName value as part of the * cache's description. * @return Returns a reference to this object so that method calls can be chained together. */ public FileCacheLustreConfiguration withMountName(String mountName) { setMountName(mountName); 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 FileCacheLustreConfiguration 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 FileCacheLustreConfiguration withMetadataConfiguration(FileCacheLustreMetadataConfiguration metadataConfiguration) { setMetadataConfiguration(metadataConfiguration); return this; } /** *

* The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache resource * to Amazon CloudWatch Logs. *

* * @param logConfiguration * The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache * resource to Amazon CloudWatch Logs. */ public void setLogConfiguration(LustreLogConfiguration logConfiguration) { this.logConfiguration = logConfiguration; } /** *

* The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache resource * to Amazon CloudWatch Logs. *

* * @return The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache * resource to Amazon CloudWatch Logs. */ public LustreLogConfiguration getLogConfiguration() { return this.logConfiguration; } /** *

* The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache resource * to Amazon CloudWatch Logs. *

* * @param logConfiguration * The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache * resource to Amazon CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public FileCacheLustreConfiguration withLogConfiguration(LustreLogConfiguration logConfiguration) { setLogConfiguration(logConfiguration); 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 (getMountName() != null) sb.append("MountName: ").append(getMountName()).append(","); if (getWeeklyMaintenanceStartTime() != null) sb.append("WeeklyMaintenanceStartTime: ").append(getWeeklyMaintenanceStartTime()).append(","); if (getMetadataConfiguration() != null) sb.append("MetadataConfiguration: ").append(getMetadataConfiguration()).append(","); if (getLogConfiguration() != null) sb.append("LogConfiguration: ").append(getLogConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FileCacheLustreConfiguration == false) return false; FileCacheLustreConfiguration other = (FileCacheLustreConfiguration) 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.getMountName() == null ^ this.getMountName() == null) return false; if (other.getMountName() != null && other.getMountName().equals(this.getMountName()) == 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; if (other.getLogConfiguration() == null ^ this.getLogConfiguration() == null) return false; if (other.getLogConfiguration() != null && other.getLogConfiguration().equals(this.getLogConfiguration()) == 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 + ((getMountName() == null) ? 0 : getMountName().hashCode()); hashCode = prime * hashCode + ((getWeeklyMaintenanceStartTime() == null) ? 0 : getWeeklyMaintenanceStartTime().hashCode()); hashCode = prime * hashCode + ((getMetadataConfiguration() == null) ? 0 : getMetadataConfiguration().hashCode()); hashCode = prime * hashCode + ((getLogConfiguration() == null) ? 0 : getLogConfiguration().hashCode()); return hashCode; } @Override public FileCacheLustreConfiguration clone() { try { return (FileCacheLustreConfiguration) 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.FileCacheLustreConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy