* The time that the custom plugin was created. *
*/ private java.util.Date creationTime; /** ** The Amazon Resource Name (ARN) of the custom plugin. *
*/ private String customPluginArn; /** ** The state of the custom plugin. *
*/ private String customPluginState; /** ** The description of the custom plugin. *
*/ private String description; /** ** The latest successfully created revision of the custom plugin. If there are no successfully created revisions, * this field will be absent. *
*/ private CustomPluginRevisionSummary latestRevision; /** ** The name of the custom plugin. *
*/ private String name; /** ** Details about the state of a custom plugin. *
*/ private StateDescription stateDescription; /** ** The time that the custom plugin was created. *
* * @param creationTime * The time that the custom plugin was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time that the custom plugin was created. *
* * @return The time that the custom plugin was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time that the custom plugin was created. *
* * @param creationTime * The time that the custom plugin was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomPluginResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The Amazon Resource Name (ARN) of the custom plugin. *
* * @param customPluginArn * The Amazon Resource Name (ARN) of the custom plugin. */ public void setCustomPluginArn(String customPluginArn) { this.customPluginArn = customPluginArn; } /** ** The Amazon Resource Name (ARN) of the custom plugin. *
* * @return The Amazon Resource Name (ARN) of the custom plugin. */ public String getCustomPluginArn() { return this.customPluginArn; } /** ** The Amazon Resource Name (ARN) of the custom plugin. *
* * @param customPluginArn * The Amazon Resource Name (ARN) of the custom plugin. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomPluginResult withCustomPluginArn(String customPluginArn) { setCustomPluginArn(customPluginArn); return this; } /** ** The state of the custom plugin. *
* * @param customPluginState * The state of the custom plugin. * @see CustomPluginState */ public void setCustomPluginState(String customPluginState) { this.customPluginState = customPluginState; } /** ** The state of the custom plugin. *
* * @return The state of the custom plugin. * @see CustomPluginState */ public String getCustomPluginState() { return this.customPluginState; } /** ** The state of the custom plugin. *
* * @param customPluginState * The state of the custom plugin. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomPluginState */ public DescribeCustomPluginResult withCustomPluginState(String customPluginState) { setCustomPluginState(customPluginState); return this; } /** ** The state of the custom plugin. *
* * @param customPluginState * The state of the custom plugin. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomPluginState */ public DescribeCustomPluginResult withCustomPluginState(CustomPluginState customPluginState) { this.customPluginState = customPluginState.toString(); return this; } /** ** The description of the custom plugin. *
* * @param description * The description of the custom plugin. */ public void setDescription(String description) { this.description = description; } /** ** The description of the custom plugin. *
* * @return The description of the custom plugin. */ public String getDescription() { return this.description; } /** ** The description of the custom plugin. *
* * @param description * The description of the custom plugin. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomPluginResult withDescription(String description) { setDescription(description); return this; } /** ** The latest successfully created revision of the custom plugin. If there are no successfully created revisions, * this field will be absent. *
* * @param latestRevision * The latest successfully created revision of the custom plugin. If there are no successfully created * revisions, this field will be absent. */ public void setLatestRevision(CustomPluginRevisionSummary latestRevision) { this.latestRevision = latestRevision; } /** ** The latest successfully created revision of the custom plugin. If there are no successfully created revisions, * this field will be absent. *
* * @return The latest successfully created revision of the custom plugin. If there are no successfully created * revisions, this field will be absent. */ public CustomPluginRevisionSummary getLatestRevision() { return this.latestRevision; } /** ** The latest successfully created revision of the custom plugin. If there are no successfully created revisions, * this field will be absent. *
* * @param latestRevision * The latest successfully created revision of the custom plugin. If there are no successfully created * revisions, this field will be absent. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomPluginResult withLatestRevision(CustomPluginRevisionSummary latestRevision) { setLatestRevision(latestRevision); return this; } /** ** The name of the custom plugin. *
* * @param name * The name of the custom plugin. */ public void setName(String name) { this.name = name; } /** ** The name of the custom plugin. *
* * @return The name of the custom plugin. */ public String getName() { return this.name; } /** ** The name of the custom plugin. *
* * @param name * The name of the custom plugin. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomPluginResult withName(String name) { setName(name); return this; } /** ** Details about the state of a custom plugin. *
* * @param stateDescription * Details about the state of a custom plugin. */ public void setStateDescription(StateDescription stateDescription) { this.stateDescription = stateDescription; } /** ** Details about the state of a custom plugin. *
* * @return Details about the state of a custom plugin. */ public StateDescription getStateDescription() { return this.stateDescription; } /** ** Details about the state of a custom plugin. *
* * @param stateDescription * Details about the state of a custom plugin. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomPluginResult withStateDescription(StateDescription stateDescription) { setStateDescription(stateDescription); 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 (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getCustomPluginArn() != null) sb.append("CustomPluginArn: ").append(getCustomPluginArn()).append(","); if (getCustomPluginState() != null) sb.append("CustomPluginState: ").append(getCustomPluginState()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStateDescription() != null) sb.append("StateDescription: ").append(getStateDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCustomPluginResult == false) return false; DescribeCustomPluginResult other = (DescribeCustomPluginResult) obj; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getCustomPluginArn() == null ^ this.getCustomPluginArn() == null) return false; if (other.getCustomPluginArn() != null && other.getCustomPluginArn().equals(this.getCustomPluginArn()) == false) return false; if (other.getCustomPluginState() == null ^ this.getCustomPluginState() == null) return false; if (other.getCustomPluginState() != null && other.getCustomPluginState().equals(this.getCustomPluginState()) == 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.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == 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.getStateDescription() == null ^ this.getStateDescription() == null) return false; if (other.getStateDescription() != null && other.getStateDescription().equals(this.getStateDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCustomPluginArn() == null) ? 0 : getCustomPluginArn().hashCode()); hashCode = prime * hashCode + ((getCustomPluginState() == null) ? 0 : getCustomPluginState().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStateDescription() == null) ? 0 : getStateDescription().hashCode()); return hashCode; } @Override public DescribeCustomPluginResult clone() { try { return (DescribeCustomPluginResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }