AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateServiceResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/Service.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 ECS {
23namespace Model {
25 public:
26 AWS_ECS_API CreateServiceResult() = default;
29
31
43 inline const Service& GetService() const { return m_service; }
44 template <typename ServiceT = Service>
45 void SetService(ServiceT&& value) {
46 m_serviceHasBeenSet = true;
47 m_service = std::forward<ServiceT>(value);
48 }
49 template <typename ServiceT = Service>
50 CreateServiceResult& WithService(ServiceT&& value) {
51 SetService(std::forward<ServiceT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template <typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) {
61 m_requestIdHasBeenSet = true;
62 m_requestId = std::forward<RequestIdT>(value);
63 }
64 template <typename RequestIdT = Aws::String>
65 CreateServiceResult& WithRequestId(RequestIdT&& value) {
66 SetRequestId(std::forward<RequestIdT>(value));
67 return *this;
68 }
70 private:
71 Service m_service;
72
73 Aws::String m_requestId;
74 bool m_serviceHasBeenSet = false;
75 bool m_requestIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ECS
80} // namespace Aws
const Aws::String & GetRequestId() const
CreateServiceResult & WithRequestId(RequestIdT &&value)
AWS_ECS_API CreateServiceResult()=default
AWS_ECS_API CreateServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateServiceResult & WithService(ServiceT &&value)
AWS_ECS_API CreateServiceResult(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