AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
GetCommandInvocationRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SSM
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SSM_API GetCommandInvocationRequest() = 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 "GetCommandInvocation"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetCommandId() const { return m_commandId; }
42 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
43 template<typename CommandIdT = Aws::String>
44 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
45 template<typename CommandIdT = Aws::String>
46 GetCommandInvocationRequest& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
48
50
56 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
57 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
58 template<typename InstanceIdT = Aws::String>
59 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
60 template<typename InstanceIdT = Aws::String>
61 GetCommandInvocationRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
63
65
77 inline const Aws::String& GetPluginName() const { return m_pluginName; }
78 inline bool PluginNameHasBeenSet() const { return m_pluginNameHasBeenSet; }
79 template<typename PluginNameT = Aws::String>
80 void SetPluginName(PluginNameT&& value) { m_pluginNameHasBeenSet = true; m_pluginName = std::forward<PluginNameT>(value); }
81 template<typename PluginNameT = Aws::String>
82 GetCommandInvocationRequest& WithPluginName(PluginNameT&& value) { SetPluginName(std::forward<PluginNameT>(value)); return *this;}
84 private:
85
86 Aws::String m_commandId;
87 bool m_commandIdHasBeenSet = false;
88
89 Aws::String m_instanceId;
90 bool m_instanceIdHasBeenSet = false;
91
92 Aws::String m_pluginName;
93 bool m_pluginNameHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SSM
98} // 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