@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBundleId() == null) ? 0 : getBundleId().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getIconUrl() == null) ? 0 : getIconUrl().hashCode()); hashCode = prime * hashCode + ((getAvailablePlatforms() == null) ? 0 : getAvailablePlatforms().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 (getBundleId() != null) sb.append("BundleId: ").append(getBundleId()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getIconUrl() != null) sb.append("IconUrl: ").append(getIconUrl()).append(","); if (getAvailablePlatforms() != null) sb.append("AvailablePlatforms: ").append(getAvailablePlatforms()); sb.append("}"); return sb.toString(); }
if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == 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.getIconUrl() == null ^ this.getIconUrl() == null)
/** * Marshall the given parameter object. */ public void marshall(BundleDetails bundleDetails, ProtocolMarshaller protocolMarshaller) { if (bundleDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(bundleDetails.getBundleId(), BUNDLEID_BINDING); protocolMarshaller.marshall(bundleDetails.getTitle(), TITLE_BINDING); protocolMarshaller.marshall(bundleDetails.getVersion(), VERSION_BINDING); protocolMarshaller.marshall(bundleDetails.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(bundleDetails.getIconUrl(), ICONURL_BINDING); protocolMarshaller.marshall(bundleDetails.getAvailablePlatforms(), AVAILABLEPLATFORMS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBundleId() == null) ? 0 : getBundleId().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getIconUrl() == null) ? 0 : getIconUrl().hashCode()); hashCode = prime * hashCode + ((getAvailablePlatforms() == null) ? 0 : getAvailablePlatforms().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 (getBundleId() != null) sb.append("BundleId: ").append(getBundleId()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getIconUrl() != null) sb.append("IconUrl: ").append(getIconUrl()).append(","); if (getAvailablePlatforms() != null) sb.append("AvailablePlatforms: ").append(getAvailablePlatforms()); sb.append("}"); return sb.toString(); }
if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == 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.getIconUrl() == null ^ this.getIconUrl() == null)
/** * Marshall the given parameter object. */ public void marshall(BundleDetails bundleDetails, ProtocolMarshaller protocolMarshaller) { if (bundleDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(bundleDetails.getBundleId(), BUNDLEID_BINDING); protocolMarshaller.marshall(bundleDetails.getTitle(), TITLE_BINDING); protocolMarshaller.marshall(bundleDetails.getVersion(), VERSION_BINDING); protocolMarshaller.marshall(bundleDetails.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(bundleDetails.getIconUrl(), ICONURL_BINDING); protocolMarshaller.marshall(bundleDetails.getAvailablePlatforms(), AVAILABLEPLATFORMS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }