* Indicates the job ID of the data ingestion job. *
*/ private String jobId; /** *
* Indicates the status of the StartDataIngestionJob
operation.
*
* Indicates the job ID of the data ingestion job. *
* * @param jobId * Indicates the job ID of the data ingestion job. */ public void setJobId(String jobId) { this.jobId = jobId; } /** ** Indicates the job ID of the data ingestion job. *
* * @return Indicates the job ID of the data ingestion job. */ public String getJobId() { return this.jobId; } /** ** Indicates the job ID of the data ingestion job. *
* * @param jobId * Indicates the job ID of the data ingestion job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataIngestionJobResult withJobId(String jobId) { setJobId(jobId); return this; } /** *
* Indicates the status of the StartDataIngestionJob
operation.
*
StartDataIngestionJob
operation.
* @see IngestionJobStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Indicates the status of the StartDataIngestionJob
operation.
*
StartDataIngestionJob
operation.
* @see IngestionJobStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Indicates the status of the StartDataIngestionJob
operation.
*
StartDataIngestionJob
operation.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IngestionJobStatus
*/
public StartDataIngestionJobResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Indicates the status of the StartDataIngestionJob
operation.
*
StartDataIngestionJob
operation.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IngestionJobStatus
*/
public StartDataIngestionJobResult withStatus(IngestionJobStatus status) {
this.status = status.toString();
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 (getStatus() != null)
sb.append("Status: ").append(getStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartDataIngestionJobResult == false)
return false;
StartDataIngestionJobResult other = (StartDataIngestionJobResult) obj;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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 + ((getStatus() == null) ? 0 : getStatus().hashCode());
return hashCode;
}
@Override
public StartDataIngestionJobResult clone() {
try {
return (StartDataIngestionJobResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}