AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeRestApiResult.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MWAA
25{
26namespace Model
27{
29 {
30 public:
31 AWS_MWAA_API InvokeRestApiResult();
34
35
37
40 inline int GetRestApiStatusCode() const{ return m_restApiStatusCode; }
41 inline void SetRestApiStatusCode(int value) { m_restApiStatusCode = value; }
42 inline InvokeRestApiResult& WithRestApiStatusCode(int value) { SetRestApiStatusCode(value); return *this;}
44
46
50 inline Aws::Utils::DocumentView GetRestApiResponse() const{ return m_restApiResponse; }
51 inline void SetRestApiResponse(const Aws::Utils::Document& value) { m_restApiResponse = value; }
52 inline void SetRestApiResponse(Aws::Utils::Document&& value) { m_restApiResponse = std::move(value); }
54 inline InvokeRestApiResult& WithRestApiResponse(Aws::Utils::Document&& value) { SetRestApiResponse(std::move(value)); return *this;}
56
58
59 inline const Aws::String& GetRequestId() const{ return m_requestId; }
60 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
61 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
62 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
63 inline InvokeRestApiResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
64 inline InvokeRestApiResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
65 inline InvokeRestApiResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
67 private:
68
69 int m_restApiStatusCode;
70
71 Aws::Utils::Document m_restApiResponse;
72
73 Aws::String m_requestId;
74 };
75
76} // namespace Model
77} // namespace MWAA
78} // namespace Aws
InvokeRestApiResult & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
InvokeRestApiResult & WithRestApiStatusCode(int value)
AWS_MWAA_API InvokeRestApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Utils::DocumentView GetRestApiResponse() const
void SetRestApiResponse(const Aws::Utils::Document &value)
AWS_MWAA_API InvokeRestApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
InvokeRestApiResult & WithRestApiResponse(Aws::Utils::Document &&value)
InvokeRestApiResult & WithRestApiResponse(const Aws::Utils::Document &value)
InvokeRestApiResult & WithRequestId(Aws::String &&value)
InvokeRestApiResult & WithRequestId(const Aws::String &value)
void SetRestApiResponse(Aws::Utils::Document &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue