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

The instance ID. If you include this parameter, * DescribeElasticIps returns a description of the Elastic IP * addresses associated with the specified instance.

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

The instance ID. If you include this parameter, * DescribeElasticIps returns a description of the Elastic IP * addresses associated with the specified instance.

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

The instance ID. If you include this parameter, * DescribeElasticIps returns a description of the Elastic IP * addresses 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, * DescribeElasticIps returns a description of the Elastic IP * addresses 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, * DescribeElasticIps returns a description of the Elastic IP * addresses 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, * DescribeElasticIps returns a description of the Elastic IP * addresses associated with the specified instance.

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

The instance ID. If you include this parameter, * DescribeElasticIps returns a description of the Elastic IP * addresses associated with the specified instance.

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

The instance ID. If you include this parameter, * DescribeElasticIps returns a description of the Elastic IP * addresses associated with the specified instance.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

A stack ID. If you include this parameter, DescribeElasticIps * returns a description of the Elastic IP addresses that are registered with the * specified stack.

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

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline const Aws::Vector& GetIps() const{ return m_ips; } /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; } /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline void SetIps(const Aws::Vector& value) { m_ipsHasBeenSet = true; m_ips = value; } /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline void SetIps(Aws::Vector&& value) { m_ipsHasBeenSet = true; m_ips = std::move(value); } /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline DescribeElasticIpsRequest& WithIps(const Aws::Vector& value) { SetIps(value); return *this;} /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline DescribeElasticIpsRequest& WithIps(Aws::Vector&& value) { SetIps(std::move(value)); return *this;} /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline DescribeElasticIpsRequest& AddIps(const Aws::String& value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; } /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline DescribeElasticIpsRequest& AddIps(Aws::String&& value) { m_ipsHasBeenSet = true; m_ips.push_back(std::move(value)); return *this; } /** *

An array of Elastic IP addresses to be described. If you include this * parameter, DescribeElasticIps returns a description of the * specified Elastic IP addresses. Otherwise, it returns a description of every * Elastic IP address.

*/ inline DescribeElasticIpsRequest& AddIps(const char* value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; } private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::Vector m_ips; bool m_ipsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws