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

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

/*
 * Copyright 2013-2018 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 javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The layer ID. *

*/ private String layerId; /** *

* The layer name, which is used by the console. *

*/ private String name; /** *

* For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS * OpsWorks Stacks and 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/. *

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference *

*/ private String shortname; /** *

* One or more user-defined key/value pairs to be added to the stack attributes. *

*/ private com.amazonaws.internal.SdkInternalMap attributes; /** *

* Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. *

*/ private CloudWatchLogsConfiguration cloudWatchLogsConfiguration; /** *

* 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; /** *

* A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the * layer's instances. For more information, see Using Custom * JSON. *

*/ private String customJson; /** *

* An array containing the layer's custom security group IDs. *

*/ private com.amazonaws.internal.SdkInternalList customSecurityGroupIds; /** *

* An array of Package objects that describe the layer's packages. *

*/ private com.amazonaws.internal.SdkInternalList packages; /** *

* A VolumeConfigurations object that describes the layer's Amazon EBS volumes. *

*/ private com.amazonaws.internal.SdkInternalList 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; /**

*/ private LifecycleEventConfiguration lifecycleEventConfiguration; /** *

* The layer ID. *

* * @param layerId * The layer ID. */ public void setLayerId(String layerId) { this.layerId = layerId; } /** *

* The layer ID. *

* * @return The layer ID. */ public String getLayerId() { return this.layerId; } /** *

* The layer ID. *

* * @param layerId * The layer ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withLayerId(String layerId) { setLayerId(layerId); return this; } /** *

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

* * @return The layer name, which is used by the console. */ public String getName() { return this.name; } /** *

* The layer name, which is used by the console. *

* * @param name * The layer name, which is used by the console. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withName(String name) { setName(name); return this; } /** *

* For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS * OpsWorks Stacks and 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/. *

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference *

* * @param shortname * For custom layers only, use this parameter to specify the layer's short name, which is used internally by * AWS OpsWorks Stacks and 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/.

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference */ public void setShortname(String shortname) { this.shortname = shortname; } /** *

* For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS * OpsWorks Stacks and 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/. *

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference *

* * @return For custom layers only, use this parameter to specify the layer's short name, which is used internally by * AWS OpsWorks Stacks and 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/.

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference */ public String getShortname() { return this.shortname; } /** *

* For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS * OpsWorks Stacks and 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/. *

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference *

* * @param shortname * For custom layers only, use this parameter to specify the layer's short name, which is used internally by * AWS OpsWorks Stacks and 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/.

*

* The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withShortname(String shortname) { setShortname(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 com.amazonaws.internal.SdkInternalMap(); } 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 == null ? null : new com.amazonaws.internal.SdkInternalMap(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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withAttributes(java.util.Map attributes) { setAttributes(attributes); return this; } public UpdateLayerRequest addAttributesEntry(String key, String value) { if (null == this.attributes) { this.attributes = new com.amazonaws.internal.SdkInternalMap(); } 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. * * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest clearAttributesEntries() { this.attributes = null; return this; } /** *

* Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. *

* * @param cloudWatchLogsConfiguration * Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. */ public void setCloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration) { this.cloudWatchLogsConfiguration = cloudWatchLogsConfiguration; } /** *

* Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. *

* * @return Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. */ public CloudWatchLogsConfiguration getCloudWatchLogsConfiguration() { return this.cloudWatchLogsConfiguration; } /** *

* Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. *

* * @param cloudWatchLogsConfiguration * Specifies CloudWatch Logs configuration options for the layer. For more information, see * CloudWatchLogsLogStream. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withCloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration) { setCloudWatchLogsConfiguration(cloudWatchLogsConfiguration); 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. *

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

* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withCustomInstanceProfileArn(String customInstanceProfileArn) { setCustomInstanceProfileArn(customInstanceProfileArn); return this; } /** *

* A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the * layer's instances. For more information, see Using Custom * JSON. *

* * @param customJson * A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on * the layer's instances. For more information, see Using * Custom JSON. */ public void setCustomJson(String customJson) { this.customJson = customJson; } /** *

* A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the * layer's instances. For more information, see Using Custom * JSON. *

* * @return A JSON-formatted string containing custom stack configuration and deployment attributes to be installed * on the layer's instances. For more information, see Using * Custom JSON. */ public String getCustomJson() { return this.customJson; } /** *

* A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the * layer's instances. For more information, see Using Custom * JSON. *

* * @param customJson * A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on * the layer's instances. For more information, see Using * Custom JSON. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withCustomJson(String customJson) { setCustomJson(customJson); 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.SdkInternalList(); } 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; } this.customSecurityGroupIds = new com.amazonaws.internal.SdkInternalList(customSecurityGroupIds); } /** *

* An array containing the layer's custom security group IDs. *

*

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

* * @param customSecurityGroupIds * An array containing the layer's custom security group IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withCustomSecurityGroupIds(String... customSecurityGroupIds) { if (this.customSecurityGroupIds == null) { setCustomSecurityGroupIds(new com.amazonaws.internal.SdkInternalList(customSecurityGroupIds.length)); } for (String ele : customSecurityGroupIds) { this.customSecurityGroupIds.add(ele); } return this; } /** *

* An array containing the layer's custom security group IDs. *

* * @param customSecurityGroupIds * An array containing the layer's custom security group IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withCustomSecurityGroupIds(java.util.Collection customSecurityGroupIds) { setCustomSecurityGroupIds(customSecurityGroupIds); 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.SdkInternalList(); } 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; } this.packages = new com.amazonaws.internal.SdkInternalList(packages); } /** *

* An array of Package objects that describe the layer's packages. *

*

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

* * @param packages * An array of Package objects that describe the layer's packages. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withPackages(String... packages) { if (this.packages == null) { setPackages(new com.amazonaws.internal.SdkInternalList(packages.length)); } for (String ele : packages) { this.packages.add(ele); } return this; } /** *

* An array of Package objects that describe the layer's packages. *

* * @param packages * An array of Package objects that describe the layer's packages. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withPackages(java.util.Collection packages) { setPackages(packages); 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.SdkInternalList(); } 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; } this.volumeConfigurations = new com.amazonaws.internal.SdkInternalList(volumeConfigurations); } /** *

* A VolumeConfigurations object that describes the layer's Amazon EBS volumes. *

*

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

* * @param volumeConfigurations * A VolumeConfigurations object that describes the layer's Amazon EBS volumes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withVolumeConfigurations(VolumeConfiguration... volumeConfigurations) { if (this.volumeConfigurations == null) { setVolumeConfigurations(new com.amazonaws.internal.SdkInternalList(volumeConfigurations.length)); } for (VolumeConfiguration ele : volumeConfigurations) { this.volumeConfigurations.add(ele); } return this; } /** *

* A VolumeConfigurations object that describes the layer's Amazon EBS volumes. *

* * @param volumeConfigurations * A VolumeConfigurations object that describes the layer's Amazon EBS volumes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withVolumeConfigurations(java.util.Collection volumeConfigurations) { setVolumeConfigurations(volumeConfigurations); return this; } /** *

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

* * @return Whether to disable auto healing for the layer. */ public Boolean getEnableAutoHealing() { return this.enableAutoHealing; } /** *

* Whether to disable auto healing for the layer. *

* * @param enableAutoHealing * Whether to disable auto healing for the layer. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withEnableAutoHealing(Boolean enableAutoHealing) { setEnableAutoHealing(enableAutoHealing); return this; } /** *

* Whether to disable auto healing for the layer. *

* * @return Whether to disable auto healing for the layer. */ public Boolean isEnableAutoHealing() { return this.enableAutoHealing; } /** *

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

* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withAutoAssignElasticIps(Boolean autoAssignElasticIps) { setAutoAssignElasticIps(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 isAutoAssignElasticIps() { return this.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. *

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

* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withAutoAssignPublicIps(Boolean autoAssignPublicIps) { setAutoAssignPublicIps(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 isAutoAssignPublicIps() { return this.autoAssignPublicIps; } /** *

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

* * @return A LayerCustomRecipes object that specifies the layer's custom recipes. */ public Recipes getCustomRecipes() { return this.customRecipes; } /** *

* A LayerCustomRecipes object that specifies the layer's custom recipes. *

* * @param customRecipes * A LayerCustomRecipes object that specifies the layer's custom recipes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withCustomRecipes(Recipes customRecipes) { setCustomRecipes(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. *

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

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

* @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) { setInstallUpdatesOnBoot(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 isInstallUpdatesOnBoot() { return this.installUpdatesOnBoot; } /** *

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

* * @return Whether to use Amazon EBS-optimized instances. */ public Boolean getUseEbsOptimizedInstances() { return this.useEbsOptimizedInstances; } /** *

* Whether to use Amazon EBS-optimized instances. *

* * @param useEbsOptimizedInstances * Whether to use Amazon EBS-optimized instances. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances) { setUseEbsOptimizedInstances(useEbsOptimizedInstances); return this; } /** *

* Whether to use Amazon EBS-optimized instances. *

* * @return Whether to use Amazon EBS-optimized instances. */ public Boolean isUseEbsOptimizedInstances() { return this.useEbsOptimizedInstances; } /** *

* * @param lifecycleEventConfiguration */ public void setLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration) { this.lifecycleEventConfiguration = lifecycleEventConfiguration; } /** *

* * @return */ public LifecycleEventConfiguration getLifecycleEventConfiguration() { return this.lifecycleEventConfiguration; } /** *

* * @param lifecycleEventConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLayerRequest withLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration) { setLifecycleEventConfiguration(lifecycleEventConfiguration); return this; } /** * 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: ").append(getLayerId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getShortname() != null) sb.append("Shortname: ").append(getShortname()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getCloudWatchLogsConfiguration() != null) sb.append("CloudWatchLogsConfiguration: ").append(getCloudWatchLogsConfiguration()).append(","); if (getCustomInstanceProfileArn() != null) sb.append("CustomInstanceProfileArn: ").append(getCustomInstanceProfileArn()).append(","); if (getCustomJson() != null) sb.append("CustomJson: ").append(getCustomJson()).append(","); if (getCustomSecurityGroupIds() != null) sb.append("CustomSecurityGroupIds: ").append(getCustomSecurityGroupIds()).append(","); if (getPackages() != null) sb.append("Packages: ").append(getPackages()).append(","); if (getVolumeConfigurations() != null) sb.append("VolumeConfigurations: ").append(getVolumeConfigurations()).append(","); if (getEnableAutoHealing() != null) sb.append("EnableAutoHealing: ").append(getEnableAutoHealing()).append(","); if (getAutoAssignElasticIps() != null) sb.append("AutoAssignElasticIps: ").append(getAutoAssignElasticIps()).append(","); if (getAutoAssignPublicIps() != null) sb.append("AutoAssignPublicIps: ").append(getAutoAssignPublicIps()).append(","); if (getCustomRecipes() != null) sb.append("CustomRecipes: ").append(getCustomRecipes()).append(","); if (getInstallUpdatesOnBoot() != null) sb.append("InstallUpdatesOnBoot: ").append(getInstallUpdatesOnBoot()).append(","); if (getUseEbsOptimizedInstances() != null) sb.append("UseEbsOptimizedInstances: ").append(getUseEbsOptimizedInstances()).append(","); if (getLifecycleEventConfiguration() != null) sb.append("LifecycleEventConfiguration: ").append(getLifecycleEventConfiguration()); sb.append("}"); return sb.toString(); } @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.getCloudWatchLogsConfiguration() == null ^ this.getCloudWatchLogsConfiguration() == null) return false; if (other.getCloudWatchLogsConfiguration() != null && other.getCloudWatchLogsConfiguration().equals(this.getCloudWatchLogsConfiguration()) == 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.getCustomJson() == null ^ this.getCustomJson() == null) return false; if (other.getCustomJson() != null && other.getCustomJson().equals(this.getCustomJson()) == 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.getEnableAutoHealing() == null ^ this.getEnableAutoHealing() == null) return false; if (other.getEnableAutoHealing() != null && other.getEnableAutoHealing().equals(this.getEnableAutoHealing()) == false) return false; if (other.getAutoAssignElasticIps() == null ^ this.getAutoAssignElasticIps() == null) return false; if (other.getAutoAssignElasticIps() != null && other.getAutoAssignElasticIps().equals(this.getAutoAssignElasticIps()) == false) return false; if (other.getAutoAssignPublicIps() == null ^ this.getAutoAssignPublicIps() == null) return false; if (other.getAutoAssignPublicIps() != null && other.getAutoAssignPublicIps().equals(this.getAutoAssignPublicIps()) == 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.getInstallUpdatesOnBoot() == null ^ this.getInstallUpdatesOnBoot() == null) return false; if (other.getInstallUpdatesOnBoot() != null && other.getInstallUpdatesOnBoot().equals(this.getInstallUpdatesOnBoot()) == false) return false; if (other.getUseEbsOptimizedInstances() == null ^ this.getUseEbsOptimizedInstances() == null) return false; if (other.getUseEbsOptimizedInstances() != null && other.getUseEbsOptimizedInstances().equals(this.getUseEbsOptimizedInstances()) == false) return false; if (other.getLifecycleEventConfiguration() == null ^ this.getLifecycleEventConfiguration() == null) return false; if (other.getLifecycleEventConfiguration() != null && other.getLifecycleEventConfiguration().equals(this.getLifecycleEventConfiguration()) == false) return false; return true; } @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 + ((getCloudWatchLogsConfiguration() == null) ? 0 : getCloudWatchLogsConfiguration().hashCode()); hashCode = prime * hashCode + ((getCustomInstanceProfileArn() == null) ? 0 : getCustomInstanceProfileArn().hashCode()); hashCode = prime * hashCode + ((getCustomJson() == null) ? 0 : getCustomJson().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 + ((getEnableAutoHealing() == null) ? 0 : getEnableAutoHealing().hashCode()); hashCode = prime * hashCode + ((getAutoAssignElasticIps() == null) ? 0 : getAutoAssignElasticIps().hashCode()); hashCode = prime * hashCode + ((getAutoAssignPublicIps() == null) ? 0 : getAutoAssignPublicIps().hashCode()); hashCode = prime * hashCode + ((getCustomRecipes() == null) ? 0 : getCustomRecipes().hashCode()); hashCode = prime * hashCode + ((getInstallUpdatesOnBoot() == null) ? 0 : getInstallUpdatesOnBoot().hashCode()); hashCode = prime * hashCode + ((getUseEbsOptimizedInstances() == null) ? 0 : getUseEbsOptimizedInstances().hashCode()); hashCode = prime * hashCode + ((getLifecycleEventConfiguration() == null) ? 0 : getLifecycleEventConfiguration().hashCode()); return hashCode; } @Override public UpdateLayerRequest clone() { return (UpdateLayerRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy