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

com.amazonaws.services.ec2.model.EbsInfo Maven / Gradle / Ivy

/*
 * Copyright 2018-2023 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.ec2.model;

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

/**
 * 

* Describes the Amazon EBS features supported by the instance type. *

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

* Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances * in Amazon EC2 User Guide. *

*/ private String ebsOptimizedSupport; /** *

* Indicates whether Amazon EBS encryption is supported. *

*/ private String encryptionSupport; /** *

* Describes the optimized EBS performance for the instance type. *

*/ private EbsOptimizedInfo ebsOptimizedInfo; /** *

* Indicates whether non-volatile memory express (NVMe) is supported. *

*/ private String nvmeSupport; /** *

* Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances * in Amazon EC2 User Guide. *

* * @param ebsOptimizedSupport * Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized * instances in Amazon EC2 User Guide. * @see EbsOptimizedSupport */ public void setEbsOptimizedSupport(String ebsOptimizedSupport) { this.ebsOptimizedSupport = ebsOptimizedSupport; } /** *

* Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances * in Amazon EC2 User Guide. *

* * @return Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized * instances in Amazon EC2 User Guide. * @see EbsOptimizedSupport */ public String getEbsOptimizedSupport() { return this.ebsOptimizedSupport; } /** *

* Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances * in Amazon EC2 User Guide. *

* * @param ebsOptimizedSupport * Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized * instances in Amazon EC2 User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see EbsOptimizedSupport */ public EbsInfo withEbsOptimizedSupport(String ebsOptimizedSupport) { setEbsOptimizedSupport(ebsOptimizedSupport); return this; } /** *

* Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances * in Amazon EC2 User Guide. *

* * @param ebsOptimizedSupport * Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized * instances in Amazon EC2 User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see EbsOptimizedSupport */ public EbsInfo withEbsOptimizedSupport(EbsOptimizedSupport ebsOptimizedSupport) { this.ebsOptimizedSupport = ebsOptimizedSupport.toString(); return this; } /** *

* Indicates whether Amazon EBS encryption is supported. *

* * @param encryptionSupport * Indicates whether Amazon EBS encryption is supported. * @see EbsEncryptionSupport */ public void setEncryptionSupport(String encryptionSupport) { this.encryptionSupport = encryptionSupport; } /** *

* Indicates whether Amazon EBS encryption is supported. *

* * @return Indicates whether Amazon EBS encryption is supported. * @see EbsEncryptionSupport */ public String getEncryptionSupport() { return this.encryptionSupport; } /** *

* Indicates whether Amazon EBS encryption is supported. *

* * @param encryptionSupport * Indicates whether Amazon EBS encryption is supported. * @return Returns a reference to this object so that method calls can be chained together. * @see EbsEncryptionSupport */ public EbsInfo withEncryptionSupport(String encryptionSupport) { setEncryptionSupport(encryptionSupport); return this; } /** *

* Indicates whether Amazon EBS encryption is supported. *

* * @param encryptionSupport * Indicates whether Amazon EBS encryption is supported. * @return Returns a reference to this object so that method calls can be chained together. * @see EbsEncryptionSupport */ public EbsInfo withEncryptionSupport(EbsEncryptionSupport encryptionSupport) { this.encryptionSupport = encryptionSupport.toString(); return this; } /** *

* Describes the optimized EBS performance for the instance type. *

* * @param ebsOptimizedInfo * Describes the optimized EBS performance for the instance type. */ public void setEbsOptimizedInfo(EbsOptimizedInfo ebsOptimizedInfo) { this.ebsOptimizedInfo = ebsOptimizedInfo; } /** *

* Describes the optimized EBS performance for the instance type. *

* * @return Describes the optimized EBS performance for the instance type. */ public EbsOptimizedInfo getEbsOptimizedInfo() { return this.ebsOptimizedInfo; } /** *

* Describes the optimized EBS performance for the instance type. *

* * @param ebsOptimizedInfo * Describes the optimized EBS performance for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public EbsInfo withEbsOptimizedInfo(EbsOptimizedInfo ebsOptimizedInfo) { setEbsOptimizedInfo(ebsOptimizedInfo); return this; } /** *

* Indicates whether non-volatile memory express (NVMe) is supported. *

* * @param nvmeSupport * Indicates whether non-volatile memory express (NVMe) is supported. * @see EbsNvmeSupport */ public void setNvmeSupport(String nvmeSupport) { this.nvmeSupport = nvmeSupport; } /** *

* Indicates whether non-volatile memory express (NVMe) is supported. *

* * @return Indicates whether non-volatile memory express (NVMe) is supported. * @see EbsNvmeSupport */ public String getNvmeSupport() { return this.nvmeSupport; } /** *

* Indicates whether non-volatile memory express (NVMe) is supported. *

* * @param nvmeSupport * Indicates whether non-volatile memory express (NVMe) is supported. * @return Returns a reference to this object so that method calls can be chained together. * @see EbsNvmeSupport */ public EbsInfo withNvmeSupport(String nvmeSupport) { setNvmeSupport(nvmeSupport); return this; } /** *

* Indicates whether non-volatile memory express (NVMe) is supported. *

* * @param nvmeSupport * Indicates whether non-volatile memory express (NVMe) is supported. * @return Returns a reference to this object so that method calls can be chained together. * @see EbsNvmeSupport */ public EbsInfo withNvmeSupport(EbsNvmeSupport nvmeSupport) { this.nvmeSupport = nvmeSupport.toString(); 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 (getEbsOptimizedSupport() != null) sb.append("EbsOptimizedSupport: ").append(getEbsOptimizedSupport()).append(","); if (getEncryptionSupport() != null) sb.append("EncryptionSupport: ").append(getEncryptionSupport()).append(","); if (getEbsOptimizedInfo() != null) sb.append("EbsOptimizedInfo: ").append(getEbsOptimizedInfo()).append(","); if (getNvmeSupport() != null) sb.append("NvmeSupport: ").append(getNvmeSupport()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EbsInfo == false) return false; EbsInfo other = (EbsInfo) obj; if (other.getEbsOptimizedSupport() == null ^ this.getEbsOptimizedSupport() == null) return false; if (other.getEbsOptimizedSupport() != null && other.getEbsOptimizedSupport().equals(this.getEbsOptimizedSupport()) == false) return false; if (other.getEncryptionSupport() == null ^ this.getEncryptionSupport() == null) return false; if (other.getEncryptionSupport() != null && other.getEncryptionSupport().equals(this.getEncryptionSupport()) == false) return false; if (other.getEbsOptimizedInfo() == null ^ this.getEbsOptimizedInfo() == null) return false; if (other.getEbsOptimizedInfo() != null && other.getEbsOptimizedInfo().equals(this.getEbsOptimizedInfo()) == false) return false; if (other.getNvmeSupport() == null ^ this.getNvmeSupport() == null) return false; if (other.getNvmeSupport() != null && other.getNvmeSupport().equals(this.getNvmeSupport()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEbsOptimizedSupport() == null) ? 0 : getEbsOptimizedSupport().hashCode()); hashCode = prime * hashCode + ((getEncryptionSupport() == null) ? 0 : getEncryptionSupport().hashCode()); hashCode = prime * hashCode + ((getEbsOptimizedInfo() == null) ? 0 : getEbsOptimizedInfo().hashCode()); hashCode = prime * hashCode + ((getNvmeSupport() == null) ? 0 : getNvmeSupport().hashCode()); return hashCode; } @Override public EbsInfo clone() { try { return (EbsInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy