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 StartEventsDetectionJobResult
29   {
30   public:
31     StartEventsDetectionJobResult();
32     StartEventsDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     StartEventsDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>An unique identifier for the request. If you don't set the client request
38      * token, Amazon Comprehend generates one.</p>
39      */
GetJobId()40     inline const Aws::String& GetJobId() const{ return m_jobId; }
41 
42     /**
43      * <p>An unique identifier for the request. If you don't set the client request
44      * token, Amazon Comprehend generates one.</p>
45      */
SetJobId(const Aws::String & value)46     inline void SetJobId(const Aws::String& value) { m_jobId = value; }
47 
48     /**
49      * <p>An unique identifier for the request. If you don't set the client request
50      * token, Amazon Comprehend generates one.</p>
51      */
SetJobId(Aws::String && value)52     inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
53 
54     /**
55      * <p>An unique identifier for the request. If you don't set the client request
56      * token, Amazon Comprehend generates one.</p>
57      */
SetJobId(const char * value)58     inline void SetJobId(const char* value) { m_jobId.assign(value); }
59 
60     /**
61      * <p>An unique identifier for the request. If you don't set the client request
62      * token, Amazon Comprehend generates one.</p>
63      */
WithJobId(const Aws::String & value)64     inline StartEventsDetectionJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
65 
66     /**
67      * <p>An unique identifier for the request. If you don't set the client request
68      * token, Amazon Comprehend generates one.</p>
69      */
WithJobId(Aws::String && value)70     inline StartEventsDetectionJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
71 
72     /**
73      * <p>An unique identifier for the request. If you don't set the client request
74      * token, Amazon Comprehend generates one.</p>
75      */
WithJobId(const char * value)76     inline StartEventsDetectionJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
77 
78 
79     /**
80      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
81      * fully qualified identifier for the job. It includes the AWS account, Region, and
82      * the job ID. The format of the ARN is as follows:</p> <p>
83      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
84      * </p> <p>The following is an example job ARN:</p> <p>
85      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
86      * </p>
87      */
GetJobArn()88     inline const Aws::String& GetJobArn() const{ return m_jobArn; }
89 
90     /**
91      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
92      * fully qualified identifier for the job. It includes the AWS account, Region, and
93      * the job ID. The format of the ARN is as follows:</p> <p>
94      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
95      * </p> <p>The following is an example job ARN:</p> <p>
96      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
97      * </p>
98      */
SetJobArn(const Aws::String & value)99     inline void SetJobArn(const Aws::String& value) { m_jobArn = value; }
100 
101     /**
102      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
103      * fully qualified identifier for the job. It includes the AWS account, Region, and
104      * the job ID. The format of the ARN is as follows:</p> <p>
105      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
106      * </p> <p>The following is an example job ARN:</p> <p>
107      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
108      * </p>
109      */
SetJobArn(Aws::String && value)110     inline void SetJobArn(Aws::String&& value) { m_jobArn = std::move(value); }
111 
112     /**
113      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
114      * fully qualified identifier for the job. It includes the AWS account, Region, and
115      * the job ID. The format of the ARN is as follows:</p> <p>
116      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
117      * </p> <p>The following is an example job ARN:</p> <p>
118      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
119      * </p>
120      */
SetJobArn(const char * value)121     inline void SetJobArn(const char* value) { m_jobArn.assign(value); }
122 
123     /**
124      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
125      * fully qualified identifier for the job. It includes the AWS account, Region, and
126      * the job ID. The format of the ARN is as follows:</p> <p>
127      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
128      * </p> <p>The following is an example job ARN:</p> <p>
129      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
130      * </p>
131      */
WithJobArn(const Aws::String & value)132     inline StartEventsDetectionJobResult& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
133 
134     /**
135      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
136      * fully qualified identifier for the job. It includes the AWS account, Region, and
137      * the job ID. The format of the ARN is as follows:</p> <p>
138      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
139      * </p> <p>The following is an example job ARN:</p> <p>
140      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
141      * </p>
142      */
WithJobArn(Aws::String && value)143     inline StartEventsDetectionJobResult& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
144 
145     /**
146      * <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique,
147      * fully qualified identifier for the job. It includes the AWS account, Region, and
148      * the job ID. The format of the ARN is as follows:</p> <p>
149      * <code>arn:&lt;partition&gt;:comprehend:&lt;region&gt;:&lt;account-id&gt;:events-detection-job/&lt;job-id&gt;</code>
150      * </p> <p>The following is an example job ARN:</p> <p>
151      * <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code>
152      * </p>
153      */
WithJobArn(const char * value)154     inline StartEventsDetectionJobResult& WithJobArn(const char* value) { SetJobArn(value); return *this;}
155 
156 
157     /**
158      * <p>The status of the events detection job.</p>
159      */
GetJobStatus()160     inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
161 
162     /**
163      * <p>The status of the events detection job.</p>
164      */
SetJobStatus(const JobStatus & value)165     inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; }
166 
167     /**
168      * <p>The status of the events detection job.</p>
169      */
SetJobStatus(JobStatus && value)170     inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); }
171 
172     /**
173      * <p>The status of the events detection job.</p>
174      */
WithJobStatus(const JobStatus & value)175     inline StartEventsDetectionJobResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
176 
177     /**
178      * <p>The status of the events detection job.</p>
179      */
WithJobStatus(JobStatus && value)180     inline StartEventsDetectionJobResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
181 
182   private:
183 
184     Aws::String m_jobId;
185 
186     Aws::String m_jobArn;
187 
188     JobStatus m_jobStatus;
189   };
190 
191 } // namespace Model
192 } // namespace Comprehend
193 } // namespace Aws
194