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

com.amazonaws.services.opsworkscm.model.ExportServerEngineAttributeRequest 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 2017-2022 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;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

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

*/ private String exportAttributeName; /** *

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

*/ private String serverName; /** *

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

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

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

* * @param 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. */ public void setExportAttributeName(String exportAttributeName) { this.exportAttributeName = 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. *

* * @return 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. */ public String getExportAttributeName() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportServerEngineAttributeRequest withExportAttributeName(String exportAttributeName) { setExportAttributeName(exportAttributeName); return this; } /** *

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

* * @param serverName * The name of the server from which you are exporting the attribute. */ public void setServerName(String serverName) { this.serverName = serverName; } /** *

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

* * @return The name of the server from which you are exporting the attribute. */ public String getServerName() { return this.serverName; } /** *

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

* * @param serverName * The name of the server from which you are exporting the attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportServerEngineAttributeRequest withServerName(String serverName) { setServerName(serverName); 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. *

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

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

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

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

        *
      • *
      *

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

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

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

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

          *
        • * @return Returns a reference to this object so that method calls can be chained together. */ public ExportServerEngineAttributeRequest withInputAttributes(java.util.Collection inputAttributes) { setInputAttributes(inputAttributes); 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 (getExportAttributeName() != null) sb.append("ExportAttributeName: ").append(getExportAttributeName()).append(","); if (getServerName() != null) sb.append("ServerName: ").append(getServerName()).append(","); if (getInputAttributes() != null) sb.append("InputAttributes: ").append(getInputAttributes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExportServerEngineAttributeRequest == false) return false; ExportServerEngineAttributeRequest other = (ExportServerEngineAttributeRequest) obj; if (other.getExportAttributeName() == null ^ this.getExportAttributeName() == null) return false; if (other.getExportAttributeName() != null && other.getExportAttributeName().equals(this.getExportAttributeName()) == false) return false; if (other.getServerName() == null ^ this.getServerName() == null) return false; if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false) return false; if (other.getInputAttributes() == null ^ this.getInputAttributes() == null) return false; if (other.getInputAttributes() != null && other.getInputAttributes().equals(this.getInputAttributes()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExportAttributeName() == null) ? 0 : getExportAttributeName().hashCode()); hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode()); hashCode = prime * hashCode + ((getInputAttributes() == null) ? 0 : getInputAttributes().hashCode()); return hashCode; } @Override public ExportServerEngineAttributeRequest clone() { return (ExportServerEngineAttributeRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy