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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

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

The name of the server on which to run maintenance.

*/ inline StartMaintenanceRequest& WithServerName(const char* value) { SetServerName(value); return *this;} /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline const Aws::Vector& GetEngineAttributes() const{ return m_engineAttributes; } /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline bool EngineAttributesHasBeenSet() const { return m_engineAttributesHasBeenSet; } /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline void SetEngineAttributes(const Aws::Vector& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = value; } /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline void SetEngineAttributes(Aws::Vector&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = std::move(value); } /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline StartMaintenanceRequest& WithEngineAttributes(const Aws::Vector& value) { SetEngineAttributes(value); return *this;} /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline StartMaintenanceRequest& WithEngineAttributes(Aws::Vector&& value) { SetEngineAttributes(std::move(value)); return *this;} /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline StartMaintenanceRequest& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(value); return *this; } /** *

Engine attributes that are specific to the server on which you want to run * maintenance.

Attributes accepted in a StartMaintenance * request for Chef

*/ inline StartMaintenanceRequest& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(std::move(value)); return *this; } private: Aws::String m_serverName; bool m_serverNameHasBeenSet = false; Aws::Vector m_engineAttributes; bool m_engineAttributesHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws