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

Request to add or change the operations role used by an * environment.

See Also:

AWS * API Reference

*/ class AssociateEnvironmentOperationsRoleRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_API AssociateEnvironmentOperationsRoleRequest(); // 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 "AssociateEnvironmentOperationsRole"; } 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 environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The name of the environment to which to set the operations role.

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

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline const Aws::String& GetOperationsRole() const{ return m_operationsRole; } /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline void SetOperationsRole(const Aws::String& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = value; } /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline void SetOperationsRole(Aws::String&& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = std::move(value); } /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline void SetOperationsRole(const char* value) { m_operationsRoleHasBeenSet = true; m_operationsRole.assign(value); } /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline AssociateEnvironmentOperationsRoleRequest& WithOperationsRole(const Aws::String& value) { SetOperationsRole(value); return *this;} /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline AssociateEnvironmentOperationsRoleRequest& WithOperationsRole(Aws::String&& value) { SetOperationsRole(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an existing IAM role to be used as the * environment's operations role.

*/ inline AssociateEnvironmentOperationsRoleRequest& WithOperationsRole(const char* value) { SetOperationsRole(value); return *this;} private: Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_operationsRole; bool m_operationsRoleHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws