AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
GetCommandExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API GetCommandExecutionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetCommandExecution"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
41 inline const Aws::String& GetExecutionId() const { return m_executionId; }
42 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
43 template <typename ExecutionIdT = Aws::String>
44 void SetExecutionId(ExecutionIdT&& value) {
45 m_executionIdHasBeenSet = true;
46 m_executionId = std::forward<ExecutionIdT>(value);
47 }
48 template <typename ExecutionIdT = Aws::String>
50 SetExecutionId(std::forward<ExecutionIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
61 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
62 template <typename TargetArnT = Aws::String>
63 void SetTargetArn(TargetArnT&& value) {
64 m_targetArnHasBeenSet = true;
65 m_targetArn = std::forward<TargetArnT>(value);
66 }
67 template <typename TargetArnT = Aws::String>
69 SetTargetArn(std::forward<TargetArnT>(value));
70 return *this;
71 }
73
75
81 inline bool GetIncludeResult() const { return m_includeResult; }
82 inline bool IncludeResultHasBeenSet() const { return m_includeResultHasBeenSet; }
83 inline void SetIncludeResult(bool value) {
84 m_includeResultHasBeenSet = true;
85 m_includeResult = value;
86 }
88 SetIncludeResult(value);
89 return *this;
90 }
92 private:
93 Aws::String m_executionId;
94
95 Aws::String m_targetArn;
96
97 bool m_includeResult{false};
98 bool m_executionIdHasBeenSet = false;
99 bool m_targetArnHasBeenSet = false;
100 bool m_includeResultHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace IoT
105} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
GetCommandExecutionRequest & WithExecutionId(ExecutionIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetCommandExecutionRequest & WithIncludeResult(bool value)
AWS_IOT_API GetCommandExecutionRequest()=default
GetCommandExecutionRequest & WithTargetArn(TargetArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String