/** * 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 CodeDeploy { namespace Model { /** *

Represents the input of a BatchGetDeployments operation. *

See Also:

AWS * API Reference

*/ class BatchGetDeploymentsRequest : public CodeDeployRequest { public: AWS_CODEDEPLOY_API BatchGetDeploymentsRequest(); // 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 "BatchGetDeployments"; } AWS_CODEDEPLOY_API Aws::String SerializePayload() const override; AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

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

A list of deployment IDs, separated by spaces. The maximum number of * deployment IDs you can specify is 25.

*/ inline BatchGetDeploymentsRequest& AddDeploymentIds(const char* value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; } private: Aws::Vector m_deploymentIds; bool m_deploymentIdsHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws