AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
CancelJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/JobStatus.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace LocationService {
24namespace Model {
26 public:
27 AWS_LOCATIONSERVICE_API CancelJobResult() = default;
30
32
35 inline const Aws::String& GetJobArn() const { return m_jobArn; }
36 template <typename JobArnT = Aws::String>
37 void SetJobArn(JobArnT&& value) {
38 m_jobArnHasBeenSet = true;
39 m_jobArn = std::forward<JobArnT>(value);
40 }
41 template <typename JobArnT = Aws::String>
42 CancelJobResult& WithJobArn(JobArnT&& value) {
43 SetJobArn(std::forward<JobArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetJobId() const { return m_jobId; }
53 template <typename JobIdT = Aws::String>
54 void SetJobId(JobIdT&& value) {
55 m_jobIdHasBeenSet = true;
56 m_jobId = std::forward<JobIdT>(value);
57 }
58 template <typename JobIdT = Aws::String>
59 CancelJobResult& WithJobId(JobIdT&& value) {
60 SetJobId(std::forward<JobIdT>(value));
61 return *this;
62 }
64
66
69 inline JobStatus GetStatus() const { return m_status; }
70 inline void SetStatus(JobStatus value) {
71 m_statusHasBeenSet = true;
72 m_status = value;
73 }
75 SetStatus(value);
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 CancelJobResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::String m_jobArn;
98
99 Aws::String m_jobId;
100
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_jobArnHasBeenSet = false;
106 bool m_jobIdHasBeenSet = false;
107 bool m_statusHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace LocationService
113} // namespace Aws
AWS_LOCATIONSERVICE_API CancelJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LOCATIONSERVICE_API CancelJobResult()=default
AWS_LOCATIONSERVICE_API CancelJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CancelJobResult & WithRequestId(RequestIdT &&value)
CancelJobResult & WithJobId(JobIdT &&value)
CancelJobResult & WithJobArn(JobArnT &&value)
CancelJobResult & WithStatus(JobStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue