AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
UpdateCommandResult.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/iot/IoT_EXPORTS.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 IoT {
24namespace Model {
26 public:
27 AWS_IOT_API UpdateCommandResult() = default;
30
32
35 inline const Aws::String& GetCommandId() const { return m_commandId; }
36 template <typename CommandIdT = Aws::String>
37 void SetCommandId(CommandIdT&& value) {
38 m_commandIdHasBeenSet = true;
39 m_commandId = std::forward<CommandIdT>(value);
40 }
41 template <typename CommandIdT = Aws::String>
42 UpdateCommandResult& WithCommandId(CommandIdT&& value) {
43 SetCommandId(std::forward<CommandIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetDisplayName() const { return m_displayName; }
53 template <typename DisplayNameT = Aws::String>
54 void SetDisplayName(DisplayNameT&& value) {
55 m_displayNameHasBeenSet = true;
56 m_displayName = std::forward<DisplayNameT>(value);
57 }
58 template <typename DisplayNameT = Aws::String>
59 UpdateCommandResult& WithDisplayName(DisplayNameT&& value) {
60 SetDisplayName(std::forward<DisplayNameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
76 UpdateCommandResult& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
86 inline bool GetDeprecated() const { return m_deprecated; }
87 inline void SetDeprecated(bool value) {
88 m_deprecatedHasBeenSet = true;
89 m_deprecated = value;
90 }
91 inline UpdateCommandResult& WithDeprecated(bool value) {
92 SetDeprecated(value);
93 return *this;
94 }
96
98
102 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
103 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
104 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
105 m_lastUpdatedAtHasBeenSet = true;
106 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
107 }
108 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
109 UpdateCommandResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
110 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
124 UpdateCommandResult& WithRequestId(RequestIdT&& value) {
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
130
131 private:
132 Aws::String m_commandId;
133
134 Aws::String m_displayName;
135
136 Aws::String m_description;
137
138 bool m_deprecated{false};
139
140 Aws::Utils::DateTime m_lastUpdatedAt{};
141
142 Aws::String m_requestId;
143 Aws::Http::HttpResponseCode m_HttpResponseCode;
144 bool m_commandIdHasBeenSet = false;
145 bool m_displayNameHasBeenSet = false;
146 bool m_descriptionHasBeenSet = false;
147 bool m_deprecatedHasBeenSet = false;
148 bool m_lastUpdatedAtHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace IoT
154} // namespace Aws
UpdateCommandResult & WithCommandId(CommandIdT &&value)
UpdateCommandResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
UpdateCommandResult & WithDeprecated(bool value)
const Aws::String & GetRequestId() const
AWS_IOT_API UpdateCommandResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDisplayName(DisplayNameT &&value)
AWS_IOT_API UpdateCommandResult()=default
const Aws::String & GetDisplayName() const
UpdateCommandResult & WithDescription(DescriptionT &&value)
UpdateCommandResult & WithDisplayName(DisplayNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateCommandResult & WithRequestId(RequestIdT &&value)
AWS_IOT_API UpdateCommandResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetCommandId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue