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

com.amazonaws.services.autoscaling.model.InstancesDistribution Maven / Gradle / Ivy

/*
 * Copyright 2016-2021 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.autoscaling.model;

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

/**
 * 

* Describes an instances distribution for an Auto Scaling group with a MixedInstancesPolicy. *

*

* The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to * pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot * capacities. *

*

* When you update SpotAllocationStrategy, SpotInstancePools, or SpotMaxPrice, * this update action does not deploy any changes across the running Amazon EC2 instances in the group. Your existing * Spot Instances continue to run as long as the maximum price for those instances is higher than the current Spot * price. When scale out occurs, Amazon EC2 Auto Scaling launches instances based on the new settings. When scale in * occurs, Amazon EC2 Auto Scaling terminates instances according to the group's termination policies. *

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

* Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types in the * LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type * in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your * highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority * instance type, and so on. *

*/ private String onDemandAllocationStrategy; /** *

* The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base * portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the * instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of * capacity units, and not the number of instances. *

*/ private Integer onDemandBaseCapacity; /** *

* Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% * Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned. *

*/ private Integer onDemandPercentageAboveBaseCapacity; /** *

* Indicates how to allocate instances across Spot Instance pools. *

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot * pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you * specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches * instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can * use capacity-optimized-prioritized and set the order of instance types in the list of launch * template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling * honors the instance type priorities on a best-effort basis but optimizes for capacity first. *

*/ private String spotAllocationStrategy; /** *

* The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined * from the different instance types in the overrides. Valid only when the Spot allocation strategy is * lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified. *

*/ private Integer spotInstancePools; /** *

* The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its * default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value * that you previously set, include the property but specify an empty string ("") for the value. *

*/ private String spotMaxPrice; /** *

* Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types in the * LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type * in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your * highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority * instance type, and so on. *

* * @param onDemandAllocationStrategy * Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types * in the LaunchTemplateOverrides to define the launch priority of each instance type. The first * instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be * fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining * capacity using the second priority instance type, and so on. */ public void setOnDemandAllocationStrategy(String onDemandAllocationStrategy) { this.onDemandAllocationStrategy = onDemandAllocationStrategy; } /** *

* Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types in the * LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type * in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your * highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority * instance type, and so on. *

* * @return Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types * in the LaunchTemplateOverrides to define the launch priority of each instance type. The * first instance type in the array is prioritized higher than the last. If all your On-Demand capacity * cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the * remaining capacity using the second priority instance type, and so on. */ public String getOnDemandAllocationStrategy() { return this.onDemandAllocationStrategy; } /** *

* Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types in the * LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type * in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your * highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority * instance type, and so on. *

* * @param onDemandAllocationStrategy * Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is * prioritized, which is also the default value. This strategy uses the order of instance types * in the LaunchTemplateOverrides to define the launch priority of each instance type. The first * instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be * fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining * capacity using the second priority instance type, and so on. * @return Returns a reference to this object so that method calls can be chained together. */ public InstancesDistribution withOnDemandAllocationStrategy(String onDemandAllocationStrategy) { setOnDemandAllocationStrategy(onDemandAllocationStrategy); return this; } /** *

* The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base * portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the * instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of * capacity units, and not the number of instances. *

* * @param onDemandBaseCapacity * The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. * This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you * specify weights for the instance types in the overrides, set the value of * OnDemandBaseCapacity in terms of the number of capacity units, and not the number of * instances. */ public void setOnDemandBaseCapacity(Integer onDemandBaseCapacity) { this.onDemandBaseCapacity = onDemandBaseCapacity; } /** *

* The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base * portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the * instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of * capacity units, and not the number of instances. *

* * @return The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. * This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you * specify weights for the instance types in the overrides, set the value of * OnDemandBaseCapacity in terms of the number of capacity units, and not the number of * instances. */ public Integer getOnDemandBaseCapacity() { return this.onDemandBaseCapacity; } /** *

* The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base * portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the * instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of * capacity units, and not the number of instances. *

* * @param onDemandBaseCapacity * The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. * This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you * specify weights for the instance types in the overrides, set the value of * OnDemandBaseCapacity in terms of the number of capacity units, and not the number of * instances. * @return Returns a reference to this object so that method calls can be chained together. */ public InstancesDistribution withOnDemandBaseCapacity(Integer onDemandBaseCapacity) { setOnDemandBaseCapacity(onDemandBaseCapacity); return this; } /** *

* Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% * Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned. *

* * @param onDemandPercentageAboveBaseCapacity * Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand * Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances * are provisioned. */ public void setOnDemandPercentageAboveBaseCapacity(Integer onDemandPercentageAboveBaseCapacity) { this.onDemandPercentageAboveBaseCapacity = onDemandPercentageAboveBaseCapacity; } /** *

* Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% * Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned. *

* * @return Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand * Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances * are provisioned. */ public Integer getOnDemandPercentageAboveBaseCapacity() { return this.onDemandPercentageAboveBaseCapacity; } /** *

* Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% * Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned. *

* * @param onDemandPercentageAboveBaseCapacity * Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond * OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand * Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances * are provisioned. * @return Returns a reference to this object so that method calls can be chained together. */ public InstancesDistribution withOnDemandPercentageAboveBaseCapacity(Integer onDemandPercentageAboveBaseCapacity) { setOnDemandPercentageAboveBaseCapacity(onDemandPercentageAboveBaseCapacity); return this; } /** *

* Indicates how to allocate instances across Spot Instance pools. *

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot * pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you * specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches * instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can * use capacity-optimized-prioritized and set the order of instance types in the list of launch * template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling * honors the instance type priorities on a best-effort basis but optimizes for capacity first. *

* * @param spotAllocationStrategy * Indicates how to allocate instances across Spot Instance pools.

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using * the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools * that you specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group * launches instances using Spot pools that are optimally chosen based on the available Spot capacity. * Alternatively, you can use capacity-optimized-prioritized and set the order of instance types * in the list of launch template overrides from highest to lowest priority (from first to last in the list). * Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for * capacity first. */ public void setSpotAllocationStrategy(String spotAllocationStrategy) { this.spotAllocationStrategy = spotAllocationStrategy; } /** *

* Indicates how to allocate instances across Spot Instance pools. *

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot * pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you * specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches * instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can * use capacity-optimized-prioritized and set the order of instance types in the list of launch * template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling * honors the instance type priorities on a best-effort basis but optimizes for capacity first. *

* * @return Indicates how to allocate instances across Spot Instance pools.

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using * the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools * that you specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group * launches instances using Spot pools that are optimally chosen based on the available Spot capacity. * Alternatively, you can use capacity-optimized-prioritized and set the order of instance * types in the list of launch template overrides from highest to lowest priority (from first to last in the * list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes * for capacity first. */ public String getSpotAllocationStrategy() { return this.spotAllocationStrategy; } /** *

* Indicates how to allocate instances across Spot Instance pools. *

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot * pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you * specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches * instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can * use capacity-optimized-prioritized and set the order of instance types in the list of launch * template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling * honors the instance type priorities on a best-effort basis but optimizes for capacity first. *

* * @param spotAllocationStrategy * Indicates how to allocate instances across Spot Instance pools.

*

* If the allocation strategy is lowest-price, the Auto Scaling group launches instances using * the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools * that you specify. Defaults to lowest-price if not specified. *

*

* If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group * launches instances using Spot pools that are optimally chosen based on the available Spot capacity. * Alternatively, you can use capacity-optimized-prioritized and set the order of instance types * in the list of launch template overrides from highest to lowest priority (from first to last in the list). * Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for * capacity first. * @return Returns a reference to this object so that method calls can be chained together. */ public InstancesDistribution withSpotAllocationStrategy(String spotAllocationStrategy) { setSpotAllocationStrategy(spotAllocationStrategy); return this; } /** *

* The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined * from the different instance types in the overrides. Valid only when the Spot allocation strategy is * lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified. *

* * @param spotInstancePools * The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are * determined from the different instance types in the overrides. Valid only when the Spot allocation * strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not * specified. */ public void setSpotInstancePools(Integer spotInstancePools) { this.spotInstancePools = spotInstancePools; } /** *

* The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined * from the different instance types in the overrides. Valid only when the Spot allocation strategy is * lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified. *

* * @return The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are * determined from the different instance types in the overrides. Valid only when the Spot allocation * strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not * specified. */ public Integer getSpotInstancePools() { return this.spotInstancePools; } /** *

* The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined * from the different instance types in the overrides. Valid only when the Spot allocation strategy is * lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified. *

* * @param spotInstancePools * The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are * determined from the different instance types in the overrides. Valid only when the Spot allocation * strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not * specified. * @return Returns a reference to this object so that method calls can be chained together. */ public InstancesDistribution withSpotInstancePools(Integer spotInstancePools) { setSpotInstancePools(spotInstancePools); return this; } /** *

* The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its * default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value * that you previously set, include the property but specify an empty string ("") for the value. *

* * @param spotMaxPrice * The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at * its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove * a value that you previously set, include the property but specify an empty string ("") for the value. */ public void setSpotMaxPrice(String spotMaxPrice) { this.spotMaxPrice = spotMaxPrice; } /** *

* The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its * default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value * that you previously set, include the property but specify an empty string ("") for the value. *

* * @return The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value * at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To * remove a value that you previously set, include the property but specify an empty string ("") for the * value. */ public String getSpotMaxPrice() { return this.spotMaxPrice; } /** *

* The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its * default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value * that you previously set, include the property but specify an empty string ("") for the value. *

* * @param spotMaxPrice * The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at * its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove * a value that you previously set, include the property but specify an empty string ("") for the value. * @return Returns a reference to this object so that method calls can be chained together. */ public InstancesDistribution withSpotMaxPrice(String spotMaxPrice) { setSpotMaxPrice(spotMaxPrice); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getOnDemandAllocationStrategy() != null) sb.append("OnDemandAllocationStrategy: ").append(getOnDemandAllocationStrategy()).append(","); if (getOnDemandBaseCapacity() != null) sb.append("OnDemandBaseCapacity: ").append(getOnDemandBaseCapacity()).append(","); if (getOnDemandPercentageAboveBaseCapacity() != null) sb.append("OnDemandPercentageAboveBaseCapacity: ").append(getOnDemandPercentageAboveBaseCapacity()).append(","); if (getSpotAllocationStrategy() != null) sb.append("SpotAllocationStrategy: ").append(getSpotAllocationStrategy()).append(","); if (getSpotInstancePools() != null) sb.append("SpotInstancePools: ").append(getSpotInstancePools()).append(","); if (getSpotMaxPrice() != null) sb.append("SpotMaxPrice: ").append(getSpotMaxPrice()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstancesDistribution == false) return false; InstancesDistribution other = (InstancesDistribution) obj; if (other.getOnDemandAllocationStrategy() == null ^ this.getOnDemandAllocationStrategy() == null) return false; if (other.getOnDemandAllocationStrategy() != null && other.getOnDemandAllocationStrategy().equals(this.getOnDemandAllocationStrategy()) == false) return false; if (other.getOnDemandBaseCapacity() == null ^ this.getOnDemandBaseCapacity() == null) return false; if (other.getOnDemandBaseCapacity() != null && other.getOnDemandBaseCapacity().equals(this.getOnDemandBaseCapacity()) == false) return false; if (other.getOnDemandPercentageAboveBaseCapacity() == null ^ this.getOnDemandPercentageAboveBaseCapacity() == null) return false; if (other.getOnDemandPercentageAboveBaseCapacity() != null && other.getOnDemandPercentageAboveBaseCapacity().equals(this.getOnDemandPercentageAboveBaseCapacity()) == false) return false; if (other.getSpotAllocationStrategy() == null ^ this.getSpotAllocationStrategy() == null) return false; if (other.getSpotAllocationStrategy() != null && other.getSpotAllocationStrategy().equals(this.getSpotAllocationStrategy()) == false) return false; if (other.getSpotInstancePools() == null ^ this.getSpotInstancePools() == null) return false; if (other.getSpotInstancePools() != null && other.getSpotInstancePools().equals(this.getSpotInstancePools()) == false) return false; if (other.getSpotMaxPrice() == null ^ this.getSpotMaxPrice() == null) return false; if (other.getSpotMaxPrice() != null && other.getSpotMaxPrice().equals(this.getSpotMaxPrice()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOnDemandAllocationStrategy() == null) ? 0 : getOnDemandAllocationStrategy().hashCode()); hashCode = prime * hashCode + ((getOnDemandBaseCapacity() == null) ? 0 : getOnDemandBaseCapacity().hashCode()); hashCode = prime * hashCode + ((getOnDemandPercentageAboveBaseCapacity() == null) ? 0 : getOnDemandPercentageAboveBaseCapacity().hashCode()); hashCode = prime * hashCode + ((getSpotAllocationStrategy() == null) ? 0 : getSpotAllocationStrategy().hashCode()); hashCode = prime * hashCode + ((getSpotInstancePools() == null) ? 0 : getSpotInstancePools().hashCode()); hashCode = prime * hashCode + ((getSpotMaxPrice() == null) ? 0 : getSpotMaxPrice().hashCode()); return hashCode; } @Override public InstancesDistribution clone() { try { return (InstancesDistribution) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy