AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetCommandInvocationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SSM {
15namespace Model {
16
20 public:
21 AWS_SSM_API GetCommandInvocationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetCommandInvocation"; }
28
29 AWS_SSM_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetCommandId() const { return m_commandId; }
38 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
39 template <typename CommandIdT = Aws::String>
40 void SetCommandId(CommandIdT&& value) {
41 m_commandIdHasBeenSet = true;
42 m_commandId = std::forward<CommandIdT>(value);
43 }
44 template <typename CommandIdT = Aws::String>
46 SetCommandId(std::forward<CommandIdT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
59 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
60 template <typename InstanceIdT = Aws::String>
61 void SetInstanceId(InstanceIdT&& value) {
62 m_instanceIdHasBeenSet = true;
63 m_instanceId = std::forward<InstanceIdT>(value);
64 }
65 template <typename InstanceIdT = Aws::String>
67 SetInstanceId(std::forward<InstanceIdT>(value));
68 return *this;
69 }
71
73
85 inline const Aws::String& GetPluginName() const { return m_pluginName; }
86 inline bool PluginNameHasBeenSet() const { return m_pluginNameHasBeenSet; }
87 template <typename PluginNameT = Aws::String>
88 void SetPluginName(PluginNameT&& value) {
89 m_pluginNameHasBeenSet = true;
90 m_pluginName = std::forward<PluginNameT>(value);
91 }
92 template <typename PluginNameT = Aws::String>
94 SetPluginName(std::forward<PluginNameT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_commandId;
100
101 Aws::String m_instanceId;
102
103 Aws::String m_pluginName;
104 bool m_commandIdHasBeenSet = false;
105 bool m_instanceIdHasBeenSet = false;
106 bool m_pluginNameHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SSM
111} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCommandInvocationRequest & WithInstanceId(InstanceIdT &&value)
GetCommandInvocationRequest & WithPluginName(PluginNameT &&value)
GetCommandInvocationRequest & WithCommandId(CommandIdT &&value)
AWS_SSM_API GetCommandInvocationRequest()=default
AWS_SSM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String