AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
CreateServiceResult.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/Service.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.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 AppRunner {
24namespace Model {
26 public:
27 AWS_APPRUNNER_API CreateServiceResult() = default;
30
32
35 inline const Service& GetService() const { return m_service; }
36 template <typename ServiceT = Service>
37 void SetService(ServiceT&& value) {
38 m_serviceHasBeenSet = true;
39 m_service = std::forward<ServiceT>(value);
40 }
41 template <typename ServiceT = Service>
42 CreateServiceResult& WithService(ServiceT&& value) {
43 SetService(std::forward<ServiceT>(value));
44 return *this;
45 }
47
49
55 inline const Aws::String& GetOperationId() const { return m_operationId; }
56 template <typename OperationIdT = Aws::String>
57 void SetOperationId(OperationIdT&& value) {
58 m_operationIdHasBeenSet = true;
59 m_operationId = std::forward<OperationIdT>(value);
60 }
61 template <typename OperationIdT = Aws::String>
62 CreateServiceResult& WithOperationId(OperationIdT&& value) {
63 SetOperationId(std::forward<OperationIdT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
77 CreateServiceResult& WithRequestId(RequestIdT&& value) {
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 Service m_service;
86
87 Aws::String m_operationId;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_serviceHasBeenSet = false;
92 bool m_operationIdHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace AppRunner
98} // namespace Aws
AWS_APPRUNNER_API CreateServiceResult()=default
CreateServiceResult & WithOperationId(OperationIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APPRUNNER_API CreateServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateServiceResult & WithService(ServiceT &&value)
CreateServiceResult & WithRequestId(RequestIdT &&value)
AWS_APPRUNNER_API CreateServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue