All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.opsworkscm.model.DescribeServersResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS OpsWorks for Chef Automate module holds the client classes that are used for communicating with AWS OpsWorks for Chef Automate Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.opsworkscm.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeServersResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* 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. *

    *
  • *
*/ private java.util.List servers; /** *

* This is not currently implemented for DescribeServers requests. *

*/ private String nextToken; /** *

* 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. *

    *
  • *
* * @return 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. *

    *
  • */ public java.util.List getServers() { return 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. *

      *
    • *
    * * @param 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. *

      *
    • */ public void setServers(java.util.Collection servers) { if (servers == null) { this.servers = null; return; } this.servers = new java.util.ArrayList(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. *

        *
      • *
      *

      * NOTE: This method appends the values to the existing list (if any). Use * {@link #setServers(java.util.Collection)} or {@link #withServers(java.util.Collection)} if you want to override * the existing values. *

      * * @param 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeServersResult withServers(Server... servers) { if (this.servers == null) { setServers(new java.util.ArrayList(servers.length)); } for (Server ele : servers) { this.servers.add(ele); } 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. *

          *
        • *
        * * @param 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeServersResult withServers(java.util.Collection servers) { setServers(servers); return this; } /** *

          * This is not currently implemented for DescribeServers requests. *

          * * @param nextToken * This is not currently implemented for DescribeServers requests. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

          * This is not currently implemented for DescribeServers requests. *

          * * @return This is not currently implemented for DescribeServers requests. */ public String getNextToken() { return this.nextToken; } /** *

          * This is not currently implemented for DescribeServers requests. *

          * * @param nextToken * This is not currently implemented for DescribeServers requests. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeServersResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getServers() != null) sb.append("Servers: ").append(getServers()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeServersResult == false) return false; DescribeServersResult other = (DescribeServersResult) obj; if (other.getServers() == null ^ this.getServers() == null) return false; if (other.getServers() != null && other.getServers().equals(this.getServers()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServers() == null) ? 0 : getServers().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeServersResult clone() { try { return (DescribeServersResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy