/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about hub content. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HubContentInfo implements Serializable, Cloneable, StructuredPojo { /** ** The name of the hub content. *
*/ private String hubContentName; /** ** The Amazon Resource Name (ARN) of the hub content. *
*/ private String hubContentArn; /** ** The version of the hub content. *
*/ private String hubContentVersion; /** ** The type of hub content. *
*/ private String hubContentType; /** ** The version of the hub content document schema. *
*/ private String documentSchemaVersion; /** ** The display name of the hub content. *
*/ private String hubContentDisplayName; /** ** A description of the hub content. *
*/ private String hubContentDescription; /** ** The searchable keywords for the hub content. *
*/ private java.util.List* The status of the hub content. *
*/ private String hubContentStatus; /** ** The date and time that the hub content was created. *
*/ private java.util.Date creationTime; /** ** The name of the hub content. *
* * @param hubContentName * The name of the hub content. */ public void setHubContentName(String hubContentName) { this.hubContentName = hubContentName; } /** ** The name of the hub content. *
* * @return The name of the hub content. */ public String getHubContentName() { return this.hubContentName; } /** ** The name of the hub content. *
* * @param hubContentName * The name of the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentName(String hubContentName) { setHubContentName(hubContentName); return this; } /** ** The Amazon Resource Name (ARN) of the hub content. *
* * @param hubContentArn * The Amazon Resource Name (ARN) of the hub content. */ public void setHubContentArn(String hubContentArn) { this.hubContentArn = hubContentArn; } /** ** The Amazon Resource Name (ARN) of the hub content. *
* * @return The Amazon Resource Name (ARN) of the hub content. */ public String getHubContentArn() { return this.hubContentArn; } /** ** The Amazon Resource Name (ARN) of the hub content. *
* * @param hubContentArn * The Amazon Resource Name (ARN) of the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentArn(String hubContentArn) { setHubContentArn(hubContentArn); return this; } /** ** The version of the hub content. *
* * @param hubContentVersion * The version of the hub content. */ public void setHubContentVersion(String hubContentVersion) { this.hubContentVersion = hubContentVersion; } /** ** The version of the hub content. *
* * @return The version of the hub content. */ public String getHubContentVersion() { return this.hubContentVersion; } /** ** The version of the hub content. *
* * @param hubContentVersion * The version of the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentVersion(String hubContentVersion) { setHubContentVersion(hubContentVersion); return this; } /** ** The type of hub content. *
* * @param hubContentType * The type of hub content. * @see HubContentType */ public void setHubContentType(String hubContentType) { this.hubContentType = hubContentType; } /** ** The type of hub content. *
* * @return The type of hub content. * @see HubContentType */ public String getHubContentType() { return this.hubContentType; } /** ** The type of hub content. *
* * @param hubContentType * The type of hub content. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentType */ public HubContentInfo withHubContentType(String hubContentType) { setHubContentType(hubContentType); return this; } /** ** The type of hub content. *
* * @param hubContentType * The type of hub content. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentType */ public HubContentInfo withHubContentType(HubContentType hubContentType) { this.hubContentType = hubContentType.toString(); return this; } /** ** The version of the hub content document schema. *
* * @param documentSchemaVersion * The version of the hub content document schema. */ public void setDocumentSchemaVersion(String documentSchemaVersion) { this.documentSchemaVersion = documentSchemaVersion; } /** ** The version of the hub content document schema. *
* * @return The version of the hub content document schema. */ public String getDocumentSchemaVersion() { return this.documentSchemaVersion; } /** ** The version of the hub content document schema. *
* * @param documentSchemaVersion * The version of the hub content document schema. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withDocumentSchemaVersion(String documentSchemaVersion) { setDocumentSchemaVersion(documentSchemaVersion); return this; } /** ** The display name of the hub content. *
* * @param hubContentDisplayName * The display name of the hub content. */ public void setHubContentDisplayName(String hubContentDisplayName) { this.hubContentDisplayName = hubContentDisplayName; } /** ** The display name of the hub content. *
* * @return The display name of the hub content. */ public String getHubContentDisplayName() { return this.hubContentDisplayName; } /** ** The display name of the hub content. *
* * @param hubContentDisplayName * The display name of the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentDisplayName(String hubContentDisplayName) { setHubContentDisplayName(hubContentDisplayName); return this; } /** ** A description of the hub content. *
* * @param hubContentDescription * A description of the hub content. */ public void setHubContentDescription(String hubContentDescription) { this.hubContentDescription = hubContentDescription; } /** ** A description of the hub content. *
* * @return A description of the hub content. */ public String getHubContentDescription() { return this.hubContentDescription; } /** ** A description of the hub content. *
* * @param hubContentDescription * A description of the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentDescription(String hubContentDescription) { setHubContentDescription(hubContentDescription); return this; } /** ** The searchable keywords for the hub content. *
* * @return The searchable keywords for the hub content. */ public java.util.List* The searchable keywords for the hub content. *
* * @param hubContentSearchKeywords * The searchable keywords for the hub content. */ public void setHubContentSearchKeywords(java.util.Collection* The searchable keywords for the hub content. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setHubContentSearchKeywords(java.util.Collection)} or * {@link #withHubContentSearchKeywords(java.util.Collection)} if you want to override the existing values. *
* * @param hubContentSearchKeywords * The searchable keywords for the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentSearchKeywords(String... hubContentSearchKeywords) { if (this.hubContentSearchKeywords == null) { setHubContentSearchKeywords(new java.util.ArrayList* The searchable keywords for the hub content. *
* * @param hubContentSearchKeywords * The searchable keywords for the hub content. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withHubContentSearchKeywords(java.util.Collection* The status of the hub content. *
* * @param hubContentStatus * The status of the hub content. * @see HubContentStatus */ public void setHubContentStatus(String hubContentStatus) { this.hubContentStatus = hubContentStatus; } /** ** The status of the hub content. *
* * @return The status of the hub content. * @see HubContentStatus */ public String getHubContentStatus() { return this.hubContentStatus; } /** ** The status of the hub content. *
* * @param hubContentStatus * The status of the hub content. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentStatus */ public HubContentInfo withHubContentStatus(String hubContentStatus) { setHubContentStatus(hubContentStatus); return this; } /** ** The status of the hub content. *
* * @param hubContentStatus * The status of the hub content. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentStatus */ public HubContentInfo withHubContentStatus(HubContentStatus hubContentStatus) { this.hubContentStatus = hubContentStatus.toString(); return this; } /** ** The date and time that the hub content was created. *
* * @param creationTime * The date and time that the hub content was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The date and time that the hub content was created. *
* * @return The date and time that the hub content was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The date and time that the hub content was created. *
* * @param creationTime * The date and time that the hub content was created. * @return Returns a reference to this object so that method calls can be chained together. */ public HubContentInfo withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); 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 (getHubContentName() != null) sb.append("HubContentName: ").append(getHubContentName()).append(","); if (getHubContentArn() != null) sb.append("HubContentArn: ").append(getHubContentArn()).append(","); if (getHubContentVersion() != null) sb.append("HubContentVersion: ").append(getHubContentVersion()).append(","); if (getHubContentType() != null) sb.append("HubContentType: ").append(getHubContentType()).append(","); if (getDocumentSchemaVersion() != null) sb.append("DocumentSchemaVersion: ").append(getDocumentSchemaVersion()).append(","); if (getHubContentDisplayName() != null) sb.append("HubContentDisplayName: ").append(getHubContentDisplayName()).append(","); if (getHubContentDescription() != null) sb.append("HubContentDescription: ").append(getHubContentDescription()).append(","); if (getHubContentSearchKeywords() != null) sb.append("HubContentSearchKeywords: ").append(getHubContentSearchKeywords()).append(","); if (getHubContentStatus() != null) sb.append("HubContentStatus: ").append(getHubContentStatus()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HubContentInfo == false) return false; HubContentInfo other = (HubContentInfo) obj; if (other.getHubContentName() == null ^ this.getHubContentName() == null) return false; if (other.getHubContentName() != null && other.getHubContentName().equals(this.getHubContentName()) == false) return false; if (other.getHubContentArn() == null ^ this.getHubContentArn() == null) return false; if (other.getHubContentArn() != null && other.getHubContentArn().equals(this.getHubContentArn()) == false) return false; if (other.getHubContentVersion() == null ^ this.getHubContentVersion() == null) return false; if (other.getHubContentVersion() != null && other.getHubContentVersion().equals(this.getHubContentVersion()) == false) return false; if (other.getHubContentType() == null ^ this.getHubContentType() == null) return false; if (other.getHubContentType() != null && other.getHubContentType().equals(this.getHubContentType()) == false) return false; if (other.getDocumentSchemaVersion() == null ^ this.getDocumentSchemaVersion() == null) return false; if (other.getDocumentSchemaVersion() != null && other.getDocumentSchemaVersion().equals(this.getDocumentSchemaVersion()) == false) return false; if (other.getHubContentDisplayName() == null ^ this.getHubContentDisplayName() == null) return false; if (other.getHubContentDisplayName() != null && other.getHubContentDisplayName().equals(this.getHubContentDisplayName()) == false) return false; if (other.getHubContentDescription() == null ^ this.getHubContentDescription() == null) return false; if (other.getHubContentDescription() != null && other.getHubContentDescription().equals(this.getHubContentDescription()) == false) return false; if (other.getHubContentSearchKeywords() == null ^ this.getHubContentSearchKeywords() == null) return false; if (other.getHubContentSearchKeywords() != null && other.getHubContentSearchKeywords().equals(this.getHubContentSearchKeywords()) == false) return false; if (other.getHubContentStatus() == null ^ this.getHubContentStatus() == null) return false; if (other.getHubContentStatus() != null && other.getHubContentStatus().equals(this.getHubContentStatus()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHubContentName() == null) ? 0 : getHubContentName().hashCode()); hashCode = prime * hashCode + ((getHubContentArn() == null) ? 0 : getHubContentArn().hashCode()); hashCode = prime * hashCode + ((getHubContentVersion() == null) ? 0 : getHubContentVersion().hashCode()); hashCode = prime * hashCode + ((getHubContentType() == null) ? 0 : getHubContentType().hashCode()); hashCode = prime * hashCode + ((getDocumentSchemaVersion() == null) ? 0 : getDocumentSchemaVersion().hashCode()); hashCode = prime * hashCode + ((getHubContentDisplayName() == null) ? 0 : getHubContentDisplayName().hashCode()); hashCode = prime * hashCode + ((getHubContentDescription() == null) ? 0 : getHubContentDescription().hashCode()); hashCode = prime * hashCode + ((getHubContentSearchKeywords() == null) ? 0 : getHubContentSearchKeywords().hashCode()); hashCode = prime * hashCode + ((getHubContentStatus() == null) ? 0 : getHubContentStatus().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); return hashCode; } @Override public HubContentInfo clone() { try { return (HubContentInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.HubContentInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }