/* * 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 GetJobRunRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* Name of the job definition being run. *

*/ private String jobName; /** *

* The ID of the job run. *

*/ private String runId; /** *

* True if a list of predecessor runs should be returned. *

*/ private Boolean predecessorsIncluded; /** *

* Name of the job definition being run. *

* * @param jobName * Name of the job definition being run. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* Name of the job definition being run. *

* * @return Name of the job definition being run. */ public String getJobName() { return this.jobName; } /** *

* Name of the job definition being run. *

* * @param jobName * Name of the job definition being run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetJobRunRequest withJobName(String jobName) { setJobName(jobName); return this; } /** *

* The ID of the job run. *

* * @param runId * The ID of the job run. */ public void setRunId(String runId) { this.runId = runId; } /** *

* The ID of the job run. *

* * @return The ID of the job run. */ public String getRunId() { return this.runId; } /** *

* The ID of the job run. *

* * @param runId * The ID of the job run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetJobRunRequest withRunId(String runId) { setRunId(runId); return this; } /** *

* True if a list of predecessor runs should be returned. *

* * @param predecessorsIncluded * True if a list of predecessor runs should be returned. */ public void setPredecessorsIncluded(Boolean predecessorsIncluded) { this.predecessorsIncluded = predecessorsIncluded; } /** *

* True if a list of predecessor runs should be returned. *

* * @return True if a list of predecessor runs should be returned. */ public Boolean getPredecessorsIncluded() { return this.predecessorsIncluded; } /** *

* True if a list of predecessor runs should be returned. *

* * @param predecessorsIncluded * True if a list of predecessor runs should be returned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetJobRunRequest withPredecessorsIncluded(Boolean predecessorsIncluded) { setPredecessorsIncluded(predecessorsIncluded); return this; } /** *

* True if a list of predecessor runs should be returned. *

* * @return True if a list of predecessor runs should be returned. */ public Boolean isPredecessorsIncluded() { return this.predecessorsIncluded; } /** * 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 (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getRunId() != null) sb.append("RunId: ").append(getRunId()).append(","); if (getPredecessorsIncluded() != null) sb.append("PredecessorsIncluded: ").append(getPredecessorsIncluded()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetJobRunRequest == false) return false; GetJobRunRequest other = (GetJobRunRequest) obj; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getRunId() == null ^ this.getRunId() == null) return false; if (other.getRunId() != null && other.getRunId().equals(this.getRunId()) == false) return false; if (other.getPredecessorsIncluded() == null ^ this.getPredecessorsIncluded() == null) return false; if (other.getPredecessorsIncluded() != null && other.getPredecessorsIncluded().equals(this.getPredecessorsIncluded()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getRunId() == null) ? 0 : getRunId().hashCode()); hashCode = prime * hashCode + ((getPredecessorsIncluded() == null) ? 0 : getPredecessorsIncluded().hashCode()); return hashCode; } @Override public GetJobRunRequest clone() { return (GetJobRunRequest) super.clone(); } }