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

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline const Aws::String& GetExportAttributeName() const{ return m_exportAttributeName; } /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline bool ExportAttributeNameHasBeenSet() const { return m_exportAttributeNameHasBeenSet; } /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline void SetExportAttributeName(const Aws::String& value) { m_exportAttributeNameHasBeenSet = true; m_exportAttributeName = value; } /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline void SetExportAttributeName(Aws::String&& value) { m_exportAttributeNameHasBeenSet = true; m_exportAttributeName = std::move(value); } /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline void SetExportAttributeName(const char* value) { m_exportAttributeNameHasBeenSet = true; m_exportAttributeName.assign(value); } /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline ExportServerEngineAttributeRequest& WithExportAttributeName(const Aws::String& value) { SetExportAttributeName(value); return *this;} /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline ExportServerEngineAttributeRequest& WithExportAttributeName(Aws::String&& value) { SetExportAttributeName(std::move(value)); return *this;} /** *

The name of the export attribute. Currently, the supported export attribute * is Userdata. This exports a user data script that includes * parameters and values provided in the InputAttributes list.

*/ inline ExportServerEngineAttributeRequest& WithExportAttributeName(const char* value) { SetExportAttributeName(value); return *this;} /** *

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The name of the server from which you are exporting the attribute.

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

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline const Aws::Vector& GetInputAttributes() const{ return m_inputAttributes; } /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline bool InputAttributesHasBeenSet() const { return m_inputAttributesHasBeenSet; } /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline void SetInputAttributes(const Aws::Vector& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes = value; } /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline void SetInputAttributes(Aws::Vector&& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes = std::move(value); } /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline ExportServerEngineAttributeRequest& WithInputAttributes(const Aws::Vector& value) { SetInputAttributes(value); return *this;} /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline ExportServerEngineAttributeRequest& WithInputAttributes(Aws::Vector&& value) { SetInputAttributes(std::move(value)); return *this;} /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline ExportServerEngineAttributeRequest& AddInputAttributes(const EngineAttribute& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes.push_back(value); return *this; } /** *

The list of engine attributes. The list type is EngineAttribute. * An EngineAttribute list item is a pair that includes an attribute * name and its value. For the Userdata ExportAttributeName, the * following are supported engine attribute names.

  • RunList * In Chef, a list of roles or recipes that are run in the specified order. In * Puppet, this parameter is ignored.

  • OrganizationName In * Chef, an organization name. AWS OpsWorks for Chef Automate always creates the * organization default. In Puppet, this parameter is ignored.

    *
  • NodeEnvironment In Chef, a node environment (for example, * development, staging, or one-box). In Puppet, this parameter is ignored.

    *
  • NodeClientVersion In Chef, the version of the Chef engine * (three numbers separated by dots, such as 13.8.5). If this attribute is empty, * OpsWorks for Chef Automate uses the most current version. In Puppet, this * parameter is ignored.

*/ inline ExportServerEngineAttributeRequest& AddInputAttributes(EngineAttribute&& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes.push_back(std::move(value)); return *this; } private: Aws::String m_exportAttributeName; bool m_exportAttributeNameHasBeenSet = false; Aws::String m_serverName; bool m_serverNameHasBeenSet = false; Aws::Vector m_inputAttributes; bool m_inputAttributesHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws