All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.voiceid.model.FraudsterRegistrationJob Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Voice ID module holds the client classes that are used for communicating with Amazon Voice ID Service

The newest version!
/*
 * 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 all the information about a fraudster registration job. *

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

* A timestamp of when the fraudster registration job was created. *

*/ private java.util.Date createdAt; /** *

* The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the * input manifest file and write the job output file. *

*/ private String dataAccessRoleArn; /** *

* The identifier of the domain that contains the fraudster registration job. *

*/ private String domainId; /** *

* A timestamp of when the fraudster registration 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 input data config containing an S3 URI for the input manifest file that contains the list of fraudster * registration job requests. *

*/ private InputDataConfig inputDataConfig; /** *

* The service-generated identifier for the fraudster registration job. *

*/ private String jobId; /** *

* The client-provided name for the fraudster registration job. *

*/ private String jobName; /** *

* Shows the completed percentage of registration requests listed in the input file. *

*/ private JobProgress jobProgress; /** *

* The current status of the fraudster registration job. *

*/ private String jobStatus; /** *

* The output data config containing the S3 location where you want Voice ID to write your job output file; you must * also include a KMS key ID in order to encrypt the file. *

*/ private OutputDataConfig outputDataConfig; /** *

* The registration config containing details such as the action to take when a duplicate fraudster is detected, and * the similarity threshold to use for detecting a duplicate fraudster. *

*/ private RegistrationConfig registrationConfig; /** *

* A timestamp of when the fraudster registration job was created. *

* * @param createdAt * A timestamp of when the fraudster registration job was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* A timestamp of when the fraudster registration job was created. *

* * @return A timestamp of when the fraudster registration job was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* A timestamp of when the fraudster registration job was created. *

* * @param createdAt * A timestamp of when the fraudster registration job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the * input manifest file and write the job output file. *

* * @param dataAccessRoleArn * The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to * read the input manifest file and write the job output file. */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** *

* The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the * input manifest file and write the job output file. *

* * @return The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to * read the input manifest file and write the job output file. */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** *

* The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the * input manifest file and write the job output file. *

* * @param dataAccessRoleArn * The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to * read the input manifest file and write the job output file. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** *

* The identifier of the domain that contains the fraudster registration job. *

* * @param domainId * The identifier of the domain that contains the fraudster registration job. */ public void setDomainId(String domainId) { this.domainId = domainId; } /** *

* The identifier of the domain that contains the fraudster registration job. *

* * @return The identifier of the domain that contains the fraudster registration job. */ public String getDomainId() { return this.domainId; } /** *

* The identifier of the domain that contains the fraudster registration job. *

* * @param domainId * The identifier of the domain that contains the fraudster registration job. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withDomainId(String domainId) { setDomainId(domainId); return this; } /** *

* A timestamp of when the fraudster registration job ended. *

* * @param endedAt * A timestamp of when the fraudster registration job ended. */ public void setEndedAt(java.util.Date endedAt) { this.endedAt = endedAt; } /** *

* A timestamp of when the fraudster registration job ended. *

* * @return A timestamp of when the fraudster registration job ended. */ public java.util.Date getEndedAt() { return this.endedAt; } /** *

* A timestamp of when the fraudster registration job ended. *

* * @param endedAt * A timestamp of when the fraudster registration job ended. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob 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 FraudsterRegistrationJob withFailureDetails(FailureDetails failureDetails) { setFailureDetails(failureDetails); return this; } /** *

* The input data config containing an S3 URI for the input manifest file that contains the list of fraudster * registration job requests. *

* * @param inputDataConfig * The input data config containing an S3 URI for the input manifest file that contains the list of fraudster * registration job requests. */ public void setInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** *

* The input data config containing an S3 URI for the input manifest file that contains the list of fraudster * registration job requests. *

* * @return The input data config containing an S3 URI for the input manifest file that contains the list of * fraudster registration job requests. */ public InputDataConfig getInputDataConfig() { return this.inputDataConfig; } /** *

* The input data config containing an S3 URI for the input manifest file that contains the list of fraudster * registration job requests. *

* * @param inputDataConfig * The input data config containing an S3 URI for the input manifest file that contains the list of fraudster * registration job requests. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withInputDataConfig(InputDataConfig inputDataConfig) { setInputDataConfig(inputDataConfig); return this; } /** *

* The service-generated identifier for the fraudster registration job. *

* * @param jobId * The service-generated identifier for the fraudster registration job. */ public void setJobId(String jobId) { this.jobId = jobId; } /** *

* The service-generated identifier for the fraudster registration job. *

* * @return The service-generated identifier for the fraudster registration job. */ public String getJobId() { return this.jobId; } /** *

* The service-generated identifier for the fraudster registration job. *

* * @param jobId * The service-generated identifier for the fraudster registration job. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withJobId(String jobId) { setJobId(jobId); return this; } /** *

* The client-provided name for the fraudster registration job. *

* * @param jobName * The client-provided name for the fraudster registration job. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* The client-provided name for the fraudster registration job. *

* * @return The client-provided name for the fraudster registration job. */ public String getJobName() { return this.jobName; } /** *

* The client-provided name for the fraudster registration job. *

* * @param jobName * The client-provided name for the fraudster registration job. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withJobName(String jobName) { setJobName(jobName); return this; } /** *

* Shows the completed percentage of registration requests listed in the input file. *

* * @param jobProgress * Shows the completed percentage of registration requests listed in the input file. */ public void setJobProgress(JobProgress jobProgress) { this.jobProgress = jobProgress; } /** *

* Shows the completed percentage of registration requests listed in the input file. *

* * @return Shows the completed percentage of registration requests listed in the input file. */ public JobProgress getJobProgress() { return this.jobProgress; } /** *

* Shows the completed percentage of registration requests listed in the input file. *

* * @param jobProgress * Shows the completed percentage of registration requests listed in the input file. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withJobProgress(JobProgress jobProgress) { setJobProgress(jobProgress); return this; } /** *

* The current status of the fraudster registration job. *

* * @param jobStatus * The current status of the fraudster registration job. * @see FraudsterRegistrationJobStatus */ public void setJobStatus(String jobStatus) { this.jobStatus = jobStatus; } /** *

* The current status of the fraudster registration job. *

* * @return The current status of the fraudster registration job. * @see FraudsterRegistrationJobStatus */ public String getJobStatus() { return this.jobStatus; } /** *

* The current status of the fraudster registration job. *

* * @param jobStatus * The current status of the fraudster registration job. * @return Returns a reference to this object so that method calls can be chained together. * @see FraudsterRegistrationJobStatus */ public FraudsterRegistrationJob withJobStatus(String jobStatus) { setJobStatus(jobStatus); return this; } /** *

* The current status of the fraudster registration job. *

* * @param jobStatus * The current status of the fraudster registration job. * @return Returns a reference to this object so that method calls can be chained together. * @see FraudsterRegistrationJobStatus */ public FraudsterRegistrationJob withJobStatus(FraudsterRegistrationJobStatus jobStatus) { this.jobStatus = jobStatus.toString(); return this; } /** *

* The output data config containing the S3 location where you want Voice ID to write your job output file; you must * also include a KMS key ID in order to encrypt the file. *

* * @param outputDataConfig * The output data config containing the S3 location where you want Voice ID to write your job output file; * you must also include a KMS key ID in order to encrypt the file. */ public void setOutputDataConfig(OutputDataConfig outputDataConfig) { this.outputDataConfig = outputDataConfig; } /** *

* The output data config containing the S3 location where you want Voice ID to write your job output file; you must * also include a KMS key ID in order to encrypt the file. *

* * @return The output data config containing the S3 location where you want Voice ID to write your job output file; * you must also include a KMS key ID in order to encrypt the file. */ public OutputDataConfig getOutputDataConfig() { return this.outputDataConfig; } /** *

* The output data config containing the S3 location where you want Voice ID to write your job output file; you must * also include a KMS key ID in order to encrypt the file. *

* * @param outputDataConfig * The output data config containing the S3 location where you want Voice ID to write your job output file; * you must also include a KMS key ID in order to encrypt the file. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withOutputDataConfig(OutputDataConfig outputDataConfig) { setOutputDataConfig(outputDataConfig); return this; } /** *

* The registration config containing details such as the action to take when a duplicate fraudster is detected, and * the similarity threshold to use for detecting a duplicate fraudster. *

* * @param registrationConfig * The registration config containing details such as the action to take when a duplicate fraudster is * detected, and the similarity threshold to use for detecting a duplicate fraudster. */ public void setRegistrationConfig(RegistrationConfig registrationConfig) { this.registrationConfig = registrationConfig; } /** *

* The registration config containing details such as the action to take when a duplicate fraudster is detected, and * the similarity threshold to use for detecting a duplicate fraudster. *

* * @return The registration config containing details such as the action to take when a duplicate fraudster is * detected, and the similarity threshold to use for detecting a duplicate fraudster. */ public RegistrationConfig getRegistrationConfig() { return this.registrationConfig; } /** *

* The registration config containing details such as the action to take when a duplicate fraudster is detected, and * the similarity threshold to use for detecting a duplicate fraudster. *

* * @param registrationConfig * The registration config containing details such as the action to take when a duplicate fraudster is * detected, and the similarity threshold to use for detecting a duplicate fraudster. * @return Returns a reference to this object so that method calls can be chained together. */ public FraudsterRegistrationJob withRegistrationConfig(RegistrationConfig registrationConfig) { setRegistrationConfig(registrationConfig); 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 (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: ").append(getDataAccessRoleArn()).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 (getInputDataConfig() != null) sb.append("InputDataConfig: ").append(getInputDataConfig()).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()).append(","); if (getOutputDataConfig() != null) sb.append("OutputDataConfig: ").append(getOutputDataConfig()).append(","); if (getRegistrationConfig() != null) sb.append("RegistrationConfig: ").append(getRegistrationConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FraudsterRegistrationJob == false) return false; FraudsterRegistrationJob other = (FraudsterRegistrationJob) obj; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) return false; if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == 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.getInputDataConfig() == null ^ this.getInputDataConfig() == null) return false; if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == 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; if (other.getOutputDataConfig() == null ^ this.getOutputDataConfig() == null) return false; if (other.getOutputDataConfig() != null && other.getOutputDataConfig().equals(this.getOutputDataConfig()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == 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 + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().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 + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().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()); hashCode = prime * hashCode + ((getOutputDataConfig() == null) ? 0 : getOutputDataConfig().hashCode()); hashCode = prime * hashCode + ((getRegistrationConfig() == null) ? 0 : getRegistrationConfig().hashCode()); return hashCode; } @Override public FraudsterRegistrationJob clone() { try { return (FraudsterRegistrationJob) 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.FraudsterRegistrationJobMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy