AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetCommandExecutionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOT_API GetCommandExecutionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetCommandExecution"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
46 inline const Aws::String& GetExecutionId() const { return m_executionId; }
47 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
48 template<typename ExecutionIdT = Aws::String>
49 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
50 template<typename ExecutionIdT = Aws::String>
51 GetCommandExecutionRequest& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
60 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
61 template<typename TargetArnT = Aws::String>
62 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
63 template<typename TargetArnT = Aws::String>
64 GetCommandExecutionRequest& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
66
68
74 inline bool GetIncludeResult() const { return m_includeResult; }
75 inline bool IncludeResultHasBeenSet() const { return m_includeResultHasBeenSet; }
76 inline void SetIncludeResult(bool value) { m_includeResultHasBeenSet = true; m_includeResult = value; }
77 inline GetCommandExecutionRequest& WithIncludeResult(bool value) { SetIncludeResult(value); return *this;}
79 private:
80
81 Aws::String m_executionId;
82 bool m_executionIdHasBeenSet = false;
83
84 Aws::String m_targetArn;
85 bool m_targetArnHasBeenSet = false;
86
87 bool m_includeResult{false};
88 bool m_includeResultHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace IoT
93} // 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