AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
StartLoaderJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/neptunedata/Neptunedata_EXPORTS.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 neptunedata {
24namespace Model {
26 public:
27 AWS_NEPTUNEDATA_API StartLoaderJobResult() = default;
30
32
35 inline const Aws::String& GetStatus() const { return m_status; }
36 template <typename StatusT = Aws::String>
37 void SetStatus(StatusT&& value) {
38 m_statusHasBeenSet = true;
39 m_status = std::forward<StatusT>(value);
40 }
41 template <typename StatusT = Aws::String>
42 StartLoaderJobResult& WithStatus(StatusT&& value) {
43 SetStatus(std::forward<StatusT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::Map<Aws::String, Aws::String>& GetPayload() const { return m_payload; }
54 template <typename PayloadT = Aws::Map<Aws::String, Aws::String>>
55 void SetPayload(PayloadT&& value) {
56 m_payloadHasBeenSet = true;
57 m_payload = std::forward<PayloadT>(value);
58 }
59 template <typename PayloadT = Aws::Map<Aws::String, Aws::String>>
60 StartLoaderJobResult& WithPayload(PayloadT&& value) {
61 SetPayload(std::forward<PayloadT>(value));
62 return *this;
63 }
64 template <typename PayloadKeyT = Aws::String, typename PayloadValueT = Aws::String>
65 StartLoaderJobResult& AddPayload(PayloadKeyT&& key, PayloadValueT&& value) {
66 m_payloadHasBeenSet = true;
67 m_payload.emplace(std::forward<PayloadKeyT>(key), std::forward<PayloadValueT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
81 StartLoaderJobResult& WithRequestId(RequestIdT&& value) {
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 Aws::String m_status;
90
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_statusHasBeenSet = false;
96 bool m_payloadHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace neptunedata
102} // namespace Aws
StartLoaderJobResult & AddPayload(PayloadKeyT &&key, PayloadValueT &&value)
AWS_NEPTUNEDATA_API StartLoaderJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartLoaderJobResult & WithRequestId(RequestIdT &&value)
AWS_NEPTUNEDATA_API StartLoaderJobResult()=default
const Aws::Map< Aws::String, Aws::String > & GetPayload() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_NEPTUNEDATA_API StartLoaderJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartLoaderJobResult & WithPayload(PayloadT &&value)
StartLoaderJobResult & WithStatus(StatusT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue