AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace AppRunner {
23namespace Model {
25 public:
26 AWS_APPRUNNER_API CreateServiceResult() = default;
29
31
34 inline const Service& GetService() const { return m_service; }
35 template <typename ServiceT = Service>
36 void SetService(ServiceT&& value) {
37 m_serviceHasBeenSet = true;
38 m_service = std::forward<ServiceT>(value);
39 }
40 template <typename ServiceT = Service>
41 CreateServiceResult& WithService(ServiceT&& value) {
42 SetService(std::forward<ServiceT>(value));
43 return *this;
44 }
46
48
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 CreateServiceResult& 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 CreateServiceResult& WithRequestId(RequestIdT&& value) {
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 private:
82 Service m_service;
83
84 Aws::String m_operationId;
85
86 Aws::String m_requestId;
87 bool m_serviceHasBeenSet = false;
88 bool m_operationIdHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace AppRunner
94} // namespace Aws
AWS_APPRUNNER_API CreateServiceResult()=default
CreateServiceResult & WithOperationId(OperationIdT &&value)
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