* Detailed information about an application component. *
*/ private ApplicationComponentDetail applicationComponentDetail; /** ** The associated application group as defined in AWS Application Discovery Service. *
*/ private java.util.List* A list of the IDs of the servers on which the application component is running. *
*/ private java.util.List* Set to true if the application component belongs to more than one application group. *
*/ private Boolean moreApplicationResource; /** ** Detailed information about an application component. *
* * @param applicationComponentDetail * Detailed information about an application component. */ public void setApplicationComponentDetail(ApplicationComponentDetail applicationComponentDetail) { this.applicationComponentDetail = applicationComponentDetail; } /** ** Detailed information about an application component. *
* * @return Detailed information about an application component. */ public ApplicationComponentDetail getApplicationComponentDetail() { return this.applicationComponentDetail; } /** ** Detailed information about an application component. *
* * @param applicationComponentDetail * Detailed information about an application component. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApplicationComponentDetailsResult withApplicationComponentDetail(ApplicationComponentDetail applicationComponentDetail) { setApplicationComponentDetail(applicationComponentDetail); return this; } /** ** The associated application group as defined in AWS Application Discovery Service. *
* * @return The associated application group as defined in AWS Application Discovery Service. */ public java.util.List* The associated application group as defined in AWS Application Discovery Service. *
* * @param associatedApplications * The associated application group as defined in AWS Application Discovery Service. */ public void setAssociatedApplications(java.util.Collection* The associated application group as defined in AWS Application Discovery Service. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAssociatedApplications(java.util.Collection)} or * {@link #withAssociatedApplications(java.util.Collection)} if you want to override the existing values. *
* * @param associatedApplications * The associated application group as defined in AWS Application Discovery Service. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApplicationComponentDetailsResult withAssociatedApplications(AssociatedApplication... associatedApplications) { if (this.associatedApplications == null) { setAssociatedApplications(new java.util.ArrayList* The associated application group as defined in AWS Application Discovery Service. *
* * @param associatedApplications * The associated application group as defined in AWS Application Discovery Service. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApplicationComponentDetailsResult withAssociatedApplications(java.util.Collection* A list of the IDs of the servers on which the application component is running. *
* * @return A list of the IDs of the servers on which the application component is running. */ public java.util.List* A list of the IDs of the servers on which the application component is running. *
* * @param associatedServerIds * A list of the IDs of the servers on which the application component is running. */ public void setAssociatedServerIds(java.util.Collection* A list of the IDs of the servers on which the application component is running. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAssociatedServerIds(java.util.Collection)} or {@link #withAssociatedServerIds(java.util.Collection)} * if you want to override the existing values. *
* * @param associatedServerIds * A list of the IDs of the servers on which the application component is running. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApplicationComponentDetailsResult withAssociatedServerIds(String... associatedServerIds) { if (this.associatedServerIds == null) { setAssociatedServerIds(new java.util.ArrayList* A list of the IDs of the servers on which the application component is running. *
* * @param associatedServerIds * A list of the IDs of the servers on which the application component is running. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApplicationComponentDetailsResult withAssociatedServerIds(java.util.Collection* Set to true if the application component belongs to more than one application group. *
* * @param moreApplicationResource * Set to true if the application component belongs to more than one application group. */ public void setMoreApplicationResource(Boolean moreApplicationResource) { this.moreApplicationResource = moreApplicationResource; } /** ** Set to true if the application component belongs to more than one application group. *
* * @return Set to true if the application component belongs to more than one application group. */ public Boolean getMoreApplicationResource() { return this.moreApplicationResource; } /** ** Set to true if the application component belongs to more than one application group. *
* * @param moreApplicationResource * Set to true if the application component belongs to more than one application group. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApplicationComponentDetailsResult withMoreApplicationResource(Boolean moreApplicationResource) { setMoreApplicationResource(moreApplicationResource); return this; } /** ** Set to true if the application component belongs to more than one application group. *
* * @return Set to true if the application component belongs to more than one application group. */ public Boolean isMoreApplicationResource() { return this.moreApplicationResource; } /** * 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 (getApplicationComponentDetail() != null) sb.append("ApplicationComponentDetail: ").append(getApplicationComponentDetail()).append(","); if (getAssociatedApplications() != null) sb.append("AssociatedApplications: ").append(getAssociatedApplications()).append(","); if (getAssociatedServerIds() != null) sb.append("AssociatedServerIds: ").append(getAssociatedServerIds()).append(","); if (getMoreApplicationResource() != null) sb.append("MoreApplicationResource: ").append(getMoreApplicationResource()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetApplicationComponentDetailsResult == false) return false; GetApplicationComponentDetailsResult other = (GetApplicationComponentDetailsResult) obj; if (other.getApplicationComponentDetail() == null ^ this.getApplicationComponentDetail() == null) return false; if (other.getApplicationComponentDetail() != null && other.getApplicationComponentDetail().equals(this.getApplicationComponentDetail()) == false) return false; if (other.getAssociatedApplications() == null ^ this.getAssociatedApplications() == null) return false; if (other.getAssociatedApplications() != null && other.getAssociatedApplications().equals(this.getAssociatedApplications()) == false) return false; if (other.getAssociatedServerIds() == null ^ this.getAssociatedServerIds() == null) return false; if (other.getAssociatedServerIds() != null && other.getAssociatedServerIds().equals(this.getAssociatedServerIds()) == false) return false; if (other.getMoreApplicationResource() == null ^ this.getMoreApplicationResource() == null) return false; if (other.getMoreApplicationResource() != null && other.getMoreApplicationResource().equals(this.getMoreApplicationResource()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationComponentDetail() == null) ? 0 : getApplicationComponentDetail().hashCode()); hashCode = prime * hashCode + ((getAssociatedApplications() == null) ? 0 : getAssociatedApplications().hashCode()); hashCode = prime * hashCode + ((getAssociatedServerIds() == null) ? 0 : getAssociatedServerIds().hashCode()); hashCode = prime * hashCode + ((getMoreApplicationResource() == null) ? 0 : getMoreApplicationResource().hashCode()); return hashCode; } @Override public GetApplicationComponentDetailsResult clone() { try { return (GetApplicationComponentDetailsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }