/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace OpsWorks { namespace Model { /** */ class DescribeCommandsRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API DescribeCommandsRequest(); // 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 "DescribeCommands"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline DescribeCommandsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline DescribeCommandsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} /** *

The deployment ID. If you include this parameter, * DescribeCommands returns a description of the commands associated * with the specified deployment.

*/ inline DescribeCommandsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} /** *

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

The instance ID. If you include this parameter, DescribeCommands * returns a description of the commands associated with the specified * instance.

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

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline const Aws::Vector& GetCommandIds() const{ return m_commandIds; } /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline bool CommandIdsHasBeenSet() const { return m_commandIdsHasBeenSet; } /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline void SetCommandIds(const Aws::Vector& value) { m_commandIdsHasBeenSet = true; m_commandIds = value; } /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline void SetCommandIds(Aws::Vector&& value) { m_commandIdsHasBeenSet = true; m_commandIds = std::move(value); } /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline DescribeCommandsRequest& WithCommandIds(const Aws::Vector& value) { SetCommandIds(value); return *this;} /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline DescribeCommandsRequest& WithCommandIds(Aws::Vector&& value) { SetCommandIds(std::move(value)); return *this;} /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline DescribeCommandsRequest& AddCommandIds(const Aws::String& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; } /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline DescribeCommandsRequest& AddCommandIds(Aws::String&& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(std::move(value)); return *this; } /** *

An array of command IDs. If you include this parameter, * DescribeCommands returns a description of the specified commands. * Otherwise, it returns a description of every command.

*/ inline DescribeCommandsRequest& AddCommandIds(const char* value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; } private: Aws::String m_deploymentId; bool m_deploymentIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::Vector m_commandIds; bool m_commandIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws