/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OpsWorksCM { namespace Model { class DescribeServersResult { public: AWS_OPSWORKSCM_API DescribeServersResult(); AWS_OPSWORKSCM_API DescribeServersResult(const Aws::AmazonWebServiceResult& result); AWS_OPSWORKSCM_API DescribeServersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline const Aws::Vector& GetServers() const{ return m_servers; } /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline void SetServers(const Aws::Vector& value) { m_servers = value; } /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline void SetServers(Aws::Vector&& value) { m_servers = std::move(value); } /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline DescribeServersResult& WithServers(const Aws::Vector& value) { SetServers(value); return *this;} /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline DescribeServersResult& WithServers(Aws::Vector&& value) { SetServers(std::move(value)); return *this;} /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline DescribeServersResult& AddServers(const Server& value) { m_servers.push_back(value); return *this; } /** *

Contains the response to a DescribeServers request.

* For Chef Automate servers: If * DescribeServersResponse$Servers$EngineAttributes includes * CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef * Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must * have had at least one successful maintenance run after November 1, 2019.

* For Puppet servers: * DescribeServersResponse$Servers$EngineAttributes contains the * following two responses:

  • PUPPET_API_CA_CERT, the * PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates.

  • *

    PUPPET_API_CRL, a certificate revocation list. The certificate * revocation list is for internal maintenance purposes only. For more information * about the Puppet certificate revocation list, see Man * Page: puppet certificate_revocation_list in the Puppet documentation.

    *
*/ inline DescribeServersResult& AddServers(Server&& value) { m_servers.push_back(std::move(value)); return *this; } /** *

This is not currently implemented for DescribeServers requests. *

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

This is not currently implemented for DescribeServers requests. *

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

This is not currently implemented for DescribeServers requests. *

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

This is not currently implemented for DescribeServers requests. *

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

This is not currently implemented for DescribeServers requests. *

*/ inline DescribeServersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

This is not currently implemented for DescribeServers requests. *

*/ inline DescribeServersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

This is not currently implemented for DescribeServers requests. *

*/ inline DescribeServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeServersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeServersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeServersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_servers; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws