@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSnapshotId() == null) ? 0 : getSnapshotId().hashCode()); hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode()); hashCode = prime * hashCode + ((getVolumeSize() == null) ? 0 : getVolumeSize().hashCode()); hashCode = prime * hashCode + ((getVolumeType() == null) ? 0 : getVolumeType().hashCode()); hashCode = prime * hashCode + ((getDeleteOnTermination() == null) ? 0 : getDeleteOnTermination().hashCode()); return hashCode; }
/** * 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 (getSnapshotId() != null) sb.append("SnapshotId: ").append(getSnapshotId()).append(","); if (getIops() != null) sb.append("Iops: ").append(getIops()).append(","); if (getVolumeSize() != null) sb.append("VolumeSize: ").append(getVolumeSize()).append(","); if (getVolumeType() != null) sb.append("VolumeType: ").append(getVolumeType()).append(","); if (getDeleteOnTermination() != null) sb.append("DeleteOnTermination: ").append(getDeleteOnTermination()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(EbsBlockDevice ebsBlockDevice, ProtocolMarshaller protocolMarshaller) { if (ebsBlockDevice == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(ebsBlockDevice.getSnapshotId(), SNAPSHOTID_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getIops(), IOPS_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getVolumeSize(), VOLUMESIZE_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getVolumeType(), VOLUMETYPE_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getDeleteOnTermination(), DELETEONTERMINATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getSnapshotId() != null && other.getSnapshotId().equals(this.getSnapshotId()) == false) return false; if (other.getIops() == null ^ this.getIops() == null) return false; if (other.getIops() != null && other.getIops().equals(this.getIops()) == false) return false; if (other.getVolumeSize() == null ^ this.getVolumeSize() == null)
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSnapshotId() == null) ? 0 : getSnapshotId().hashCode()); hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode()); hashCode = prime * hashCode + ((getVolumeSize() == null) ? 0 : getVolumeSize().hashCode()); hashCode = prime * hashCode + ((getVolumeType() == null) ? 0 : getVolumeType().hashCode()); hashCode = prime * hashCode + ((getDeleteOnTermination() == null) ? 0 : getDeleteOnTermination().hashCode()); return hashCode; }
/** * 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 (getSnapshotId() != null) sb.append("SnapshotId: ").append(getSnapshotId()).append(","); if (getIops() != null) sb.append("Iops: ").append(getIops()).append(","); if (getVolumeSize() != null) sb.append("VolumeSize: ").append(getVolumeSize()).append(","); if (getVolumeType() != null) sb.append("VolumeType: ").append(getVolumeType()).append(","); if (getDeleteOnTermination() != null) sb.append("DeleteOnTermination: ").append(getDeleteOnTermination()); sb.append("}"); return sb.toString(); }
if (other.getSnapshotId() != null && other.getSnapshotId().equals(this.getSnapshotId()) == false) return false; if (other.getIops() == null ^ this.getIops() == null) return false; if (other.getIops() != null && other.getIops().equals(this.getIops()) == false) return false; if (other.getVolumeSize() == null ^ this.getVolumeSize() == null)
/** * Marshall the given parameter object. */ public void marshall(EbsBlockDevice ebsBlockDevice, ProtocolMarshaller protocolMarshaller) { if (ebsBlockDevice == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(ebsBlockDevice.getSnapshotId(), SNAPSHOTID_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getIops(), IOPS_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getVolumeSize(), VOLUMESIZE_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getVolumeType(), VOLUMETYPE_BINDING); protocolMarshaller.marshall(ebsBlockDevice.getDeleteOnTermination(), DELETEONTERMINATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }