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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

The ID of the stack with which the instances are registered. The operation * returns descriptions of all registered Amazon RDS instances.

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

An array containing the ARNs of the instances to be described.

*/ inline const Aws::Vector& GetRdsDbInstanceArns() const{ return m_rdsDbInstanceArns; } /** *

An array containing the ARNs of the instances to be described.

*/ inline bool RdsDbInstanceArnsHasBeenSet() const { return m_rdsDbInstanceArnsHasBeenSet; } /** *

An array containing the ARNs of the instances to be described.

*/ inline void SetRdsDbInstanceArns(const Aws::Vector& value) { m_rdsDbInstanceArnsHasBeenSet = true; m_rdsDbInstanceArns = value; } /** *

An array containing the ARNs of the instances to be described.

*/ inline void SetRdsDbInstanceArns(Aws::Vector&& value) { m_rdsDbInstanceArnsHasBeenSet = true; m_rdsDbInstanceArns = std::move(value); } /** *

An array containing the ARNs of the instances to be described.

*/ inline DescribeRdsDbInstancesRequest& WithRdsDbInstanceArns(const Aws::Vector& value) { SetRdsDbInstanceArns(value); return *this;} /** *

An array containing the ARNs of the instances to be described.

*/ inline DescribeRdsDbInstancesRequest& WithRdsDbInstanceArns(Aws::Vector&& value) { SetRdsDbInstanceArns(std::move(value)); return *this;} /** *

An array containing the ARNs of the instances to be described.

*/ inline DescribeRdsDbInstancesRequest& AddRdsDbInstanceArns(const Aws::String& value) { m_rdsDbInstanceArnsHasBeenSet = true; m_rdsDbInstanceArns.push_back(value); return *this; } /** *

An array containing the ARNs of the instances to be described.

*/ inline DescribeRdsDbInstancesRequest& AddRdsDbInstanceArns(Aws::String&& value) { m_rdsDbInstanceArnsHasBeenSet = true; m_rdsDbInstanceArns.push_back(std::move(value)); return *this; } /** *

An array containing the ARNs of the instances to be described.

*/ inline DescribeRdsDbInstancesRequest& AddRdsDbInstanceArns(const char* value) { m_rdsDbInstanceArnsHasBeenSet = true; m_rdsDbInstanceArns.push_back(value); return *this; } private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::Vector m_rdsDbInstanceArns; bool m_rdsDbInstanceArnsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws