/* * 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; /** *

* Container for human task user interface information. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HumanTaskUiSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the human task user interface. *

*/ private String humanTaskUiName; /** *

* The Amazon Resource Name (ARN) of the human task user interface. *

*/ private String humanTaskUiArn; /** *

* A timestamp when SageMaker created the human task user interface. *

*/ private java.util.Date creationTime; /** *

* The name of the human task user interface. *

* * @param humanTaskUiName * The name of the human task user interface. */ public void setHumanTaskUiName(String humanTaskUiName) { this.humanTaskUiName = humanTaskUiName; } /** *

* The name of the human task user interface. *

* * @return The name of the human task user interface. */ public String getHumanTaskUiName() { return this.humanTaskUiName; } /** *

* The name of the human task user interface. *

* * @param humanTaskUiName * The name of the human task user interface. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanTaskUiSummary withHumanTaskUiName(String humanTaskUiName) { setHumanTaskUiName(humanTaskUiName); return this; } /** *

* The Amazon Resource Name (ARN) of the human task user interface. *

* * @param humanTaskUiArn * The Amazon Resource Name (ARN) of the human task user interface. */ public void setHumanTaskUiArn(String humanTaskUiArn) { this.humanTaskUiArn = humanTaskUiArn; } /** *

* The Amazon Resource Name (ARN) of the human task user interface. *

* * @return The Amazon Resource Name (ARN) of the human task user interface. */ public String getHumanTaskUiArn() { return this.humanTaskUiArn; } /** *

* The Amazon Resource Name (ARN) of the human task user interface. *

* * @param humanTaskUiArn * The Amazon Resource Name (ARN) of the human task user interface. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanTaskUiSummary withHumanTaskUiArn(String humanTaskUiArn) { setHumanTaskUiArn(humanTaskUiArn); return this; } /** *

* A timestamp when SageMaker created the human task user interface. *

* * @param creationTime * A timestamp when SageMaker created the human task user interface. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* A timestamp when SageMaker created the human task user interface. *

* * @return A timestamp when SageMaker created the human task user interface. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* A timestamp when SageMaker created the human task user interface. *

* * @param creationTime * A timestamp when SageMaker created the human task user interface. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanTaskUiSummary 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 (getHumanTaskUiName() != null) sb.append("HumanTaskUiName: ").append(getHumanTaskUiName()).append(","); if (getHumanTaskUiArn() != null) sb.append("HumanTaskUiArn: ").append(getHumanTaskUiArn()).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 HumanTaskUiSummary == false) return false; HumanTaskUiSummary other = (HumanTaskUiSummary) obj; if (other.getHumanTaskUiName() == null ^ this.getHumanTaskUiName() == null) return false; if (other.getHumanTaskUiName() != null && other.getHumanTaskUiName().equals(this.getHumanTaskUiName()) == false) return false; if (other.getHumanTaskUiArn() == null ^ this.getHumanTaskUiArn() == null) return false; if (other.getHumanTaskUiArn() != null && other.getHumanTaskUiArn().equals(this.getHumanTaskUiArn()) == 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 + ((getHumanTaskUiName() == null) ? 0 : getHumanTaskUiName().hashCode()); hashCode = prime * hashCode + ((getHumanTaskUiArn() == null) ? 0 : getHumanTaskUiArn().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); return hashCode; } @Override public HumanTaskUiSummary clone() { try { return (HumanTaskUiSummary) 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.HumanTaskUiSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }