* The name of the hub. *
*/ private String hubName; /** ** The Amazon Resource Name (ARN) of the hub. *
*/ private String hubArn; /** ** The display name of the hub. *
*/ private String hubDisplayName; /** ** A description of the hub. *
*/ private String hubDescription; /** ** The searchable keywords for the hub. *
*/ private java.util.List* The Amazon S3 storage configuration for the hub. *
*/ private HubS3StorageConfig s3StorageConfig; /** ** The status of the hub. *
*/ private String hubStatus; /** ** The failure reason if importing hub content failed. *
*/ private String failureReason; /** ** The date and time that the hub was created. *
*/ private java.util.Date creationTime; /** ** The date and time that the hub was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** The name of the hub. *
* * @param hubName * The name of the hub. */ public void setHubName(String hubName) { this.hubName = hubName; } /** ** The name of the hub. *
* * @return The name of the hub. */ public String getHubName() { return this.hubName; } /** ** The name of the hub. *
* * @param hubName * The name of the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withHubName(String hubName) { setHubName(hubName); return this; } /** ** The Amazon Resource Name (ARN) of the hub. *
* * @param hubArn * The Amazon Resource Name (ARN) of the hub. */ public void setHubArn(String hubArn) { this.hubArn = hubArn; } /** ** The Amazon Resource Name (ARN) of the hub. *
* * @return The Amazon Resource Name (ARN) of the hub. */ public String getHubArn() { return this.hubArn; } /** ** The Amazon Resource Name (ARN) of the hub. *
* * @param hubArn * The Amazon Resource Name (ARN) of the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withHubArn(String hubArn) { setHubArn(hubArn); return this; } /** ** The display name of the hub. *
* * @param hubDisplayName * The display name of the hub. */ public void setHubDisplayName(String hubDisplayName) { this.hubDisplayName = hubDisplayName; } /** ** The display name of the hub. *
* * @return The display name of the hub. */ public String getHubDisplayName() { return this.hubDisplayName; } /** ** The display name of the hub. *
* * @param hubDisplayName * The display name of the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withHubDisplayName(String hubDisplayName) { setHubDisplayName(hubDisplayName); return this; } /** ** A description of the hub. *
* * @param hubDescription * A description of the hub. */ public void setHubDescription(String hubDescription) { this.hubDescription = hubDescription; } /** ** A description of the hub. *
* * @return A description of the hub. */ public String getHubDescription() { return this.hubDescription; } /** ** A description of the hub. *
* * @param hubDescription * A description of the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withHubDescription(String hubDescription) { setHubDescription(hubDescription); return this; } /** ** The searchable keywords for the hub. *
* * @return The searchable keywords for the hub. */ public java.util.List* The searchable keywords for the hub. *
* * @param hubSearchKeywords * The searchable keywords for the hub. */ public void setHubSearchKeywords(java.util.Collection* The searchable keywords for the hub. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setHubSearchKeywords(java.util.Collection)} or {@link #withHubSearchKeywords(java.util.Collection)} if * you want to override the existing values. *
* * @param hubSearchKeywords * The searchable keywords for the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withHubSearchKeywords(String... hubSearchKeywords) { if (this.hubSearchKeywords == null) { setHubSearchKeywords(new java.util.ArrayList* The searchable keywords for the hub. *
* * @param hubSearchKeywords * The searchable keywords for the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withHubSearchKeywords(java.util.Collection* The Amazon S3 storage configuration for the hub. *
* * @param s3StorageConfig * The Amazon S3 storage configuration for the hub. */ public void setS3StorageConfig(HubS3StorageConfig s3StorageConfig) { this.s3StorageConfig = s3StorageConfig; } /** ** The Amazon S3 storage configuration for the hub. *
* * @return The Amazon S3 storage configuration for the hub. */ public HubS3StorageConfig getS3StorageConfig() { return this.s3StorageConfig; } /** ** The Amazon S3 storage configuration for the hub. *
* * @param s3StorageConfig * The Amazon S3 storage configuration for the hub. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withS3StorageConfig(HubS3StorageConfig s3StorageConfig) { setS3StorageConfig(s3StorageConfig); return this; } /** ** The status of the hub. *
* * @param hubStatus * The status of the hub. * @see HubStatus */ public void setHubStatus(String hubStatus) { this.hubStatus = hubStatus; } /** ** The status of the hub. *
* * @return The status of the hub. * @see HubStatus */ public String getHubStatus() { return this.hubStatus; } /** ** The status of the hub. *
* * @param hubStatus * The status of the hub. * @return Returns a reference to this object so that method calls can be chained together. * @see HubStatus */ public DescribeHubResult withHubStatus(String hubStatus) { setHubStatus(hubStatus); return this; } /** ** The status of the hub. *
* * @param hubStatus * The status of the hub. * @return Returns a reference to this object so that method calls can be chained together. * @see HubStatus */ public DescribeHubResult withHubStatus(HubStatus hubStatus) { this.hubStatus = hubStatus.toString(); return this; } /** ** The failure reason if importing hub content failed. *
* * @param failureReason * The failure reason if importing hub content failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** The failure reason if importing hub content failed. *
* * @return The failure reason if importing hub content failed. */ public String getFailureReason() { return this.failureReason; } /** ** The failure reason if importing hub content failed. *
* * @param failureReason * The failure reason if importing hub content failed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The date and time that the hub was created. *
* * @param creationTime * The date and time that the hub was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The date and time that the hub was created. *
* * @return The date and time that the hub was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The date and time that the hub was created. *
* * @param creationTime * The date and time that the hub was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The date and time that the hub was last modified. *
* * @param lastModifiedTime * The date and time that the hub was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The date and time that the hub was last modified. *
* * @return The date and time that the hub was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The date and time that the hub was last modified. *
* * @param lastModifiedTime * The date and time that the hub was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHubResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 (getHubName() != null) sb.append("HubName: ").append(getHubName()).append(","); if (getHubArn() != null) sb.append("HubArn: ").append(getHubArn()).append(","); if (getHubDisplayName() != null) sb.append("HubDisplayName: ").append(getHubDisplayName()).append(","); if (getHubDescription() != null) sb.append("HubDescription: ").append(getHubDescription()).append(","); if (getHubSearchKeywords() != null) sb.append("HubSearchKeywords: ").append(getHubSearchKeywords()).append(","); if (getS3StorageConfig() != null) sb.append("S3StorageConfig: ").append(getS3StorageConfig()).append(","); if (getHubStatus() != null) sb.append("HubStatus: ").append(getHubStatus()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeHubResult == false) return false; DescribeHubResult other = (DescribeHubResult) obj; if (other.getHubName() == null ^ this.getHubName() == null) return false; if (other.getHubName() != null && other.getHubName().equals(this.getHubName()) == false) return false; if (other.getHubArn() == null ^ this.getHubArn() == null) return false; if (other.getHubArn() != null && other.getHubArn().equals(this.getHubArn()) == false) return false; if (other.getHubDisplayName() == null ^ this.getHubDisplayName() == null) return false; if (other.getHubDisplayName() != null && other.getHubDisplayName().equals(this.getHubDisplayName()) == false) return false; if (other.getHubDescription() == null ^ this.getHubDescription() == null) return false; if (other.getHubDescription() != null && other.getHubDescription().equals(this.getHubDescription()) == false) return false; if (other.getHubSearchKeywords() == null ^ this.getHubSearchKeywords() == null) return false; if (other.getHubSearchKeywords() != null && other.getHubSearchKeywords().equals(this.getHubSearchKeywords()) == false) return false; if (other.getS3StorageConfig() == null ^ this.getS3StorageConfig() == null) return false; if (other.getS3StorageConfig() != null && other.getS3StorageConfig().equals(this.getS3StorageConfig()) == false) return false; if (other.getHubStatus() == null ^ this.getHubStatus() == null) return false; if (other.getHubStatus() != null && other.getHubStatus().equals(this.getHubStatus()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHubName() == null) ? 0 : getHubName().hashCode()); hashCode = prime * hashCode + ((getHubArn() == null) ? 0 : getHubArn().hashCode()); hashCode = prime * hashCode + ((getHubDisplayName() == null) ? 0 : getHubDisplayName().hashCode()); hashCode = prime * hashCode + ((getHubDescription() == null) ? 0 : getHubDescription().hashCode()); hashCode = prime * hashCode + ((getHubSearchKeywords() == null) ? 0 : getHubSearchKeywords().hashCode()); hashCode = prime * hashCode + ((getS3StorageConfig() == null) ? 0 : getS3StorageConfig().hashCode()); hashCode = prime * hashCode + ((getHubStatus() == null) ? 0 : getHubStatus().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public DescribeHubResult clone() { try { return (DescribeHubResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }