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

com.amazonaws.services.snowball.model.S3OnDeviceServiceConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Snowball module holds the client classes that are used for communicating with Amazon Snowball.

There is a newer version: 1.12.778
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.snowball.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Amazon S3 compatible storage on Snow family devices configuration items. *

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

* If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined configuration, the * request will fail. If more than one configuration has the same storage limit as specified, the other input need * to be provided. *

*/ private Double storageLimit; /** *

* Storage unit. Currently the only supported unit is TB. *

*/ private String storageUnit; /** *

* Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow * family devices. If specified, the other input can be omitted. *

*/ private Integer serviceSize; /** *

* >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading * the performance of the cluster. This additional input helps when the specified StorageLimit matches * more than one Amazon S3 compatible storage on Snow family devices service configuration. *

*/ private Integer faultTolerance; /** *

* If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined configuration, the * request will fail. If more than one configuration has the same storage limit as specified, the other input need * to be provided. *

* * @param storageLimit * If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined configuration, * the request will fail. If more than one configuration has the same storage limit as specified, the other * input need to be provided. */ public void setStorageLimit(Double storageLimit) { this.storageLimit = storageLimit; } /** *

* If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined configuration, the * request will fail. If more than one configuration has the same storage limit as specified, the other input need * to be provided. *

* * @return If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined * configuration, the request will fail. If more than one configuration has the same storage limit as * specified, the other input need to be provided. */ public Double getStorageLimit() { return this.storageLimit; } /** *

* If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined configuration, the * request will fail. If more than one configuration has the same storage limit as specified, the other input need * to be provided. *

* * @param storageLimit * If the specified storage limit value matches storage limit of one of the defined configurations, that * configuration will be used. If the specified storage limit value does not match any defined configuration, * the request will fail. If more than one configuration has the same storage limit as specified, the other * input need to be provided. * @return Returns a reference to this object so that method calls can be chained together. */ public S3OnDeviceServiceConfiguration withStorageLimit(Double storageLimit) { setStorageLimit(storageLimit); return this; } /** *

* Storage unit. Currently the only supported unit is TB. *

* * @param storageUnit * Storage unit. Currently the only supported unit is TB. * @see StorageUnit */ public void setStorageUnit(String storageUnit) { this.storageUnit = storageUnit; } /** *

* Storage unit. Currently the only supported unit is TB. *

* * @return Storage unit. Currently the only supported unit is TB. * @see StorageUnit */ public String getStorageUnit() { return this.storageUnit; } /** *

* Storage unit. Currently the only supported unit is TB. *

* * @param storageUnit * Storage unit. Currently the only supported unit is TB. * @return Returns a reference to this object so that method calls can be chained together. * @see StorageUnit */ public S3OnDeviceServiceConfiguration withStorageUnit(String storageUnit) { setStorageUnit(storageUnit); return this; } /** *

* Storage unit. Currently the only supported unit is TB. *

* * @param storageUnit * Storage unit. Currently the only supported unit is TB. * @return Returns a reference to this object so that method calls can be chained together. * @see StorageUnit */ public S3OnDeviceServiceConfiguration withStorageUnit(StorageUnit storageUnit) { this.storageUnit = storageUnit.toString(); return this; } /** *

* Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow * family devices. If specified, the other input can be omitted. *

* * @param serviceSize * Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage * on Snow family devices. If specified, the other input can be omitted. */ public void setServiceSize(Integer serviceSize) { this.serviceSize = serviceSize; } /** *

* Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow * family devices. If specified, the other input can be omitted. *

* * @return Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage * on Snow family devices. If specified, the other input can be omitted. */ public Integer getServiceSize() { return this.serviceSize; } /** *

* Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow * family devices. If specified, the other input can be omitted. *

* * @param serviceSize * Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage * on Snow family devices. If specified, the other input can be omitted. * @return Returns a reference to this object so that method calls can be chained together. */ public S3OnDeviceServiceConfiguration withServiceSize(Integer serviceSize) { setServiceSize(serviceSize); return this; } /** *

* >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading * the performance of the cluster. This additional input helps when the specified StorageLimit matches * more than one Amazon S3 compatible storage on Snow family devices service configuration. *

* * @param faultTolerance * >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without * degrading the performance of the cluster. This additional input helps when the specified * StorageLimit matches more than one Amazon S3 compatible storage on Snow family devices * service configuration. */ public void setFaultTolerance(Integer faultTolerance) { this.faultTolerance = faultTolerance; } /** *

* >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading * the performance of the cluster. This additional input helps when the specified StorageLimit matches * more than one Amazon S3 compatible storage on Snow family devices service configuration. *

* * @return >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without * degrading the performance of the cluster. This additional input helps when the specified * StorageLimit matches more than one Amazon S3 compatible storage on Snow family devices * service configuration. */ public Integer getFaultTolerance() { return this.faultTolerance; } /** *

* >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading * the performance of the cluster. This additional input helps when the specified StorageLimit matches * more than one Amazon S3 compatible storage on Snow family devices service configuration. *

* * @param faultTolerance * >Fault tolerance level of the cluster. This indicates the number of nodes that can go down without * degrading the performance of the cluster. This additional input helps when the specified * StorageLimit matches more than one Amazon S3 compatible storage on Snow family devices * service configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public S3OnDeviceServiceConfiguration withFaultTolerance(Integer faultTolerance) { setFaultTolerance(faultTolerance); 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 (getStorageLimit() != null) sb.append("StorageLimit: ").append(getStorageLimit()).append(","); if (getStorageUnit() != null) sb.append("StorageUnit: ").append(getStorageUnit()).append(","); if (getServiceSize() != null) sb.append("ServiceSize: ").append(getServiceSize()).append(","); if (getFaultTolerance() != null) sb.append("FaultTolerance: ").append(getFaultTolerance()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof S3OnDeviceServiceConfiguration == false) return false; S3OnDeviceServiceConfiguration other = (S3OnDeviceServiceConfiguration) obj; if (other.getStorageLimit() == null ^ this.getStorageLimit() == null) return false; if (other.getStorageLimit() != null && other.getStorageLimit().equals(this.getStorageLimit()) == false) return false; if (other.getStorageUnit() == null ^ this.getStorageUnit() == null) return false; if (other.getStorageUnit() != null && other.getStorageUnit().equals(this.getStorageUnit()) == false) return false; if (other.getServiceSize() == null ^ this.getServiceSize() == null) return false; if (other.getServiceSize() != null && other.getServiceSize().equals(this.getServiceSize()) == false) return false; if (other.getFaultTolerance() == null ^ this.getFaultTolerance() == null) return false; if (other.getFaultTolerance() != null && other.getFaultTolerance().equals(this.getFaultTolerance()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStorageLimit() == null) ? 0 : getStorageLimit().hashCode()); hashCode = prime * hashCode + ((getStorageUnit() == null) ? 0 : getStorageUnit().hashCode()); hashCode = prime * hashCode + ((getServiceSize() == null) ? 0 : getServiceSize().hashCode()); hashCode = prime * hashCode + ((getFaultTolerance() == null) ? 0 : getFaultTolerance().hashCode()); return hashCode; } @Override public S3OnDeviceServiceConfiguration clone() { try { return (S3OnDeviceServiceConfiguration) 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.snowball.model.transform.S3OnDeviceServiceConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy