/** * 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 ElasticBeanstalk { namespace Model { /** *

Request to list an environment's upcoming and in-progress managed * actions.

See Also:

AWS * API Reference

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

The name of the target environment.

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

The name of the target environment.

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

The name of the target environment.

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

The name of the target environment.

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

The name of the target environment.

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

The name of the target environment.

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

The name of the target environment.

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

The name of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

The environment ID of the target environment.

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

To show only actions with a particular status, specify a status.

*/ inline const ActionStatus& GetStatus() const{ return m_status; } /** *

To show only actions with a particular status, specify a status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

To show only actions with a particular status, specify a status.

*/ inline void SetStatus(const ActionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

To show only actions with a particular status, specify a status.

*/ inline void SetStatus(ActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

To show only actions with a particular status, specify a status.

*/ inline DescribeEnvironmentManagedActionsRequest& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;} /** *

To show only actions with a particular status, specify a status.

*/ inline DescribeEnvironmentManagedActionsRequest& WithStatus(ActionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; ActionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws