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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A stack ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified stack.

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

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline const Aws::String& GetLayerId() const{ return m_layerId; } /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; } /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; } /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); } /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); } /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline DescribeInstancesRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;} /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline DescribeInstancesRequest& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;} /** *

A layer ID. If you use this parameter, DescribeInstances returns * descriptions of the instances associated with the specified layer.

*/ inline DescribeInstancesRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;} /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline const Aws::Vector& GetInstanceIds() const{ return m_instanceIds; } /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; } /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline void SetInstanceIds(const Aws::Vector& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; } /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline void SetInstanceIds(Aws::Vector&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); } /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline DescribeInstancesRequest& WithInstanceIds(const Aws::Vector& value) { SetInstanceIds(value); return *this;} /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline DescribeInstancesRequest& WithInstanceIds(Aws::Vector&& value) { SetInstanceIds(std::move(value)); return *this;} /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline DescribeInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; } /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline DescribeInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; } /** *

An array of instance IDs to be described. If you use this parameter, * DescribeInstances returns a description of the specified instances. * Otherwise, it returns a description of every instance.

*/ inline DescribeInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; } private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_layerId; bool m_layerIdHasBeenSet = false; Aws::Vector m_instanceIds; bool m_instanceIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws