/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace VoiceID { namespace Model { /** *

Contains a summary of information about a speaker enrollment * job.

See Also:

AWS * API Reference

*/ class SpeakerEnrollmentJobSummary { public: AWS_VOICEID_API SpeakerEnrollmentJobSummary(); AWS_VOICEID_API SpeakerEnrollmentJobSummary(Aws::Utils::Json::JsonView jsonValue); AWS_VOICEID_API SpeakerEnrollmentJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A timestamp of when of the speaker enrollment job was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

A timestamp of when of the speaker enrollment job was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

A timestamp of when of the speaker enrollment job was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

A timestamp of when of the speaker enrollment job was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

A timestamp of when of the speaker enrollment job was created.

*/ inline SpeakerEnrollmentJobSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

A timestamp of when of the speaker enrollment job was created.

*/ inline SpeakerEnrollmentJobSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The identifier of the domain that contains the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** *

A timestamp of when the speaker enrollment job ended.

*/ inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; } /** *

A timestamp of when the speaker enrollment job ended.

*/ inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; } /** *

A timestamp of when the speaker enrollment job ended.

*/ inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; } /** *

A timestamp of when the speaker enrollment job ended.

*/ inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); } /** *

A timestamp of when the speaker enrollment job ended.

*/ inline SpeakerEnrollmentJobSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;} /** *

A timestamp of when the speaker enrollment job ended.

*/ inline SpeakerEnrollmentJobSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); 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.

*/ inline const FailureDetails& GetFailureDetails() const{ return m_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.

*/ inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; } /** *

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.

*/ inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; } /** *

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.

*/ inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); } /** *

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.

*/ inline SpeakerEnrollmentJobSummary& WithFailureDetails(const FailureDetails& value) { SetFailureDetails(value); 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.

*/ inline SpeakerEnrollmentJobSummary& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(std::move(value)); return *this;} /** *

The service-generated identifier for the speaker enrollment job.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The service-generated identifier for the speaker enrollment job.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The service-generated identifier for the speaker enrollment job.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The service-generated identifier for the speaker enrollment job.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The service-generated identifier for the speaker enrollment job.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The service-generated identifier for the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The service-generated identifier for the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The service-generated identifier for the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The client-provided name for the speaker enrollment job.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The client-provided name for the speaker enrollment job.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The client-provided name for the speaker enrollment job.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The client-provided name for the speaker enrollment job.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The client-provided name for the speaker enrollment job.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The client-provided name for the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The client-provided name for the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The client-provided name for the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

Provides details regarding job progress. This field shows the completed * percentage of enrollment requests listed in the input file.

*/ inline const JobProgress& GetJobProgress() const{ return m_jobProgress; } /** *

Provides details regarding job progress. This field shows the completed * percentage of enrollment requests listed in the input file.

*/ inline bool JobProgressHasBeenSet() const { return m_jobProgressHasBeenSet; } /** *

Provides details regarding job progress. This field shows the completed * percentage of enrollment requests listed in the input file.

*/ inline void SetJobProgress(const JobProgress& value) { m_jobProgressHasBeenSet = true; m_jobProgress = value; } /** *

Provides details regarding job progress. This field shows the completed * percentage of enrollment requests listed in the input file.

*/ inline void SetJobProgress(JobProgress&& value) { m_jobProgressHasBeenSet = true; m_jobProgress = std::move(value); } /** *

Provides details regarding job progress. This field shows the completed * percentage of enrollment requests listed in the input file.

*/ inline SpeakerEnrollmentJobSummary& WithJobProgress(const JobProgress& value) { SetJobProgress(value); return *this;} /** *

Provides details regarding job progress. This field shows the completed * percentage of enrollment requests listed in the input file.

*/ inline SpeakerEnrollmentJobSummary& WithJobProgress(JobProgress&& value) { SetJobProgress(std::move(value)); return *this;} /** *

The current status of the speaker enrollment job.

*/ inline const SpeakerEnrollmentJobStatus& GetJobStatus() const{ return m_jobStatus; } /** *

The current status of the speaker enrollment job.

*/ inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; } /** *

The current status of the speaker enrollment job.

*/ inline void SetJobStatus(const SpeakerEnrollmentJobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; } /** *

The current status of the speaker enrollment job.

*/ inline void SetJobStatus(SpeakerEnrollmentJobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); } /** *

The current status of the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobStatus(const SpeakerEnrollmentJobStatus& value) { SetJobStatus(value); return *this;} /** *

The current status of the speaker enrollment job.

*/ inline SpeakerEnrollmentJobSummary& WithJobStatus(SpeakerEnrollmentJobStatus&& value) { SetJobStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_domainId; bool m_domainIdHasBeenSet = false; Aws::Utils::DateTime m_endedAt; bool m_endedAtHasBeenSet = false; FailureDetails m_failureDetails; bool m_failureDetailsHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; JobProgress m_jobProgress; bool m_jobProgressHasBeenSet = false; SpeakerEnrollmentJobStatus m_jobStatus; bool m_jobStatusHasBeenSet = false; }; } // namespace Model } // namespace VoiceID } // namespace Aws