/** * 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 DescribeDeploymentsRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API DescribeDeploymentsRequest(); // 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 "DescribeDeployments"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

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

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

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

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

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

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

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

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

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

*/ inline DescribeDeploymentsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

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

*/ inline DescribeDeploymentsRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

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

*/ inline DescribeDeploymentsRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

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

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

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

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

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

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

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

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

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

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

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

*/ inline DescribeDeploymentsRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

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

*/ inline DescribeDeploymentsRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

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

*/ inline DescribeDeploymentsRequest& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline const Aws::Vector& GetDeploymentIds() const{ return m_deploymentIds; } /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline bool DeploymentIdsHasBeenSet() const { return m_deploymentIdsHasBeenSet; } /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline void SetDeploymentIds(const Aws::Vector& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = value; } /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline void SetDeploymentIds(Aws::Vector&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = std::move(value); } /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline DescribeDeploymentsRequest& WithDeploymentIds(const Aws::Vector& value) { SetDeploymentIds(value); return *this;} /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline DescribeDeploymentsRequest& WithDeploymentIds(Aws::Vector&& value) { SetDeploymentIds(std::move(value)); return *this;} /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline DescribeDeploymentsRequest& AddDeploymentIds(const Aws::String& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; } /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline DescribeDeploymentsRequest& AddDeploymentIds(Aws::String&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(std::move(value)); return *this; } /** *

An array of deployment IDs to be described. If you include this parameter, * the command returns a description of the specified deployments. Otherwise, it * returns a description of every deployment.

*/ inline DescribeDeploymentsRequest& AddDeploymentIds(const char* value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; } private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::Vector m_deploymentIds; bool m_deploymentIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws