AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
UpdateWorkerResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/HostConfiguration.h>
11#include <aws/deadline/model/LogConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace deadline {
25namespace Model {
27 public:
28 AWS_DEADLINE_API UpdateWorkerResult() = default;
31
33
36 inline const LogConfiguration& GetLog() const { return m_log; }
37 template <typename LogT = LogConfiguration>
38 void SetLog(LogT&& value) {
39 m_logHasBeenSet = true;
40 m_log = std::forward<LogT>(value);
41 }
42 template <typename LogT = LogConfiguration>
43 UpdateWorkerResult& WithLog(LogT&& value) {
44 SetLog(std::forward<LogT>(value));
45 return *this;
46 }
48
50
54 inline const HostConfiguration& GetHostConfiguration() const { return m_hostConfiguration; }
55 template <typename HostConfigurationT = HostConfiguration>
56 void SetHostConfiguration(HostConfigurationT&& value) {
57 m_hostConfigurationHasBeenSet = true;
58 m_hostConfiguration = std::forward<HostConfigurationT>(value);
59 }
60 template <typename HostConfigurationT = HostConfiguration>
61 UpdateWorkerResult& WithHostConfiguration(HostConfigurationT&& value) {
62 SetHostConfiguration(std::forward<HostConfigurationT>(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 UpdateWorkerResult& WithRequestId(RequestIdT&& value) {
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
82
83 private:
84 LogConfiguration m_log;
85
86 HostConfiguration m_hostConfiguration;
87
88 Aws::String m_requestId;
89 Aws::Http::HttpResponseCode m_HttpResponseCode;
90 bool m_logHasBeenSet = false;
91 bool m_hostConfigurationHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace deadline
97} // namespace Aws
UpdateWorkerResult & WithLog(LogT &&value)
void SetHostConfiguration(HostConfigurationT &&value)
UpdateWorkerResult & WithRequestId(RequestIdT &&value)
AWS_DEADLINE_API UpdateWorkerResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateWorkerResult & WithHostConfiguration(HostConfigurationT &&value)
AWS_DEADLINE_API UpdateWorkerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const HostConfiguration & GetHostConfiguration() const
const LogConfiguration & GetLog() const
AWS_DEADLINE_API UpdateWorkerResult(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