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

com.amazonaws.services.opsworks.model.CreateLayerRequest Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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.opsworks.model;

import java.io.Serializable;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * Container for the parameters to the {@link com.amazonaws.services.opsworks.AWSOpsWorks#createLayer(CreateLayerRequest) CreateLayer operation}.
 * 

* Creates a layer. For more information, see * How to Create a Layer * . *

*

* NOTE:You should use CreateLayer for noncustom layer types such * as PHP App Server only if the stack does not have an existing layer of * that type. A stack can have at most one instance of each noncustom * layer; if you attempt to create a second instance, CreateLayer fails. * A stack can have an arbitrary number of custom layers, so you can call * CreateLayer as many times as you like for that layer type. *

*

* Required Permissions : To use this action, an IAM user must * have a Manage permissions level for the stack, or an attached policy * that explicitly grants permissions. For more information on user * permissions, see * Managing User Permissions * . *

* * @see com.amazonaws.services.opsworks.AWSOpsWorks#createLayer(CreateLayerRequest) */ public class CreateLayerRequest extends AmazonWebServiceRequest implements Serializable { /** * The layer stack ID. */ private String stackId; /** * The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:
  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
*

* Constraints:
* Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom */ private String type; /** * The layer name, which is used by the console. */ private String name; /** * The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. */ private String shortname; /** * One or more user-defined key/value pairs to be added to the stack * attributes bag. */ private java.util.Map attributes; /** * The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. */ private String customInstanceProfileArn; /** * An array containing the layer custom security group IDs. */ private com.amazonaws.internal.ListWithAutoConstructFlag customSecurityGroupIds; /** * An array of Package objects that describe the layer * packages. */ private com.amazonaws.internal.ListWithAutoConstructFlag packages; /** * A VolumeConfigurations object that describes the layer * Amazon EBS volumes. */ private com.amazonaws.internal.ListWithAutoConstructFlag volumeConfigurations; /** * Whether to disable auto healing for the layer. */ private Boolean enableAutoHealing; /** * Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. */ private Boolean autoAssignElasticIps; /** * For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. */ private Boolean autoAssignPublicIps; /** * A LayerCustomRecipes object that specifies the layer * custom recipes. */ private Recipes customRecipes; /** * Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. */ private Boolean installUpdatesOnBoot; /** * The layer stack ID. * * @return The layer stack ID. */ public String getStackId() { return stackId; } /** * The layer stack ID. * * @param stackId The layer stack ID. */ public void setStackId(String stackId) { this.stackId = stackId; } /** * The layer stack ID. *

* Returns a reference to this object so that method calls can be chained together. * * @param stackId The layer stack ID. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withStackId(String stackId) { this.stackId = stackId; return this; } /** * The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:

  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
*

* Constraints:
* Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom * * @return The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:

  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
* * @see LayerType */ public String getType() { return type; } /** * The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:
  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
*

* Constraints:
* Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom * * @param type The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:

  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
* * @see LayerType */ public void setType(String type) { this.type = type; } /** * The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:
  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
*

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom * * @param type The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:

  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
* * @return A reference to this updated object so that method calls can be chained * together. * * @see LayerType */ public CreateLayerRequest withType(String type) { this.type = type; return this; } /** * The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:
  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
*

* Constraints:
* Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom * * @param type The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:

  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
* * @see LayerType */ public void setType(LayerType type) { this.type = type.toString(); } /** * The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:
  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
*

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom * * @param type The layer type. A stack cannot have more than one layer of the same * type. This parameter must be set to one of the following:

  • lb: * An HAProxy layer
  • web: A Static Web Server layer
  • *
  • rails-app: A Rails App Server layer
  • php-app: A PHP App * Server layer
  • nodejs-app: A Node.js App Server layer
  • *
  • memcached: A Memcached layer
  • db-master: A MySQL * layer
  • monitoring-master: A Ganglia layer
  • custom: A * custom layer
* * @return A reference to this updated object so that method calls can be chained * together. * * @see LayerType */ public CreateLayerRequest withType(LayerType type) { this.type = type.toString(); return this; } /** * The layer name, which is used by the console. * * @return The layer name, which is used by the console. */ public String getName() { return name; } /** * The layer name, which is used by the console. * * @param name The layer name, which is used by the console. */ public void setName(String name) { this.name = name; } /** * The layer name, which is used by the console. *

* Returns a reference to this object so that method calls can be chained together. * * @param name The layer name, which is used by the console. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withName(String name) { this.name = name; return this; } /** * The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. * * @return The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. */ public String getShortname() { return shortname; } /** * The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. * * @param shortname The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. */ public void setShortname(String shortname) { this.shortname = shortname; } /** * The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. *

* Returns a reference to this object so that method calls can be chained together. * * @param shortname The layer short name, which is used internally by AWS OpsWorks and by * Chef recipes. The short name is also used as the name for the * directory where your app files are installed. It can have a maximum of * 200 characters, which are limited to the alphanumeric characters, '-', * '_', and '.'. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withShortname(String shortname) { this.shortname = shortname; return this; } /** * One or more user-defined key/value pairs to be added to the stack * attributes bag. * * @return One or more user-defined key/value pairs to be added to the stack * attributes bag. */ public java.util.Map getAttributes() { if (attributes == null) { attributes = new java.util.HashMap(); } return attributes; } /** * One or more user-defined key/value pairs to be added to the stack * attributes bag. * * @param attributes One or more user-defined key/value pairs to be added to the stack * attributes bag. */ public void setAttributes(java.util.Map attributes) { this.attributes = attributes; } /** * One or more user-defined key/value pairs to be added to the stack * attributes bag. *

* Returns a reference to this object so that method calls can be chained together. * * @param attributes One or more user-defined key/value pairs to be added to the stack * attributes bag. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withAttributes(java.util.Map attributes) { setAttributes(attributes); return this; } /** * One or more user-defined key/value pairs to be added to the stack * attributes bag. *

* The method adds a new key-value pair into Attributes parameter, and * returns a reference to this object so that method calls can be chained * together. * * @param key The key of the entry to be added into Attributes. * @param value The corresponding value of the entry to be added into Attributes. */ public CreateLayerRequest addAttributesEntry(String key, String value) { if (null == this.attributes) { this.attributes = new java.util.HashMap(); } if (this.attributes.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.attributes.put(key, value); return this; } /** * Removes all the entries added into Attributes. *

* Returns a reference to this object so that method calls can be chained together. */ public CreateLayerRequest clearAttributesEntries() { this.attributes = null; return this; } /** * The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. * * @return The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. */ public String getCustomInstanceProfileArn() { return customInstanceProfileArn; } /** * The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. * * @param customInstanceProfileArn The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. */ public void setCustomInstanceProfileArn(String customInstanceProfileArn) { this.customInstanceProfileArn = customInstanceProfileArn; } /** * The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. *

* Returns a reference to this object so that method calls can be chained together. * * @param customInstanceProfileArn The ARN of an IAM profile that to be used for the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withCustomInstanceProfileArn(String customInstanceProfileArn) { this.customInstanceProfileArn = customInstanceProfileArn; return this; } /** * An array containing the layer custom security group IDs. * * @return An array containing the layer custom security group IDs. */ public java.util.List getCustomSecurityGroupIds() { if (customSecurityGroupIds == null) { customSecurityGroupIds = new com.amazonaws.internal.ListWithAutoConstructFlag(); customSecurityGroupIds.setAutoConstruct(true); } return customSecurityGroupIds; } /** * An array containing the layer custom security group IDs. * * @param customSecurityGroupIds An array containing the layer custom security group IDs. */ public void setCustomSecurityGroupIds(java.util.Collection customSecurityGroupIds) { if (customSecurityGroupIds == null) { this.customSecurityGroupIds = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag customSecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(customSecurityGroupIds.size()); customSecurityGroupIdsCopy.addAll(customSecurityGroupIds); this.customSecurityGroupIds = customSecurityGroupIdsCopy; } /** * An array containing the layer custom security group IDs. *

* Returns a reference to this object so that method calls can be chained together. * * @param customSecurityGroupIds An array containing the layer custom security group IDs. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withCustomSecurityGroupIds(String... customSecurityGroupIds) { if (getCustomSecurityGroupIds() == null) setCustomSecurityGroupIds(new java.util.ArrayList(customSecurityGroupIds.length)); for (String value : customSecurityGroupIds) { getCustomSecurityGroupIds().add(value); } return this; } /** * An array containing the layer custom security group IDs. *

* Returns a reference to this object so that method calls can be chained together. * * @param customSecurityGroupIds An array containing the layer custom security group IDs. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withCustomSecurityGroupIds(java.util.Collection customSecurityGroupIds) { if (customSecurityGroupIds == null) { this.customSecurityGroupIds = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag customSecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(customSecurityGroupIds.size()); customSecurityGroupIdsCopy.addAll(customSecurityGroupIds); this.customSecurityGroupIds = customSecurityGroupIdsCopy; } return this; } /** * An array of Package objects that describe the layer * packages. * * @return An array of Package objects that describe the layer * packages. */ public java.util.List getPackages() { if (packages == null) { packages = new com.amazonaws.internal.ListWithAutoConstructFlag(); packages.setAutoConstruct(true); } return packages; } /** * An array of Package objects that describe the layer * packages. * * @param packages An array of Package objects that describe the layer * packages. */ public void setPackages(java.util.Collection packages) { if (packages == null) { this.packages = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag packagesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(packages.size()); packagesCopy.addAll(packages); this.packages = packagesCopy; } /** * An array of Package objects that describe the layer * packages. *

* Returns a reference to this object so that method calls can be chained together. * * @param packages An array of Package objects that describe the layer * packages. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withPackages(String... packages) { if (getPackages() == null) setPackages(new java.util.ArrayList(packages.length)); for (String value : packages) { getPackages().add(value); } return this; } /** * An array of Package objects that describe the layer * packages. *

* Returns a reference to this object so that method calls can be chained together. * * @param packages An array of Package objects that describe the layer * packages. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withPackages(java.util.Collection packages) { if (packages == null) { this.packages = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag packagesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(packages.size()); packagesCopy.addAll(packages); this.packages = packagesCopy; } return this; } /** * A VolumeConfigurations object that describes the layer * Amazon EBS volumes. * * @return A VolumeConfigurations object that describes the layer * Amazon EBS volumes. */ public java.util.List getVolumeConfigurations() { if (volumeConfigurations == null) { volumeConfigurations = new com.amazonaws.internal.ListWithAutoConstructFlag(); volumeConfigurations.setAutoConstruct(true); } return volumeConfigurations; } /** * A VolumeConfigurations object that describes the layer * Amazon EBS volumes. * * @param volumeConfigurations A VolumeConfigurations object that describes the layer * Amazon EBS volumes. */ public void setVolumeConfigurations(java.util.Collection volumeConfigurations) { if (volumeConfigurations == null) { this.volumeConfigurations = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag volumeConfigurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(volumeConfigurations.size()); volumeConfigurationsCopy.addAll(volumeConfigurations); this.volumeConfigurations = volumeConfigurationsCopy; } /** * A VolumeConfigurations object that describes the layer * Amazon EBS volumes. *

* Returns a reference to this object so that method calls can be chained together. * * @param volumeConfigurations A VolumeConfigurations object that describes the layer * Amazon EBS volumes. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withVolumeConfigurations(VolumeConfiguration... volumeConfigurations) { if (getVolumeConfigurations() == null) setVolumeConfigurations(new java.util.ArrayList(volumeConfigurations.length)); for (VolumeConfiguration value : volumeConfigurations) { getVolumeConfigurations().add(value); } return this; } /** * A VolumeConfigurations object that describes the layer * Amazon EBS volumes. *

* Returns a reference to this object so that method calls can be chained together. * * @param volumeConfigurations A VolumeConfigurations object that describes the layer * Amazon EBS volumes. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withVolumeConfigurations(java.util.Collection volumeConfigurations) { if (volumeConfigurations == null) { this.volumeConfigurations = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag volumeConfigurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(volumeConfigurations.size()); volumeConfigurationsCopy.addAll(volumeConfigurations); this.volumeConfigurations = volumeConfigurationsCopy; } return this; } /** * Whether to disable auto healing for the layer. * * @return Whether to disable auto healing for the layer. */ public Boolean isEnableAutoHealing() { return enableAutoHealing; } /** * Whether to disable auto healing for the layer. * * @param enableAutoHealing Whether to disable auto healing for the layer. */ public void setEnableAutoHealing(Boolean enableAutoHealing) { this.enableAutoHealing = enableAutoHealing; } /** * Whether to disable auto healing for the layer. *

* Returns a reference to this object so that method calls can be chained together. * * @param enableAutoHealing Whether to disable auto healing for the layer. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withEnableAutoHealing(Boolean enableAutoHealing) { this.enableAutoHealing = enableAutoHealing; return this; } /** * Whether to disable auto healing for the layer. * * @return Whether to disable auto healing for the layer. */ public Boolean getEnableAutoHealing() { return enableAutoHealing; } /** * Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. * * @return Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. */ public Boolean isAutoAssignElasticIps() { return autoAssignElasticIps; } /** * Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. * * @param autoAssignElasticIps Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. */ public void setAutoAssignElasticIps(Boolean autoAssignElasticIps) { this.autoAssignElasticIps = autoAssignElasticIps; } /** * Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. *

* Returns a reference to this object so that method calls can be chained together. * * @param autoAssignElasticIps Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withAutoAssignElasticIps(Boolean autoAssignElasticIps) { this.autoAssignElasticIps = autoAssignElasticIps; return this; } /** * Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. * * @return Whether to automatically assign an Elastic * IP address to the layer's instances. For more information, see How * to Edit a Layer. */ public Boolean getAutoAssignElasticIps() { return autoAssignElasticIps; } /** * For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. * * @return For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. */ public Boolean isAutoAssignPublicIps() { return autoAssignPublicIps; } /** * For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. * * @param autoAssignPublicIps For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. */ public void setAutoAssignPublicIps(Boolean autoAssignPublicIps) { this.autoAssignPublicIps = autoAssignPublicIps; } /** * For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. *

* Returns a reference to this object so that method calls can be chained together. * * @param autoAssignPublicIps For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withAutoAssignPublicIps(Boolean autoAssignPublicIps) { this.autoAssignPublicIps = autoAssignPublicIps; return this; } /** * For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. * * @return For stacks that are running in a VPC, whether to automatically assign * a public IP address to the layer's instances. For more information, * see How * to Edit a Layer. */ public Boolean getAutoAssignPublicIps() { return autoAssignPublicIps; } /** * A LayerCustomRecipes object that specifies the layer * custom recipes. * * @return A LayerCustomRecipes object that specifies the layer * custom recipes. */ public Recipes getCustomRecipes() { return customRecipes; } /** * A LayerCustomRecipes object that specifies the layer * custom recipes. * * @param customRecipes A LayerCustomRecipes object that specifies the layer * custom recipes. */ public void setCustomRecipes(Recipes customRecipes) { this.customRecipes = customRecipes; } /** * A LayerCustomRecipes object that specifies the layer * custom recipes. *

* Returns a reference to this object so that method calls can be chained together. * * @param customRecipes A LayerCustomRecipes object that specifies the layer * custom recipes. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withCustomRecipes(Recipes customRecipes) { this.customRecipes = customRecipes; return this; } /** * Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. * * @return Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. */ public Boolean isInstallUpdatesOnBoot() { return installUpdatesOnBoot; } /** * Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. * * @param installUpdatesOnBoot Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. */ public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) { this.installUpdatesOnBoot = installUpdatesOnBoot; } /** * Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. *

* Returns a reference to this object so that method calls can be chained together. * * @param installUpdatesOnBoot Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateLayerRequest withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) { this.installUpdatesOnBoot = installUpdatesOnBoot; return this; } /** * Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. * * @return Whether to install operating system and package updates when the * instance boots. The default value is true. To control * when updates are installed, set this value to false. You * must then update your instances manually by using * CreateDeployment to run the update_dependencies * stack command or manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances. We strongly * recommend using the default value of true, to ensure that * your instances have the latest security updates. */ public Boolean getInstallUpdatesOnBoot() { return installUpdatesOnBoot; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackId() != null) sb.append("StackId: " + getStackId() + ","); if (getType() != null) sb.append("Type: " + getType() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getShortname() != null) sb.append("Shortname: " + getShortname() + ","); if (getAttributes() != null) sb.append("Attributes: " + getAttributes() + ","); if (getCustomInstanceProfileArn() != null) sb.append("CustomInstanceProfileArn: " + getCustomInstanceProfileArn() + ","); if (getCustomSecurityGroupIds() != null) sb.append("CustomSecurityGroupIds: " + getCustomSecurityGroupIds() + ","); if (getPackages() != null) sb.append("Packages: " + getPackages() + ","); if (getVolumeConfigurations() != null) sb.append("VolumeConfigurations: " + getVolumeConfigurations() + ","); if (isEnableAutoHealing() != null) sb.append("EnableAutoHealing: " + isEnableAutoHealing() + ","); if (isAutoAssignElasticIps() != null) sb.append("AutoAssignElasticIps: " + isAutoAssignElasticIps() + ","); if (isAutoAssignPublicIps() != null) sb.append("AutoAssignPublicIps: " + isAutoAssignPublicIps() + ","); if (getCustomRecipes() != null) sb.append("CustomRecipes: " + getCustomRecipes() + ","); if (isInstallUpdatesOnBoot() != null) sb.append("InstallUpdatesOnBoot: " + isInstallUpdatesOnBoot() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getShortname() == null) ? 0 : getShortname().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getCustomInstanceProfileArn() == null) ? 0 : getCustomInstanceProfileArn().hashCode()); hashCode = prime * hashCode + ((getCustomSecurityGroupIds() == null) ? 0 : getCustomSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getPackages() == null) ? 0 : getPackages().hashCode()); hashCode = prime * hashCode + ((getVolumeConfigurations() == null) ? 0 : getVolumeConfigurations().hashCode()); hashCode = prime * hashCode + ((isEnableAutoHealing() == null) ? 0 : isEnableAutoHealing().hashCode()); hashCode = prime * hashCode + ((isAutoAssignElasticIps() == null) ? 0 : isAutoAssignElasticIps().hashCode()); hashCode = prime * hashCode + ((isAutoAssignPublicIps() == null) ? 0 : isAutoAssignPublicIps().hashCode()); hashCode = prime * hashCode + ((getCustomRecipes() == null) ? 0 : getCustomRecipes().hashCode()); hashCode = prime * hashCode + ((isInstallUpdatesOnBoot() == null) ? 0 : isInstallUpdatesOnBoot().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLayerRequest == false) return false; CreateLayerRequest other = (CreateLayerRequest)obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getShortname() == null ^ this.getShortname() == null) return false; if (other.getShortname() != null && other.getShortname().equals(this.getShortname()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getCustomInstanceProfileArn() == null ^ this.getCustomInstanceProfileArn() == null) return false; if (other.getCustomInstanceProfileArn() != null && other.getCustomInstanceProfileArn().equals(this.getCustomInstanceProfileArn()) == false) return false; if (other.getCustomSecurityGroupIds() == null ^ this.getCustomSecurityGroupIds() == null) return false; if (other.getCustomSecurityGroupIds() != null && other.getCustomSecurityGroupIds().equals(this.getCustomSecurityGroupIds()) == false) return false; if (other.getPackages() == null ^ this.getPackages() == null) return false; if (other.getPackages() != null && other.getPackages().equals(this.getPackages()) == false) return false; if (other.getVolumeConfigurations() == null ^ this.getVolumeConfigurations() == null) return false; if (other.getVolumeConfigurations() != null && other.getVolumeConfigurations().equals(this.getVolumeConfigurations()) == false) return false; if (other.isEnableAutoHealing() == null ^ this.isEnableAutoHealing() == null) return false; if (other.isEnableAutoHealing() != null && other.isEnableAutoHealing().equals(this.isEnableAutoHealing()) == false) return false; if (other.isAutoAssignElasticIps() == null ^ this.isAutoAssignElasticIps() == null) return false; if (other.isAutoAssignElasticIps() != null && other.isAutoAssignElasticIps().equals(this.isAutoAssignElasticIps()) == false) return false; if (other.isAutoAssignPublicIps() == null ^ this.isAutoAssignPublicIps() == null) return false; if (other.isAutoAssignPublicIps() != null && other.isAutoAssignPublicIps().equals(this.isAutoAssignPublicIps()) == false) return false; if (other.getCustomRecipes() == null ^ this.getCustomRecipes() == null) return false; if (other.getCustomRecipes() != null && other.getCustomRecipes().equals(this.getCustomRecipes()) == false) return false; if (other.isInstallUpdatesOnBoot() == null ^ this.isInstallUpdatesOnBoot() == null) return false; if (other.isInstallUpdatesOnBoot() != null && other.isInstallUpdatesOnBoot().equals(this.isInstallUpdatesOnBoot()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy