com.amazonaws.services.voiceid.model.SpeakerEnrollmentJobSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-voiceid Show documentation
/*
* Copyright 2019-2024 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.voiceid.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains a summary of information about a speaker enrollment job.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SpeakerEnrollmentJobSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* A timestamp of when of the speaker enrollment job was created.
*
*/
private java.util.Date createdAt;
/**
*
* The identifier of the domain that contains the speaker enrollment job.
*
*/
private String domainId;
/**
*
* A timestamp of when the speaker enrollment job ended.
*
*/
private java.util.Date endedAt;
/**
*
* Contains details that are populated when an entire batch job fails. In cases of individual registration job
* failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration
* requests that failed.
*
*/
private FailureDetails failureDetails;
/**
*
* The service-generated identifier for the speaker enrollment job.
*
*/
private String jobId;
/**
*
* The client-provided name for the speaker enrollment job.
*
*/
private String jobName;
/**
*
* Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed
* in the input file.
*
*/
private JobProgress jobProgress;
/**
*
* The current status of the speaker enrollment job.
*
*/
private String jobStatus;
/**
*
* A timestamp of when of the speaker enrollment job was created.
*
*
* @param createdAt
* A timestamp of when of the speaker enrollment job was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* A timestamp of when of the speaker enrollment job was created.
*
*
* @return A timestamp of when of the speaker enrollment job was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* A timestamp of when of the speaker enrollment job was created.
*
*
* @param createdAt
* A timestamp of when of the speaker enrollment job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The identifier of the domain that contains the speaker enrollment job.
*
*
* @param domainId
* The identifier of the domain that contains the speaker enrollment job.
*/
public void setDomainId(String domainId) {
this.domainId = domainId;
}
/**
*
* The identifier of the domain that contains the speaker enrollment job.
*
*
* @return The identifier of the domain that contains the speaker enrollment job.
*/
public String getDomainId() {
return this.domainId;
}
/**
*
* The identifier of the domain that contains the speaker enrollment job.
*
*
* @param domainId
* The identifier of the domain that contains the speaker enrollment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withDomainId(String domainId) {
setDomainId(domainId);
return this;
}
/**
*
* A timestamp of when the speaker enrollment job ended.
*
*
* @param endedAt
* A timestamp of when the speaker enrollment job ended.
*/
public void setEndedAt(java.util.Date endedAt) {
this.endedAt = endedAt;
}
/**
*
* A timestamp of when the speaker enrollment job ended.
*
*
* @return A timestamp of when the speaker enrollment job ended.
*/
public java.util.Date getEndedAt() {
return this.endedAt;
}
/**
*
* A timestamp of when the speaker enrollment job ended.
*
*
* @param endedAt
* A timestamp of when the speaker enrollment job ended.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withEndedAt(java.util.Date endedAt) {
setEndedAt(endedAt);
return this;
}
/**
*
* Contains details that are populated when an entire batch job fails. In cases of individual registration job
* failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration
* requests that failed.
*
*
* @param failureDetails
* Contains details that are populated when an entire batch job fails. In cases of individual registration
* job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual
* registration requests that failed.
*/
public void setFailureDetails(FailureDetails failureDetails) {
this.failureDetails = failureDetails;
}
/**
*
* Contains details that are populated when an entire batch job fails. In cases of individual registration job
* failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration
* requests that failed.
*
*
* @return Contains details that are populated when an entire batch job fails. In cases of individual registration
* job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual
* registration requests that failed.
*/
public FailureDetails getFailureDetails() {
return this.failureDetails;
}
/**
*
* Contains details that are populated when an entire batch job fails. In cases of individual registration job
* failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration
* requests that failed.
*
*
* @param failureDetails
* Contains details that are populated when an entire batch job fails. In cases of individual registration
* job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus
of
* COMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual
* registration requests that failed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withFailureDetails(FailureDetails failureDetails) {
setFailureDetails(failureDetails);
return this;
}
/**
*
* The service-generated identifier for the speaker enrollment job.
*
*
* @param jobId
* The service-generated identifier for the speaker enrollment job.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The service-generated identifier for the speaker enrollment job.
*
*
* @return The service-generated identifier for the speaker enrollment job.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The service-generated identifier for the speaker enrollment job.
*
*
* @param jobId
* The service-generated identifier for the speaker enrollment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* The client-provided name for the speaker enrollment job.
*
*
* @param jobName
* The client-provided name for the speaker enrollment job.
*/
public void setJobName(String jobName) {
this.jobName = jobName;
}
/**
*
* The client-provided name for the speaker enrollment job.
*
*
* @return The client-provided name for the speaker enrollment job.
*/
public String getJobName() {
return this.jobName;
}
/**
*
* The client-provided name for the speaker enrollment job.
*
*
* @param jobName
* The client-provided name for the speaker enrollment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withJobName(String jobName) {
setJobName(jobName);
return this;
}
/**
*
* Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed
* in the input file.
*
*
* @param jobProgress
* Provides details regarding job progress. This field shows the completed percentage of enrollment requests
* listed in the input file.
*/
public void setJobProgress(JobProgress jobProgress) {
this.jobProgress = jobProgress;
}
/**
*
* Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed
* in the input file.
*
*
* @return Provides details regarding job progress. This field shows the completed percentage of enrollment requests
* listed in the input file.
*/
public JobProgress getJobProgress() {
return this.jobProgress;
}
/**
*
* Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed
* in the input file.
*
*
* @param jobProgress
* Provides details regarding job progress. This field shows the completed percentage of enrollment requests
* listed in the input file.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpeakerEnrollmentJobSummary withJobProgress(JobProgress jobProgress) {
setJobProgress(jobProgress);
return this;
}
/**
*
* The current status of the speaker enrollment job.
*
*
* @param jobStatus
* The current status of the speaker enrollment job.
* @see SpeakerEnrollmentJobStatus
*/
public void setJobStatus(String jobStatus) {
this.jobStatus = jobStatus;
}
/**
*
* The current status of the speaker enrollment job.
*
*
* @return The current status of the speaker enrollment job.
* @see SpeakerEnrollmentJobStatus
*/
public String getJobStatus() {
return this.jobStatus;
}
/**
*
* The current status of the speaker enrollment job.
*
*
* @param jobStatus
* The current status of the speaker enrollment job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SpeakerEnrollmentJobStatus
*/
public SpeakerEnrollmentJobSummary withJobStatus(String jobStatus) {
setJobStatus(jobStatus);
return this;
}
/**
*
* The current status of the speaker enrollment job.
*
*
* @param jobStatus
* The current status of the speaker enrollment job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SpeakerEnrollmentJobStatus
*/
public SpeakerEnrollmentJobSummary withJobStatus(SpeakerEnrollmentJobStatus jobStatus) {
this.jobStatus = jobStatus.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 (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDomainId() != null)
sb.append("DomainId: ").append(getDomainId()).append(",");
if (getEndedAt() != null)
sb.append("EndedAt: ").append(getEndedAt()).append(",");
if (getFailureDetails() != null)
sb.append("FailureDetails: ").append(getFailureDetails()).append(",");
if (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getJobName() != null)
sb.append("JobName: ").append("***Sensitive Data Redacted***").append(",");
if (getJobProgress() != null)
sb.append("JobProgress: ").append(getJobProgress()).append(",");
if (getJobStatus() != null)
sb.append("JobStatus: ").append(getJobStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SpeakerEnrollmentJobSummary == false)
return false;
SpeakerEnrollmentJobSummary other = (SpeakerEnrollmentJobSummary) obj;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getDomainId() == null ^ this.getDomainId() == null)
return false;
if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false)
return false;
if (other.getEndedAt() == null ^ this.getEndedAt() == null)
return false;
if (other.getEndedAt() != null && other.getEndedAt().equals(this.getEndedAt()) == false)
return false;
if (other.getFailureDetails() == null ^ this.getFailureDetails() == null)
return false;
if (other.getFailureDetails() != null && other.getFailureDetails().equals(this.getFailureDetails()) == false)
return false;
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.getJobProgress() == null ^ this.getJobProgress() == null)
return false;
if (other.getJobProgress() != null && other.getJobProgress().equals(this.getJobProgress()) == false)
return false;
if (other.getJobStatus() == null ^ this.getJobStatus() == null)
return false;
if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode());
hashCode = prime * hashCode + ((getEndedAt() == null) ? 0 : getEndedAt().hashCode());
hashCode = prime * hashCode + ((getFailureDetails() == null) ? 0 : getFailureDetails().hashCode());
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode());
hashCode = prime * hashCode + ((getJobProgress() == null) ? 0 : getJobProgress().hashCode());
hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode());
return hashCode;
}
@Override
public SpeakerEnrollmentJobSummary clone() {
try {
return (SpeakerEnrollmentJobSummary) 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.voiceid.model.transform.SpeakerEnrollmentJobSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}