* An object that contains summary information about a system instance that was deployed. *
*/ private SystemInstanceSummary summary; /** ** The ID of the Greengrass deployment used to deploy the system instance. *
*/ private String greengrassDeploymentId; /** ** An object that contains summary information about a system instance that was deployed. *
* * @param summary * An object that contains summary information about a system instance that was deployed. */ public void setSummary(SystemInstanceSummary summary) { this.summary = summary; } /** ** An object that contains summary information about a system instance that was deployed. *
* * @return An object that contains summary information about a system instance that was deployed. */ public SystemInstanceSummary getSummary() { return this.summary; } /** ** An object that contains summary information about a system instance that was deployed. *
* * @param summary * An object that contains summary information about a system instance that was deployed. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploySystemInstanceResult withSummary(SystemInstanceSummary summary) { setSummary(summary); return this; } /** ** The ID of the Greengrass deployment used to deploy the system instance. *
* * @param greengrassDeploymentId * The ID of the Greengrass deployment used to deploy the system instance. */ public void setGreengrassDeploymentId(String greengrassDeploymentId) { this.greengrassDeploymentId = greengrassDeploymentId; } /** ** The ID of the Greengrass deployment used to deploy the system instance. *
* * @return The ID of the Greengrass deployment used to deploy the system instance. */ public String getGreengrassDeploymentId() { return this.greengrassDeploymentId; } /** ** The ID of the Greengrass deployment used to deploy the system instance. *
* * @param greengrassDeploymentId * The ID of the Greengrass deployment used to deploy the system instance. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploySystemInstanceResult withGreengrassDeploymentId(String greengrassDeploymentId) { setGreengrassDeploymentId(greengrassDeploymentId); 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 (getSummary() != null) sb.append("Summary: ").append(getSummary()).append(","); if (getGreengrassDeploymentId() != null) sb.append("GreengrassDeploymentId: ").append(getGreengrassDeploymentId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeploySystemInstanceResult == false) return false; DeploySystemInstanceResult other = (DeploySystemInstanceResult) obj; if (other.getSummary() == null ^ this.getSummary() == null) return false; if (other.getSummary() != null && other.getSummary().equals(this.getSummary()) == false) return false; if (other.getGreengrassDeploymentId() == null ^ this.getGreengrassDeploymentId() == null) return false; if (other.getGreengrassDeploymentId() != null && other.getGreengrassDeploymentId().equals(this.getGreengrassDeploymentId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSummary() == null) ? 0 : getSummary().hashCode()); hashCode = prime * hashCode + ((getGreengrassDeploymentId() == null) ? 0 : getGreengrassDeploymentId().hashCode()); return hashCode; } @Override public DeploySystemInstanceResult clone() { try { return (DeploySystemInstanceResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }