/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CancelMLTaskRunRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The unique identifier of the machine learning transform. *

*/ private String transformId; /** *

* A unique identifier for the task run. *

*/ private String taskRunId; /** *

* The unique identifier of the machine learning transform. *

* * @param transformId * The unique identifier of the machine learning transform. */ public void setTransformId(String transformId) { this.transformId = transformId; } /** *

* The unique identifier of the machine learning transform. *

* * @return The unique identifier of the machine learning transform. */ public String getTransformId() { return this.transformId; } /** *

* The unique identifier of the machine learning transform. *

* * @param transformId * The unique identifier of the machine learning transform. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelMLTaskRunRequest withTransformId(String transformId) { setTransformId(transformId); return this; } /** *

* A unique identifier for the task run. *

* * @param taskRunId * A unique identifier for the task run. */ public void setTaskRunId(String taskRunId) { this.taskRunId = taskRunId; } /** *

* A unique identifier for the task run. *

* * @return A unique identifier for the task run. */ public String getTaskRunId() { return this.taskRunId; } /** *

* A unique identifier for the task run. *

* * @param taskRunId * A unique identifier for the task run. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelMLTaskRunRequest withTaskRunId(String taskRunId) { setTaskRunId(taskRunId); 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 (getTransformId() != null) sb.append("TransformId: ").append(getTransformId()).append(","); if (getTaskRunId() != null) sb.append("TaskRunId: ").append(getTaskRunId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CancelMLTaskRunRequest == false) return false; CancelMLTaskRunRequest other = (CancelMLTaskRunRequest) obj; if (other.getTransformId() == null ^ this.getTransformId() == null) return false; if (other.getTransformId() != null && other.getTransformId().equals(this.getTransformId()) == false) return false; if (other.getTaskRunId() == null ^ this.getTaskRunId() == null) return false; if (other.getTaskRunId() != null && other.getTaskRunId().equals(this.getTaskRunId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransformId() == null) ? 0 : getTransformId().hashCode()); hashCode = prime * hashCode + ((getTaskRunId() == null) ? 0 : getTaskRunId().hashCode()); return hashCode; } @Override public CancelMLTaskRunRequest clone() { return (CancelMLTaskRunRequest) super.clone(); } }