@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDetails() == null) ? 0 : getDetails().hashCode()); return hashCode; }
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(Platform... availablePlatforms) { java.util.ArrayList<String> availablePlatformsCopy = new java.util.ArrayList<String>(availablePlatforms.length); for (Platform value : availablePlatforms) { availablePlatformsCopy.add(value.toString()); } if (getAvailablePlatforms() == null) { setAvailablePlatforms(availablePlatformsCopy); } else { getAvailablePlatforms().addAll(availablePlatformsCopy); } return this; }
public BundleDetails unmarshall(JsonUnmarshallerContext context) throws Exception { BundleDetails bundleDetails = new BundleDetails(); if (context.testExpression("bundleId", targetDepth)) { context.nextToken(); bundleDetails.setBundleId(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setTitle(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setIconUrl(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setAvailablePlatforms(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(java.util.Collection<String> availablePlatforms) { setAvailablePlatforms(availablePlatforms); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeBundleResult == false) return false; DescribeBundleResult other = (DescribeBundleResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
public BundleDetails unmarshall(JsonUnmarshallerContext context) throws Exception { BundleDetails bundleDetails = new BundleDetails(); if (context.testExpression("bundleId", targetDepth)) { context.nextToken(); bundleDetails.setBundleId(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setTitle(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setIconUrl(context.getUnmarshaller(String.class).unmarshall(context)); bundleDetails.setAvailablePlatforms(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAvailablePlatforms(java.util.Collection)} or {@link #withAvailablePlatforms(java.util.Collection)} if * you want to override the existing values. * </p> * * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(String... availablePlatforms) { if (this.availablePlatforms == null) { setAvailablePlatforms(new java.util.ArrayList<String>(availablePlatforms.length)); } for (String ele : availablePlatforms) { this.availablePlatforms.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeBundleResult == false) return false; DescribeBundleResult other = (DescribeBundleResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
return false; BundleDetails other = (BundleDetails) obj; if (other.getBundleId() == null ^ this.getBundleId() == null) return false; if (other.getBundleId() != null && other.getBundleId().equals(this.getBundleId()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; 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) return false; if (other.getIconUrl() != null && other.getIconUrl().equals(this.getIconUrl()) == false) return false; if (other.getAvailablePlatforms() == null ^ this.getAvailablePlatforms() == null) return false; if (other.getAvailablePlatforms() != null && other.getAvailablePlatforms().equals(this.getAvailablePlatforms()) == false) return false; return true;
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(Platform... availablePlatforms) { java.util.ArrayList<String> availablePlatformsCopy = new java.util.ArrayList<String>(availablePlatforms.length); for (Platform value : availablePlatforms) { availablePlatformsCopy.add(value.toString()); } if (getAvailablePlatforms() == null) { setAvailablePlatforms(availablePlatformsCopy); } else { getAvailablePlatforms().addAll(availablePlatformsCopy); } return this; }
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(java.util.Collection<String> availablePlatforms) { setAvailablePlatforms(availablePlatforms); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDetails() == null) ? 0 : getDetails().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(); }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAvailablePlatforms(java.util.Collection)} or {@link #withAvailablePlatforms(java.util.Collection)} if * you want to override the existing values. * </p> * * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(String... availablePlatforms) { if (this.availablePlatforms == null) { setAvailablePlatforms(new java.util.ArrayList<String>(availablePlatforms.length)); } for (String ele : availablePlatforms) { this.availablePlatforms.add(ele); } return this; }
/** * 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; }
return false; BundleDetails other = (BundleDetails) obj; if (other.getBundleId() == null ^ this.getBundleId() == null) return false; if (other.getBundleId() != null && other.getBundleId().equals(this.getBundleId()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; 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) return false; if (other.getIconUrl() != null && other.getIconUrl().equals(this.getIconUrl()) == false) return false; if (other.getAvailablePlatforms() == null ^ this.getAvailablePlatforms() == null) return false; if (other.getAvailablePlatforms() != null && other.getAvailablePlatforms().equals(this.getAvailablePlatforms()) == 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 (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(); }
/** * 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); } }