@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageId() == null) ? 0 : getFpgaImageId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLoadPermissions() == null) ? 0 : getLoadPermissions().hashCode()); hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageAttribute() == null) ? 0 : getFpgaImageAttribute().hashCode()); return hashCode; }
/** * <p> * The description of the AFI. * </p> * * @param description * The description of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withDescription(String description) { setDescription(description); return this; }
public FpgaImageAttribute unmarshall(StaxUnmarshallerContext context) throws Exception { FpgaImageAttribute fpgaImageAttribute = new FpgaImageAttribute(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; fpgaImageAttribute.setFpgaImageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.withLoadPermissions(new ArrayList<LoadPermission>()); continue; fpgaImageAttribute.withLoadPermissions(LoadPermissionStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.withProductCodes(new ArrayList<ProductCode>()); continue; fpgaImageAttribute.withProductCodes(ProductCodeStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyFpgaImageAttributeResult == false) return false; ModifyFpgaImageAttributeResult other = (ModifyFpgaImageAttributeResult) obj; if (other.getFpgaImageAttribute() == null ^ this.getFpgaImageAttribute() == null) return false; if (other.getFpgaImageAttribute() != null && other.getFpgaImageAttribute().equals(this.getFpgaImageAttribute()) == false) return false; return true; }
/** * <p> * The ID of the AFI. * </p> * * @param fpgaImageId * The ID of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withFpgaImageId(String fpgaImageId) { setFpgaImageId(fpgaImageId); return this; }
public FpgaImageAttribute unmarshall(StaxUnmarshallerContext context) throws Exception { FpgaImageAttribute fpgaImageAttribute = new FpgaImageAttribute(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; fpgaImageAttribute.setFpgaImageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.withLoadPermissions(new ArrayList<LoadPermission>()); continue; fpgaImageAttribute.withLoadPermissions(LoadPermissionStaxUnmarshaller.getInstance().unmarshall(context)); continue; fpgaImageAttribute.withProductCodes(new ArrayList<ProductCode>()); continue; fpgaImageAttribute.withProductCodes(ProductCodeStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeFpgaImageAttributeResult == false) return false; DescribeFpgaImageAttributeResult other = (DescribeFpgaImageAttributeResult) obj; if (other.getFpgaImageAttribute() == null ^ this.getFpgaImageAttribute() == null) return false; if (other.getFpgaImageAttribute() != null && other.getFpgaImageAttribute().equals(this.getFpgaImageAttribute()) == false) return false; return true; }
/** * <p> * The ID of the AFI. * </p> * * @param fpgaImageId * The ID of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withFpgaImageId(String fpgaImageId) { setFpgaImageId(fpgaImageId); return this; }
return false; FpgaImageAttribute other = (FpgaImageAttribute) obj; if (other.getFpgaImageId() == null ^ this.getFpgaImageId() == null) return false; if (other.getFpgaImageId() != null && other.getFpgaImageId().equals(this.getFpgaImageId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getLoadPermissions() == null ^ this.getLoadPermissions() == null) return false; if (other.getLoadPermissions() != null && other.getLoadPermissions().equals(this.getLoadPermissions()) == false) return false; if (other.getProductCodes() == null ^ this.getProductCodes() == null) return false; if (other.getProductCodes() != null && other.getProductCodes().equals(this.getProductCodes()) == false) return false; return true;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageAttribute() == null) ? 0 : getFpgaImageAttribute().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyFpgaImageAttributeResult == false) return false; ModifyFpgaImageAttributeResult other = (ModifyFpgaImageAttributeResult) obj; if (other.getFpgaImageAttribute() == null ^ this.getFpgaImageAttribute() == null) return false; if (other.getFpgaImageAttribute() != null && other.getFpgaImageAttribute().equals(this.getFpgaImageAttribute()) == false) return false; return true; }
/** * <p> * The description of the AFI. * </p> * * @param description * The description of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withDescription(String description) { setDescription(description); 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 (getFpgaImageId() != null) sb.append("FpgaImageId: ").append(getFpgaImageId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLoadPermissions() != null) sb.append("LoadPermissions: ").append(getLoadPermissions()).append(","); if (getProductCodes() != null) sb.append("ProductCodes: ").append(getProductCodes()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageAttribute() == null) ? 0 : getFpgaImageAttribute().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeFpgaImageAttributeResult == false) return false; DescribeFpgaImageAttributeResult other = (DescribeFpgaImageAttributeResult) obj; if (other.getFpgaImageAttribute() == null ^ this.getFpgaImageAttribute() == null) return false; if (other.getFpgaImageAttribute() != null && other.getFpgaImageAttribute().equals(this.getFpgaImageAttribute()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageId() == null) ? 0 : getFpgaImageId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLoadPermissions() == null) ? 0 : getLoadPermissions().hashCode()); hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageAttribute() == null) ? 0 : getFpgaImageAttribute().hashCode()); return hashCode; }
return false; FpgaImageAttribute other = (FpgaImageAttribute) obj; if (other.getFpgaImageId() == null ^ this.getFpgaImageId() == null) return false; if (other.getFpgaImageId() != null && other.getFpgaImageId().equals(this.getFpgaImageId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getLoadPermissions() == null ^ this.getLoadPermissions() == null) return false; if (other.getLoadPermissions() != null && other.getLoadPermissions().equals(this.getLoadPermissions()) == false) return false; if (other.getProductCodes() == null ^ this.getProductCodes() == null) return false; if (other.getProductCodes() != null && other.getProductCodes().equals(this.getProductCodes()) == false) return false; return true;
/** * 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 (getFpgaImageId() != null) sb.append("FpgaImageId: ").append(getFpgaImageId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLoadPermissions() != null) sb.append("LoadPermissions: ").append(getLoadPermissions()).append(","); if (getProductCodes() != null) sb.append("ProductCodes: ").append(getProductCodes()); sb.append("}"); return sb.toString(); }