AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
PauseServiceResult.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 PauseServiceResult() = 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 PauseServiceResult& WithService(ServiceT&& value) {
43 SetService(std::forward<ServiceT>(value));
44 return *this;
45 }
47
49
54 inline const Aws::String& GetOperationId() const { return m_operationId; }
55 template <typename OperationIdT = Aws::String>
56 void SetOperationId(OperationIdT&& value) {
57 m_operationIdHasBeenSet = true;
58 m_operationId = std::forward<OperationIdT>(value);
59 }
60 template <typename OperationIdT = Aws::String>
61 PauseServiceResult& WithOperationId(OperationIdT&& value) {
62 SetOperationId(std::forward<OperationIdT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template <typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) {
72 m_requestIdHasBeenSet = true;
73 m_requestId = std::forward<RequestIdT>(value);
74 }
75 template <typename RequestIdT = Aws::String>
76 PauseServiceResult& WithRequestId(RequestIdT&& value) {
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
82
83 private:
84 Service m_service;
85
86 Aws::String m_operationId;
87
88 Aws::String m_requestId;
89 Aws::Http::HttpResponseCode m_HttpResponseCode;
90 bool m_serviceHasBeenSet = false;
91 bool m_operationIdHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace AppRunner
97} // namespace Aws
AWS_APPRUNNER_API PauseServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PauseServiceResult & WithOperationId(OperationIdT &&value)
PauseServiceResult & WithRequestId(RequestIdT &&value)
AWS_APPRUNNER_API PauseServiceResult()=default
PauseServiceResult & WithService(ServiceT &&value)
AWS_APPRUNNER_API PauseServiceResult(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