/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class AWS_SSM_API GetCommandInvocationRequest : public SSMRequest { public: GetCommandInvocationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetCommandInvocation"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

(Required) The parent command ID of the invocation plugin.

*/ inline const Aws::String& GetCommandId() const{ return m_commandId; } /** *

(Required) The parent command ID of the invocation plugin.

*/ inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; } /** *

(Required) The parent command ID of the invocation plugin.

*/ inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; } /** *

(Required) The parent command ID of the invocation plugin.

*/ inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); } /** *

(Required) The parent command ID of the invocation plugin.

*/ inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); } /** *

(Required) The parent command ID of the invocation plugin.

*/ inline GetCommandInvocationRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;} /** *

(Required) The parent command ID of the invocation plugin.

*/ inline GetCommandInvocationRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;} /** *

(Required) The parent command ID of the invocation plugin.

*/ inline GetCommandInvocationRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;} /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline GetCommandInvocationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline GetCommandInvocationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

(Required) The ID of the managed instance targeted by the command. A managed * instance can be an EC2 instance or an instance in your hybrid environment that * is configured for Systems Manager.

*/ inline GetCommandInvocationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline const Aws::String& GetPluginName() const{ return m_pluginName; } /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline bool PluginNameHasBeenSet() const { return m_pluginNameHasBeenSet; } /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline void SetPluginName(const Aws::String& value) { m_pluginNameHasBeenSet = true; m_pluginName = value; } /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline void SetPluginName(Aws::String&& value) { m_pluginNameHasBeenSet = true; m_pluginName = std::move(value); } /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline void SetPluginName(const char* value) { m_pluginNameHasBeenSet = true; m_pluginName.assign(value); } /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline GetCommandInvocationRequest& WithPluginName(const Aws::String& value) { SetPluginName(value); return *this;} /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline GetCommandInvocationRequest& WithPluginName(Aws::String&& value) { SetPluginName(std::move(value)); return *this;} /** *

(Optional) The name of the plugin for which you want detailed results. If the * document contains only one plugin, the name can be omitted and the details will * be returned.

Plugin names are also referred to as step names in Systems * Manager documents.

*/ inline GetCommandInvocationRequest& WithPluginName(const char* value) { SetPluginName(value); return *this;} private: Aws::String m_commandId; bool m_commandIdHasBeenSet; Aws::String m_instanceId; bool m_instanceIdHasBeenSet; Aws::String m_pluginName; bool m_pluginNameHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws