/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ElasticBeanstalk { namespace Model { /** *

Parameters for a call to DescribeInstancesHealth.

See * Also:

AWS * API Reference

*/ class DescribeInstancesHealthRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_API DescribeInstancesHealthRequest(); // 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 "DescribeInstancesHealth"; } AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override; protected: AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline DescribeInstancesHealthRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline DescribeInstancesHealthRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

Specify the AWS Elastic Beanstalk environment by name.

*/ inline DescribeInstancesHealthRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline DescribeInstancesHealthRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline DescribeInstancesHealthRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

Specify the AWS Elastic Beanstalk environment by ID.

*/ inline DescribeInstancesHealthRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline const Aws::Vector& GetAttributeNames() const{ return m_attributeNames; } /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; } /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline void SetAttributeNames(const Aws::Vector& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; } /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline void SetAttributeNames(Aws::Vector&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); } /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline DescribeInstancesHealthRequest& WithAttributeNames(const Aws::Vector& value) { SetAttributeNames(value); return *this;} /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline DescribeInstancesHealthRequest& WithAttributeNames(Aws::Vector&& value) { SetAttributeNames(std::move(value)); return *this;} /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline DescribeInstancesHealthRequest& AddAttributeNames(const InstancesHealthAttribute& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } /** *

Specifies the response elements you wish to receive. To retrieve all * attributes, set to All. If no attribute names are specified, * returns a list of instances.

*/ inline DescribeInstancesHealthRequest& AddAttributeNames(InstancesHealthAttribute&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; } /** *

Specify the pagination token returned by a previous call.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Specify the pagination token returned by a previous call.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Specify the pagination token returned by a previous call.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Specify the pagination token returned by a previous call.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Specify the pagination token returned by a previous call.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Specify the pagination token returned by a previous call.

*/ inline DescribeInstancesHealthRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Specify the pagination token returned by a previous call.

*/ inline DescribeInstancesHealthRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Specify the pagination token returned by a previous call.

*/ inline DescribeInstancesHealthRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::Vector m_attributeNames; bool m_attributeNamesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws