AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteActionRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/iotsitewise/model/TargetResource.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iotsitewise/model/ActionPayload.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSITEWISE_API ExecuteActionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ExecuteAction"; }
33
34 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const TargetResource& GetTargetResource() const{ return m_targetResource; }
42 inline bool TargetResourceHasBeenSet() const { return m_targetResourceHasBeenSet; }
43 inline void SetTargetResource(const TargetResource& value) { m_targetResourceHasBeenSet = true; m_targetResource = value; }
44 inline void SetTargetResource(TargetResource&& value) { m_targetResourceHasBeenSet = true; m_targetResource = std::move(value); }
45 inline ExecuteActionRequest& WithTargetResource(const TargetResource& value) { SetTargetResource(value); return *this;}
46 inline ExecuteActionRequest& WithTargetResource(TargetResource&& value) { SetTargetResource(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetActionDefinitionId() const{ return m_actionDefinitionId; }
54 inline bool ActionDefinitionIdHasBeenSet() const { return m_actionDefinitionIdHasBeenSet; }
55 inline void SetActionDefinitionId(const Aws::String& value) { m_actionDefinitionIdHasBeenSet = true; m_actionDefinitionId = value; }
56 inline void SetActionDefinitionId(Aws::String&& value) { m_actionDefinitionIdHasBeenSet = true; m_actionDefinitionId = std::move(value); }
57 inline void SetActionDefinitionId(const char* value) { m_actionDefinitionIdHasBeenSet = true; m_actionDefinitionId.assign(value); }
59 inline ExecuteActionRequest& WithActionDefinitionId(Aws::String&& value) { SetActionDefinitionId(std::move(value)); return *this;}
60 inline ExecuteActionRequest& WithActionDefinitionId(const char* value) { SetActionDefinitionId(value); return *this;}
62
64
67 inline const ActionPayload& GetActionPayload() const{ return m_actionPayload; }
68 inline bool ActionPayloadHasBeenSet() const { return m_actionPayloadHasBeenSet; }
69 inline void SetActionPayload(const ActionPayload& value) { m_actionPayloadHasBeenSet = true; m_actionPayload = value; }
70 inline void SetActionPayload(ActionPayload&& value) { m_actionPayloadHasBeenSet = true; m_actionPayload = std::move(value); }
71 inline ExecuteActionRequest& WithActionPayload(const ActionPayload& value) { SetActionPayload(value); return *this;}
72 inline ExecuteActionRequest& WithActionPayload(ActionPayload&& value) { SetActionPayload(std::move(value)); return *this;}
74
76
81 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
82 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
83 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
84 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
85 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
86 inline ExecuteActionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
87 inline ExecuteActionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
88 inline ExecuteActionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
90 private:
91
92 TargetResource m_targetResource;
93 bool m_targetResourceHasBeenSet = false;
94
95 Aws::String m_actionDefinitionId;
96 bool m_actionDefinitionIdHasBeenSet = false;
97
98 ActionPayload m_actionPayload;
99 bool m_actionPayloadHasBeenSet = false;
100
101 Aws::String m_clientToken;
102 bool m_clientTokenHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoTSiteWise
107} // namespace Aws
void SetTargetResource(const TargetResource &value)
ExecuteActionRequest & WithTargetResource(TargetResource &&value)
ExecuteActionRequest & WithActionPayload(ActionPayload &&value)
ExecuteActionRequest & WithActionDefinitionId(const char *value)
ExecuteActionRequest & WithClientToken(const char *value)
ExecuteActionRequest & WithClientToken(const Aws::String &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
ExecuteActionRequest & WithClientToken(Aws::String &&value)
void SetActionPayload(const ActionPayload &value)
ExecuteActionRequest & WithActionDefinitionId(const Aws::String &value)
void SetActionDefinitionId(const Aws::String &value)
ExecuteActionRequest & WithTargetResource(const TargetResource &value)
ExecuteActionRequest & WithActionDefinitionId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ExecuteActionRequest & WithActionPayload(const ActionPayload &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String