AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateDaemonResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/DaemonStatus.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 ECS {
25namespace Model {
27 public:
28 AWS_ECS_API UpdateDaemonResult() = default;
31
33
36 inline const Aws::String& GetDaemonArn() const { return m_daemonArn; }
37 template <typename DaemonArnT = Aws::String>
38 void SetDaemonArn(DaemonArnT&& value) {
39 m_daemonArnHasBeenSet = true;
40 m_daemonArn = std::forward<DaemonArnT>(value);
41 }
42 template <typename DaemonArnT = Aws::String>
43 UpdateDaemonResult& WithDaemonArn(DaemonArnT&& value) {
44 SetDaemonArn(std::forward<DaemonArnT>(value));
45 return *this;
46 }
48
50
53 inline DaemonStatus GetStatus() const { return m_status; }
54 inline void SetStatus(DaemonStatus value) {
55 m_statusHasBeenSet = true;
56 m_status = value;
57 }
59 SetStatus(value);
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
69 template <typename CreatedAtT = Aws::Utils::DateTime>
70 void SetCreatedAt(CreatedAtT&& value) {
71 m_createdAtHasBeenSet = true;
72 m_createdAt = std::forward<CreatedAtT>(value);
73 }
74 template <typename CreatedAtT = Aws::Utils::DateTime>
75 UpdateDaemonResult& WithCreatedAt(CreatedAtT&& value) {
76 SetCreatedAt(std::forward<CreatedAtT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
86 template <typename UpdatedAtT = Aws::Utils::DateTime>
87 void SetUpdatedAt(UpdatedAtT&& value) {
88 m_updatedAtHasBeenSet = true;
89 m_updatedAt = std::forward<UpdatedAtT>(value);
90 }
91 template <typename UpdatedAtT = Aws::Utils::DateTime>
92 UpdateDaemonResult& WithUpdatedAt(UpdatedAtT&& value) {
93 SetUpdatedAt(std::forward<UpdatedAtT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
104 template <typename DeploymentArnT = Aws::String>
105 void SetDeploymentArn(DeploymentArnT&& value) {
106 m_deploymentArnHasBeenSet = true;
107 m_deploymentArn = std::forward<DeploymentArnT>(value);
108 }
109 template <typename DeploymentArnT = Aws::String>
110 UpdateDaemonResult& WithDeploymentArn(DeploymentArnT&& value) {
111 SetDeploymentArn(std::forward<DeploymentArnT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
125 UpdateDaemonResult& WithRequestId(RequestIdT&& value) {
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
131
132 private:
133 Aws::String m_daemonArn;
134
136
137 Aws::Utils::DateTime m_createdAt{};
138
139 Aws::Utils::DateTime m_updatedAt{};
140
141 Aws::String m_deploymentArn;
142
143 Aws::String m_requestId;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_daemonArnHasBeenSet = false;
146 bool m_statusHasBeenSet = false;
147 bool m_createdAtHasBeenSet = false;
148 bool m_updatedAtHasBeenSet = false;
149 bool m_deploymentArnHasBeenSet = false;
150 bool m_requestIdHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace ECS
155} // namespace Aws
AWS_ECS_API UpdateDaemonResult()=default
UpdateDaemonResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetDeploymentArn() const
const Aws::String & GetDaemonArn() const
UpdateDaemonResult & WithDeploymentArn(DeploymentArnT &&value)
UpdateDaemonResult & WithDaemonArn(DaemonArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetDeploymentArn(DeploymentArnT &&value)
UpdateDaemonResult & WithStatus(DaemonStatus value)
AWS_ECS_API UpdateDaemonResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateDaemonResult & WithRequestId(RequestIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
AWS_ECS_API UpdateDaemonResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
UpdateDaemonResult & WithUpdatedAt(UpdatedAtT &&value)
void SetDaemonArn(DaemonArnT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue