1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/comprehend/Comprehend_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/comprehend/model/JobStatus.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace Comprehend 25 { 26 namespace Model 27 { 28 class AWS_COMPREHEND_API StopDominantLanguageDetectionJobResult 29 { 30 public: 31 StopDominantLanguageDetectionJobResult(); 32 StopDominantLanguageDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 StopDominantLanguageDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>The identifier of the dominant language detection job to stop.</p> 38 */ GetJobId()39 inline const Aws::String& GetJobId() const{ return m_jobId; } 40 41 /** 42 * <p>The identifier of the dominant language detection job to stop.</p> 43 */ SetJobId(const Aws::String & value)44 inline void SetJobId(const Aws::String& value) { m_jobId = value; } 45 46 /** 47 * <p>The identifier of the dominant language detection job to stop.</p> 48 */ SetJobId(Aws::String && value)49 inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } 50 51 /** 52 * <p>The identifier of the dominant language detection job to stop.</p> 53 */ SetJobId(const char * value)54 inline void SetJobId(const char* value) { m_jobId.assign(value); } 55 56 /** 57 * <p>The identifier of the dominant language detection job to stop.</p> 58 */ WithJobId(const Aws::String & value)59 inline StopDominantLanguageDetectionJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} 60 61 /** 62 * <p>The identifier of the dominant language detection job to stop.</p> 63 */ WithJobId(Aws::String && value)64 inline StopDominantLanguageDetectionJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} 65 66 /** 67 * <p>The identifier of the dominant language detection job to stop.</p> 68 */ WithJobId(const char * value)69 inline StopDominantLanguageDetectionJobResult& WithJobId(const char* value) { SetJobId(value); return *this;} 70 71 72 /** 73 * <p>Either <code>STOP_REQUESTED</code> if the job is currently running, or 74 * <code>STOPPED</code> if the job was previously stopped with the 75 * <code>StopDominantLanguageDetectionJob</code> operation.</p> 76 */ GetJobStatus()77 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } 78 79 /** 80 * <p>Either <code>STOP_REQUESTED</code> if the job is currently running, or 81 * <code>STOPPED</code> if the job was previously stopped with the 82 * <code>StopDominantLanguageDetectionJob</code> operation.</p> 83 */ SetJobStatus(const JobStatus & value)84 inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; } 85 86 /** 87 * <p>Either <code>STOP_REQUESTED</code> if the job is currently running, or 88 * <code>STOPPED</code> if the job was previously stopped with the 89 * <code>StopDominantLanguageDetectionJob</code> operation.</p> 90 */ SetJobStatus(JobStatus && value)91 inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); } 92 93 /** 94 * <p>Either <code>STOP_REQUESTED</code> if the job is currently running, or 95 * <code>STOPPED</code> if the job was previously stopped with the 96 * <code>StopDominantLanguageDetectionJob</code> operation.</p> 97 */ WithJobStatus(const JobStatus & value)98 inline StopDominantLanguageDetectionJobResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} 99 100 /** 101 * <p>Either <code>STOP_REQUESTED</code> if the job is currently running, or 102 * <code>STOPPED</code> if the job was previously stopped with the 103 * <code>StopDominantLanguageDetectionJob</code> operation.</p> 104 */ WithJobStatus(JobStatus && value)105 inline StopDominantLanguageDetectionJobResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} 106 107 private: 108 109 Aws::String m_jobId; 110 111 JobStatus m_jobStatus; 112 }; 113 114 } // namespace Model 115 } // namespace Comprehend 116 } // namespace Aws 117