AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateServiceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/Service.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 ECS {
24namespace Model {
31 public:
32 AWS_ECS_API CreateServiceResult() = default;
35
37
49 inline const Service& GetService() const { return m_service; }
50 template <typename ServiceT = Service>
51 void SetService(ServiceT&& value) {
52 m_serviceHasBeenSet = true;
53 m_service = std::forward<ServiceT>(value);
54 }
55 template <typename ServiceT = Service>
56 CreateServiceResult& WithService(ServiceT&& value) {
57 SetService(std::forward<ServiceT>(value));
58 return *this;
59 }
61
63
64 inline const Aws::String& GetRequestId() const { return m_requestId; }
65 template <typename RequestIdT = Aws::String>
66 void SetRequestId(RequestIdT&& value) {
67 m_requestIdHasBeenSet = true;
68 m_requestId = std::forward<RequestIdT>(value);
69 }
70 template <typename RequestIdT = Aws::String>
71 CreateServiceResult& WithRequestId(RequestIdT&& value) {
72 SetRequestId(std::forward<RequestIdT>(value));
73 return *this;
74 }
76 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
77
78 private:
79 Service m_service;
80
81 Aws::String m_requestId;
82 Aws::Http::HttpResponseCode m_HttpResponseCode;
83 bool m_serviceHasBeenSet = false;
84 bool m_requestIdHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ECS
89} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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