AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CreateCommandResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
25 public:
26 AWS_IOT_API CreateCommandResult() = default;
29
31
34 inline const Aws::String& GetCommandId() const { return m_commandId; }
35 template <typename CommandIdT = Aws::String>
36 void SetCommandId(CommandIdT&& value) {
37 m_commandIdHasBeenSet = true;
38 m_commandId = std::forward<CommandIdT>(value);
39 }
40 template <typename CommandIdT = Aws::String>
41 CreateCommandResult& WithCommandId(CommandIdT&& value) {
42 SetCommandId(std::forward<CommandIdT>(value));
43 return *this;
44 }
46
48
53 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
54 template <typename CommandArnT = Aws::String>
55 void SetCommandArn(CommandArnT&& value) {
56 m_commandArnHasBeenSet = true;
57 m_commandArn = std::forward<CommandArnT>(value);
58 }
59 template <typename CommandArnT = Aws::String>
60 CreateCommandResult& WithCommandArn(CommandArnT&& value) {
61 SetCommandArn(std::forward<CommandArnT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
75 CreateCommandResult& WithRequestId(RequestIdT&& value) {
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
81
82 private:
83 Aws::String m_commandId;
84
85 Aws::String m_commandArn;
86
87 Aws::String m_requestId;
88 Aws::Http::HttpResponseCode m_HttpResponseCode;
89 bool m_commandIdHasBeenSet = false;
90 bool m_commandArnHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace IoT
96} // namespace Aws
void SetCommandArn(CommandArnT &&value)
CreateCommandResult & WithCommandArn(CommandArnT &&value)
CreateCommandResult & WithCommandId(CommandIdT &&value)
AWS_IOT_API CreateCommandResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetCommandId() const
const Aws::String & GetCommandArn() const
AWS_IOT_API CreateCommandResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
CreateCommandResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOT_API CreateCommandResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue