/** * 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 SMS { namespace Model { /** */ class PutAppLaunchConfigurationRequest : public SMSRequest { public: AWS_SMS_API PutAppLaunchConfigurationRequest(); // 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 "PutAppLaunchConfiguration"; } AWS_SMS_API Aws::String SerializePayload() const override; AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the application.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The ID of the application.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The ID of the application.

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

The ID of the application.

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

The ID of the application.

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

The ID of the application.

*/ inline PutAppLaunchConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The ID of the application.

*/ inline PutAppLaunchConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The ID of the application.

*/ inline PutAppLaunchConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; } /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); } /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); } /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline PutAppLaunchConfigurationRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline PutAppLaunchConfigurationRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *

The name of service role in the customer's account that CloudFormation uses * to launch the application.

*/ inline PutAppLaunchConfigurationRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;} /** *

Indicates whether the application is configured to launch automatically after * replication is complete.

*/ inline bool GetAutoLaunch() const{ return m_autoLaunch; } /** *

Indicates whether the application is configured to launch automatically after * replication is complete.

*/ inline bool AutoLaunchHasBeenSet() const { return m_autoLaunchHasBeenSet; } /** *

Indicates whether the application is configured to launch automatically after * replication is complete.

*/ inline void SetAutoLaunch(bool value) { m_autoLaunchHasBeenSet = true; m_autoLaunch = value; } /** *

Indicates whether the application is configured to launch automatically after * replication is complete.

*/ inline PutAppLaunchConfigurationRequest& WithAutoLaunch(bool value) { SetAutoLaunch(value); return *this;} /** *

Information about the launch configurations for server groups in the * application.

*/ inline const Aws::Vector& GetServerGroupLaunchConfigurations() const{ return m_serverGroupLaunchConfigurations; } /** *

Information about the launch configurations for server groups in the * application.

*/ inline bool ServerGroupLaunchConfigurationsHasBeenSet() const { return m_serverGroupLaunchConfigurationsHasBeenSet; } /** *

Information about the launch configurations for server groups in the * application.

*/ inline void SetServerGroupLaunchConfigurations(const Aws::Vector& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = value; } /** *

Information about the launch configurations for server groups in the * application.

*/ inline void SetServerGroupLaunchConfigurations(Aws::Vector&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = std::move(value); } /** *

Information about the launch configurations for server groups in the * application.

*/ inline PutAppLaunchConfigurationRequest& WithServerGroupLaunchConfigurations(const Aws::Vector& value) { SetServerGroupLaunchConfigurations(value); return *this;} /** *

Information about the launch configurations for server groups in the * application.

*/ inline PutAppLaunchConfigurationRequest& WithServerGroupLaunchConfigurations(Aws::Vector&& value) { SetServerGroupLaunchConfigurations(std::move(value)); return *this;} /** *

Information about the launch configurations for server groups in the * application.

*/ inline PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(const ServerGroupLaunchConfiguration& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.push_back(value); return *this; } /** *

Information about the launch configurations for server groups in the * application.

*/ inline PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(ServerGroupLaunchConfiguration&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.push_back(std::move(value)); return *this; } private: Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_roleName; bool m_roleNameHasBeenSet = false; bool m_autoLaunch; bool m_autoLaunchHasBeenSet = false; Aws::Vector m_serverGroupLaunchConfigurations; bool m_serverGroupLaunchConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws