/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Specifies configuration properties for a Find Matches task run. *

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

* The job ID for the Find Matches task run. *

*/ private String jobId; /** *

* The name assigned to the job for the Find Matches task run. *

*/ private String jobName; /** *

* The job run ID for the Find Matches task run. *

*/ private String jobRunId; /** *

* The job ID for the Find Matches task run. *

* * @param jobId * The job ID for the Find Matches task run. */ public void setJobId(String jobId) { this.jobId = jobId; } /** *

* The job ID for the Find Matches task run. *

* * @return The job ID for the Find Matches task run. */ public String getJobId() { return this.jobId; } /** *

* The job ID for the Find Matches task run. *

* * @param jobId * The job ID for the Find Matches task run. * @return Returns a reference to this object so that method calls can be chained together. */ public FindMatchesTaskRunProperties withJobId(String jobId) { setJobId(jobId); return this; } /** *

* The name assigned to the job for the Find Matches task run. *

* * @param jobName * The name assigned to the job for the Find Matches task run. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* The name assigned to the job for the Find Matches task run. *

* * @return The name assigned to the job for the Find Matches task run. */ public String getJobName() { return this.jobName; } /** *

* The name assigned to the job for the Find Matches task run. *

* * @param jobName * The name assigned to the job for the Find Matches task run. * @return Returns a reference to this object so that method calls can be chained together. */ public FindMatchesTaskRunProperties withJobName(String jobName) { setJobName(jobName); return this; } /** *

* The job run ID for the Find Matches task run. *

* * @param jobRunId * The job run ID for the Find Matches task run. */ public void setJobRunId(String jobRunId) { this.jobRunId = jobRunId; } /** *

* The job run ID for the Find Matches task run. *

* * @return The job run ID for the Find Matches task run. */ public String getJobRunId() { return this.jobRunId; } /** *

* The job run ID for the Find Matches task run. *

* * @param jobRunId * The job run ID for the Find Matches task run. * @return Returns a reference to this object so that method calls can be chained together. */ public FindMatchesTaskRunProperties withJobRunId(String jobRunId) { setJobRunId(jobRunId); 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 (getJobId() != null) sb.append("JobId: ").append(getJobId()).append(","); if (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getJobRunId() != null) sb.append("JobRunId: ").append(getJobRunId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FindMatchesTaskRunProperties == false) return false; FindMatchesTaskRunProperties other = (FindMatchesTaskRunProperties) obj; if (other.getJobId() == null ^ this.getJobId() == null) return false; if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false) return false; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getJobRunId() == null ^ this.getJobRunId() == null) return false; if (other.getJobRunId() != null && other.getJobRunId().equals(this.getJobRunId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getJobRunId() == null) ? 0 : getJobRunId().hashCode()); return hashCode; } @Override public FindMatchesTaskRunProperties clone() { try { return (FindMatchesTaskRunProperties) 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.glue.model.transform.FindMatchesTaskRunPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller); } }