/** * 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 DisassociateNodeRequest : public OpsWorksCMRequest { public: AWS_OPSWORKSCM_API DisassociateNodeRequest(); // 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 "DisassociateNode"; } AWS_OPSWORKSCM_API Aws::String SerializePayload() const override; AWS_OPSWORKSCM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the server from which to disassociate the node.

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

The name of the client node.

*/ inline const Aws::String& GetNodeName() const{ return m_nodeName; } /** *

The name of the client node.

*/ inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; } /** *

The name of the client node.

*/ inline void SetNodeName(const Aws::String& value) { m_nodeNameHasBeenSet = true; m_nodeName = value; } /** *

The name of the client node.

*/ inline void SetNodeName(Aws::String&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::move(value); } /** *

The name of the client node.

*/ inline void SetNodeName(const char* value) { m_nodeNameHasBeenSet = true; m_nodeName.assign(value); } /** *

The name of the client node.

*/ inline DisassociateNodeRequest& WithNodeName(const Aws::String& value) { SetNodeName(value); return *this;} /** *

The name of the client node.

*/ inline DisassociateNodeRequest& WithNodeName(Aws::String&& value) { SetNodeName(std::move(value)); return *this;} /** *

The name of the client node.

*/ inline DisassociateNodeRequest& WithNodeName(const char* value) { SetNodeName(value); return *this;} /** *

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

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

Engine attributes that are used for disassociating the node. No attributes * are required for Puppet.

Attributes required in a * DisassociateNode request for Chef

  • * CHEF_ORGANIZATION: The Chef organization with which the node was * associated. By default only one organization named default can * exist.

*/ inline DisassociateNodeRequest& 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::String m_nodeName; bool m_nodeNameHasBeenSet = false; Aws::Vector m_engineAttributes; bool m_engineAttributesHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws