/** * 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 OpsWorksCM { namespace Model { /** */ class DeleteServerRequest : public OpsWorksCMRequest { public: AWS_OPSWORKSCM_API DeleteServerRequest(); // 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 "DeleteServer"; } AWS_OPSWORKSCM_API Aws::String SerializePayload() const override; AWS_OPSWORKSCM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the server to delete.

*/ inline const Aws::String& GetServerName() const{ return m_serverName; } /** *

The ID of the server to delete.

*/ inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } /** *

The ID of the server to delete.

*/ inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } /** *

The ID of the server to delete.

*/ inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } /** *

The ID of the server to delete.

*/ inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } /** *

The ID of the server to delete.

*/ inline DeleteServerRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} /** *

The ID of the server to delete.

*/ inline DeleteServerRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} /** *

The ID of the server to delete.

*/ inline DeleteServerRequest& WithServerName(const char* value) { SetServerName(value); return *this;} private: Aws::String m_serverName; bool m_serverNameHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws