com.amazonaws.services.ec2.model.EbsOptimizedInfo Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ec2 Show documentation
/*
* 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Describes the optimized EBS performance for supported instance types.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class EbsOptimizedInfo implements Serializable, Cloneable {
/**
*
* The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*/
private Integer baselineBandwidthInMbps;
/**
*
* The baseline throughput performance for an EBS-optimized instance type, in MB/s.
*
*/
private Double baselineThroughputInMBps;
/**
*
* The baseline input/output storage operations per seconds for an EBS-optimized instance type.
*
*/
private Integer baselineIops;
/**
*
* The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*/
private Integer maximumBandwidthInMbps;
/**
*
* The maximum throughput performance for an EBS-optimized instance type, in MB/s.
*
*/
private Double maximumThroughputInMBps;
/**
*
* The maximum input/output storage operations per second for an EBS-optimized instance type.
*
*/
private Integer maximumIops;
/**
*
* The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*
* @param baselineBandwidthInMbps
* The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
*/
public void setBaselineBandwidthInMbps(Integer baselineBandwidthInMbps) {
this.baselineBandwidthInMbps = baselineBandwidthInMbps;
}
/**
*
* The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*
* @return The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
*/
public Integer getBaselineBandwidthInMbps() {
return this.baselineBandwidthInMbps;
}
/**
*
* The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*
* @param baselineBandwidthInMbps
* The baseline bandwidth performance for an EBS-optimized instance type, in Mbps.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EbsOptimizedInfo withBaselineBandwidthInMbps(Integer baselineBandwidthInMbps) {
setBaselineBandwidthInMbps(baselineBandwidthInMbps);
return this;
}
/**
*
* The baseline throughput performance for an EBS-optimized instance type, in MB/s.
*
*
* @param baselineThroughputInMBps
* The baseline throughput performance for an EBS-optimized instance type, in MB/s.
*/
public void setBaselineThroughputInMBps(Double baselineThroughputInMBps) {
this.baselineThroughputInMBps = baselineThroughputInMBps;
}
/**
*
* The baseline throughput performance for an EBS-optimized instance type, in MB/s.
*
*
* @return The baseline throughput performance for an EBS-optimized instance type, in MB/s.
*/
public Double getBaselineThroughputInMBps() {
return this.baselineThroughputInMBps;
}
/**
*
* The baseline throughput performance for an EBS-optimized instance type, in MB/s.
*
*
* @param baselineThroughputInMBps
* The baseline throughput performance for an EBS-optimized instance type, in MB/s.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EbsOptimizedInfo withBaselineThroughputInMBps(Double baselineThroughputInMBps) {
setBaselineThroughputInMBps(baselineThroughputInMBps);
return this;
}
/**
*
* The baseline input/output storage operations per seconds for an EBS-optimized instance type.
*
*
* @param baselineIops
* The baseline input/output storage operations per seconds for an EBS-optimized instance type.
*/
public void setBaselineIops(Integer baselineIops) {
this.baselineIops = baselineIops;
}
/**
*
* The baseline input/output storage operations per seconds for an EBS-optimized instance type.
*
*
* @return The baseline input/output storage operations per seconds for an EBS-optimized instance type.
*/
public Integer getBaselineIops() {
return this.baselineIops;
}
/**
*
* The baseline input/output storage operations per seconds for an EBS-optimized instance type.
*
*
* @param baselineIops
* The baseline input/output storage operations per seconds for an EBS-optimized instance type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EbsOptimizedInfo withBaselineIops(Integer baselineIops) {
setBaselineIops(baselineIops);
return this;
}
/**
*
* The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*
* @param maximumBandwidthInMbps
* The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
*/
public void setMaximumBandwidthInMbps(Integer maximumBandwidthInMbps) {
this.maximumBandwidthInMbps = maximumBandwidthInMbps;
}
/**
*
* The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*
* @return The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
*/
public Integer getMaximumBandwidthInMbps() {
return this.maximumBandwidthInMbps;
}
/**
*
* The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
*
*
* @param maximumBandwidthInMbps
* The maximum bandwidth performance for an EBS-optimized instance type, in Mbps.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EbsOptimizedInfo withMaximumBandwidthInMbps(Integer maximumBandwidthInMbps) {
setMaximumBandwidthInMbps(maximumBandwidthInMbps);
return this;
}
/**
*
* The maximum throughput performance for an EBS-optimized instance type, in MB/s.
*
*
* @param maximumThroughputInMBps
* The maximum throughput performance for an EBS-optimized instance type, in MB/s.
*/
public void setMaximumThroughputInMBps(Double maximumThroughputInMBps) {
this.maximumThroughputInMBps = maximumThroughputInMBps;
}
/**
*
* The maximum throughput performance for an EBS-optimized instance type, in MB/s.
*
*
* @return The maximum throughput performance for an EBS-optimized instance type, in MB/s.
*/
public Double getMaximumThroughputInMBps() {
return this.maximumThroughputInMBps;
}
/**
*
* The maximum throughput performance for an EBS-optimized instance type, in MB/s.
*
*
* @param maximumThroughputInMBps
* The maximum throughput performance for an EBS-optimized instance type, in MB/s.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EbsOptimizedInfo withMaximumThroughputInMBps(Double maximumThroughputInMBps) {
setMaximumThroughputInMBps(maximumThroughputInMBps);
return this;
}
/**
*
* The maximum input/output storage operations per second for an EBS-optimized instance type.
*
*
* @param maximumIops
* The maximum input/output storage operations per second for an EBS-optimized instance type.
*/
public void setMaximumIops(Integer maximumIops) {
this.maximumIops = maximumIops;
}
/**
*
* The maximum input/output storage operations per second for an EBS-optimized instance type.
*
*
* @return The maximum input/output storage operations per second for an EBS-optimized instance type.
*/
public Integer getMaximumIops() {
return this.maximumIops;
}
/**
*
* The maximum input/output storage operations per second for an EBS-optimized instance type.
*
*
* @param maximumIops
* The maximum input/output storage operations per second for an EBS-optimized instance type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EbsOptimizedInfo withMaximumIops(Integer maximumIops) {
setMaximumIops(maximumIops);
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 (getBaselineBandwidthInMbps() != null)
sb.append("BaselineBandwidthInMbps: ").append(getBaselineBandwidthInMbps()).append(",");
if (getBaselineThroughputInMBps() != null)
sb.append("BaselineThroughputInMBps: ").append(getBaselineThroughputInMBps()).append(",");
if (getBaselineIops() != null)
sb.append("BaselineIops: ").append(getBaselineIops()).append(",");
if (getMaximumBandwidthInMbps() != null)
sb.append("MaximumBandwidthInMbps: ").append(getMaximumBandwidthInMbps()).append(",");
if (getMaximumThroughputInMBps() != null)
sb.append("MaximumThroughputInMBps: ").append(getMaximumThroughputInMBps()).append(",");
if (getMaximumIops() != null)
sb.append("MaximumIops: ").append(getMaximumIops());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof EbsOptimizedInfo == false)
return false;
EbsOptimizedInfo other = (EbsOptimizedInfo) obj;
if (other.getBaselineBandwidthInMbps() == null ^ this.getBaselineBandwidthInMbps() == null)
return false;
if (other.getBaselineBandwidthInMbps() != null && other.getBaselineBandwidthInMbps().equals(this.getBaselineBandwidthInMbps()) == false)
return false;
if (other.getBaselineThroughputInMBps() == null ^ this.getBaselineThroughputInMBps() == null)
return false;
if (other.getBaselineThroughputInMBps() != null && other.getBaselineThroughputInMBps().equals(this.getBaselineThroughputInMBps()) == false)
return false;
if (other.getBaselineIops() == null ^ this.getBaselineIops() == null)
return false;
if (other.getBaselineIops() != null && other.getBaselineIops().equals(this.getBaselineIops()) == false)
return false;
if (other.getMaximumBandwidthInMbps() == null ^ this.getMaximumBandwidthInMbps() == null)
return false;
if (other.getMaximumBandwidthInMbps() != null && other.getMaximumBandwidthInMbps().equals(this.getMaximumBandwidthInMbps()) == false)
return false;
if (other.getMaximumThroughputInMBps() == null ^ this.getMaximumThroughputInMBps() == null)
return false;
if (other.getMaximumThroughputInMBps() != null && other.getMaximumThroughputInMBps().equals(this.getMaximumThroughputInMBps()) == false)
return false;
if (other.getMaximumIops() == null ^ this.getMaximumIops() == null)
return false;
if (other.getMaximumIops() != null && other.getMaximumIops().equals(this.getMaximumIops()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBaselineBandwidthInMbps() == null) ? 0 : getBaselineBandwidthInMbps().hashCode());
hashCode = prime * hashCode + ((getBaselineThroughputInMBps() == null) ? 0 : getBaselineThroughputInMBps().hashCode());
hashCode = prime * hashCode + ((getBaselineIops() == null) ? 0 : getBaselineIops().hashCode());
hashCode = prime * hashCode + ((getMaximumBandwidthInMbps() == null) ? 0 : getMaximumBandwidthInMbps().hashCode());
hashCode = prime * hashCode + ((getMaximumThroughputInMBps() == null) ? 0 : getMaximumThroughputInMBps().hashCode());
hashCode = prime * hashCode + ((getMaximumIops() == null) ? 0 : getMaximumIops().hashCode());
return hashCode;
}
@Override
public EbsOptimizedInfo clone() {
try {
return (EbsOptimizedInfo) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}