/** * 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 BatchGetOnPremisesInstances * operation.

See Also:

AWS * API Reference

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

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline const Aws::Vector& GetInstanceNames() const{ return m_instanceNames; } /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; } /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline void SetInstanceNames(const Aws::Vector& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; } /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline void SetInstanceNames(Aws::Vector&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); } /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline BatchGetOnPremisesInstancesRequest& WithInstanceNames(const Aws::Vector& value) { SetInstanceNames(value); return *this;} /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline BatchGetOnPremisesInstancesRequest& WithInstanceNames(Aws::Vector&& value) { SetInstanceNames(std::move(value)); return *this;} /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; } /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; } /** *

The names of the on-premises instances about which to get information. The * maximum number of instance names you can specify is 25.

*/ inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; } private: Aws::Vector m_instanceNames; bool m_instanceNamesHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws