/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SMS { namespace Model { /** *

Launch configuration for a server group.

See Also:

AWS * API Reference

*/ class ServerGroupLaunchConfiguration { public: AWS_SMS_API ServerGroupLaunchConfiguration(); AWS_SMS_API ServerGroupLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API ServerGroupLaunchConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; } /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; } /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; } /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); } /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); } /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline ServerGroupLaunchConfiguration& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;} /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline ServerGroupLaunchConfiguration& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;} /** *

The ID of the server group with which the launch configuration is * associated.

*/ inline ServerGroupLaunchConfiguration& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;} /** *

The launch order of servers in the server group.

*/ inline int GetLaunchOrder() const{ return m_launchOrder; } /** *

The launch order of servers in the server group.

*/ inline bool LaunchOrderHasBeenSet() const { return m_launchOrderHasBeenSet; } /** *

The launch order of servers in the server group.

*/ inline void SetLaunchOrder(int value) { m_launchOrderHasBeenSet = true; m_launchOrder = value; } /** *

The launch order of servers in the server group.

*/ inline ServerGroupLaunchConfiguration& WithLaunchOrder(int value) { SetLaunchOrder(value); return *this;} /** *

The launch configuration for servers in the server group.

*/ inline const Aws::Vector& GetServerLaunchConfigurations() const{ return m_serverLaunchConfigurations; } /** *

The launch configuration for servers in the server group.

*/ inline bool ServerLaunchConfigurationsHasBeenSet() const { return m_serverLaunchConfigurationsHasBeenSet; } /** *

The launch configuration for servers in the server group.

*/ inline void SetServerLaunchConfigurations(const Aws::Vector& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations = value; } /** *

The launch configuration for servers in the server group.

*/ inline void SetServerLaunchConfigurations(Aws::Vector&& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations = std::move(value); } /** *

The launch configuration for servers in the server group.

*/ inline ServerGroupLaunchConfiguration& WithServerLaunchConfigurations(const Aws::Vector& value) { SetServerLaunchConfigurations(value); return *this;} /** *

The launch configuration for servers in the server group.

*/ inline ServerGroupLaunchConfiguration& WithServerLaunchConfigurations(Aws::Vector&& value) { SetServerLaunchConfigurations(std::move(value)); return *this;} /** *

The launch configuration for servers in the server group.

*/ inline ServerGroupLaunchConfiguration& AddServerLaunchConfigurations(const ServerLaunchConfiguration& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations.push_back(value); return *this; } /** *

The launch configuration for servers in the server group.

*/ inline ServerGroupLaunchConfiguration& AddServerLaunchConfigurations(ServerLaunchConfiguration&& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations.push_back(std::move(value)); return *this; } private: Aws::String m_serverGroupId; bool m_serverGroupIdHasBeenSet = false; int m_launchOrder; bool m_launchOrderHasBeenSet = false; Aws::Vector m_serverLaunchConfigurations; bool m_serverLaunchConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws