/** * 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 { /** *

See the example below to learn how to create a request body.

See * Also:

AWS * API Reference

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by name.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the environment by ID.

You must specify either this or an * EnvironmentName, or both.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

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

Specify the response elements to return. To retrieve all attributes, set to * All. If no attribute names are specified, returns the name of the * environment.

*/ inline DescribeEnvironmentHealthRequest& AddAttributeNames(EnvironmentHealthAttribute&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; } private: Aws::String m_environmentName; bool m_environmentNameHasBeenSet; Aws::String m_environmentId; bool m_environmentIdHasBeenSet; Aws::Vector m_attributeNames; bool m_attributeNamesHasBeenSet; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws