AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
UpdateServiceResult.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 UpdateServiceResult() = default;
35
37
45 inline const Service& GetService() const { return m_service; }
46 template <typename ServiceT = Service>
47 void SetService(ServiceT&& value) {
48 m_serviceHasBeenSet = true;
49 m_service = std::forward<ServiceT>(value);
50 }
51 template <typename ServiceT = Service>
52 UpdateServiceResult& WithService(ServiceT&& value) {
53 SetService(std::forward<ServiceT>(value));
54 return *this;
55 }
57
59
60 inline const Aws::String& GetRequestId() const { return m_requestId; }
61 template <typename RequestIdT = Aws::String>
62 void SetRequestId(RequestIdT&& value) {
63 m_requestIdHasBeenSet = true;
64 m_requestId = std::forward<RequestIdT>(value);
65 }
66 template <typename RequestIdT = Aws::String>
67 UpdateServiceResult& WithRequestId(RequestIdT&& value) {
68 SetRequestId(std::forward<RequestIdT>(value));
69 return *this;
70 }
72 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
73
74 private:
75 Service m_service;
76
77 Aws::String m_requestId;
78 Aws::Http::HttpResponseCode m_HttpResponseCode;
79 bool m_serviceHasBeenSet = false;
80 bool m_requestIdHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ECS
85} // namespace Aws
AWS_ECS_API UpdateServiceResult()=default
AWS_ECS_API UpdateServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateServiceResult & WithRequestId(RequestIdT &&value)
AWS_ECS_API UpdateServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateServiceResult & WithService(ServiceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue