AWS SDK for C++

AWS SDK for C++ Version 1.11.779

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