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

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

/*
 * 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#updateLayer(UpdateLayerRequest) UpdateLayer operation}.
 * 

* Updates a specified layer. *

*

* 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#updateLayer(UpdateLayerRequest) */ public class UpdateLayerRequest extends AmazonWebServiceRequest implements Serializable { /** * The layer ID. */ private String layerId; /** * The layer name, which is used by the console. */ private String name; /** * The layer short name, which is used internally by AWS OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. */ private String shortname; /** * One or more user-defined key/value pairs to be added to the stack * attributes. */ private java.util.Map attributes; /** * The ARN of an IAM profile to be used for all of the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. */ private String customInstanceProfileArn; /** * An array containing the layer's custom security group IDs. */ private com.amazonaws.internal.ListWithAutoConstructFlag customSecurityGroupIds; /** * An array of Package objects that describe the layer's * packages. */ private com.amazonaws.internal.ListWithAutoConstructFlag packages; /** * A VolumeConfigurations object that describes the layer's * 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's * 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; /** * Whether to use Amazon EBS-optimized instances. */ private Boolean useEbsOptimizedInstances; /** * The layer ID. * * @return The layer ID. */ public String getLayerId() { return layerId; } /** * The layer ID. * * @param layerId The layer ID. */ public void setLayerId(String layerId) { this.layerId = layerId; } /** * The layer ID. *

* Returns a reference to this object so that method calls can be chained together. * * @param layerId The layer ID. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest withLayerId(String layerId) { this.layerId = layerId; 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 UpdateLayerRequest withName(String name) { this.name = name; return this; } /** * The layer short name, which is used internally by AWS OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. * * @return The layer short name, which is used internally by AWS OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. */ public String getShortname() { return shortname; } /** * The layer short name, which is used internally by AWS OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. * * @param shortname The layer short name, which is used internally by AWS OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. */ public void setShortname(String shortname) { this.shortname = shortname; } /** * The layer short name, which is used internally by AWS OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. *

* 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 OpsWorksand by * Chef. 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 * and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest withShortname(String shortname) { this.shortname = shortname; return this; } /** * One or more user-defined key/value pairs to be added to the stack * attributes. * * @return One or more user-defined key/value pairs to be added to the stack * attributes. */ 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. * * @param attributes One or more user-defined key/value pairs to be added to the stack * attributes. */ 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. *

* 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest withAttributes(java.util.Map attributes) { setAttributes(attributes); return this; } /** * One or more user-defined key/value pairs to be added to the stack * attributes. *

* 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 UpdateLayerRequest 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 UpdateLayerRequest clearAttributesEntries() { this.attributes = null; return this; } /** * The ARN of an IAM profile to be used for all of the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. * * @return The ARN of an IAM profile to be used for all of 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 to be used for all of the layer's EC2 * instances. For more information about IAM ARNs, see Using * Identifiers. * * @param customInstanceProfileArn The ARN of an IAM profile to be used for all of 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 to be used for all of 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 to be used for all of 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 UpdateLayerRequest withCustomInstanceProfileArn(String customInstanceProfileArn) { this.customInstanceProfileArn = customInstanceProfileArn; return this; } /** * An array containing the layer's custom security group IDs. * * @return An array containing the layer's 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's custom security group IDs. * * @param customSecurityGroupIds An array containing the layer's 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's 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's custom security group IDs. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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's 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's custom security group IDs. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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's * packages. * * @return An array of Package objects that describe the layer's * 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's * packages. * * @param packages An array of Package objects that describe the layer's * 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's * 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's * packages. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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's * 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's * packages. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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's * Amazon EBS volumes. * * @return A VolumeConfigurations object that describes the layer's * 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's * Amazon EBS volumes. * * @param volumeConfigurations A VolumeConfigurations object that describes the layer's * 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's * 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's * Amazon EBS volumes. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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's * 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's * Amazon EBS volumes. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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 UpdateLayerRequest 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 UpdateLayerRequest 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 UpdateLayerRequest 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's * custom recipes. * * @return A LayerCustomRecipes object that specifies the layer's * custom recipes. */ public Recipes getCustomRecipes() { return customRecipes; } /** * A LayerCustomRecipes object that specifies the layer's * custom recipes. * * @param customRecipes A LayerCustomRecipes object that specifies the layer's * custom recipes. */ public void setCustomRecipes(Recipes customRecipes) { this.customRecipes = customRecipes; } /** * A LayerCustomRecipes object that specifies the layer's * 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's * custom recipes. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest 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 UpdateLayerRequest 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; } /** * Whether to use Amazon EBS-optimized instances. * * @return Whether to use Amazon EBS-optimized instances. */ public Boolean isUseEbsOptimizedInstances() { return useEbsOptimizedInstances; } /** * Whether to use Amazon EBS-optimized instances. * * @param useEbsOptimizedInstances Whether to use Amazon EBS-optimized instances. */ public void setUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances) { this.useEbsOptimizedInstances = useEbsOptimizedInstances; } /** * Whether to use Amazon EBS-optimized instances. *

* Returns a reference to this object so that method calls can be chained together. * * @param useEbsOptimizedInstances Whether to use Amazon EBS-optimized instances. * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateLayerRequest withUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances) { this.useEbsOptimizedInstances = useEbsOptimizedInstances; return this; } /** * Whether to use Amazon EBS-optimized instances. * * @return Whether to use Amazon EBS-optimized instances. */ public Boolean getUseEbsOptimizedInstances() { return useEbsOptimizedInstances; } /** * 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 (getLayerId() != null) sb.append("LayerId: " + getLayerId() + ","); 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() + ","); if (isUseEbsOptimizedInstances() != null) sb.append("UseEbsOptimizedInstances: " + isUseEbsOptimizedInstances() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLayerId() == null) ? 0 : getLayerId().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()); hashCode = prime * hashCode + ((isUseEbsOptimizedInstances() == null) ? 0 : isUseEbsOptimizedInstances().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateLayerRequest == false) return false; UpdateLayerRequest other = (UpdateLayerRequest)obj; if (other.getLayerId() == null ^ this.getLayerId() == null) return false; if (other.getLayerId() != null && other.getLayerId().equals(this.getLayerId()) == 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; if (other.isUseEbsOptimizedInstances() == null ^ this.isUseEbsOptimizedInstances() == null) return false; if (other.isUseEbsOptimizedInstances() != null && other.isUseEbsOptimizedInstances().equals(this.isUseEbsOptimizedInstances()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy