/* * Copyright 2018-2023 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes the vCPU configurations for the instance type. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VCpuInfo implements Serializable, Cloneable { /** ** The default number of vCPUs for the instance type. *
*/ private Integer defaultVCpus; /** ** The default number of cores for the instance type. *
*/ private Integer defaultCores; /** ** The default number of threads per core for the instance type. *
*/ private Integer defaultThreadsPerCore; /** ** The valid number of cores that can be configured for the instance type. *
*/ private com.amazonaws.internal.SdkInternalList* The valid number of threads per core that can be configured for the instance type. *
*/ private com.amazonaws.internal.SdkInternalList* The default number of vCPUs for the instance type. *
* * @param defaultVCpus * The default number of vCPUs for the instance type. */ public void setDefaultVCpus(Integer defaultVCpus) { this.defaultVCpus = defaultVCpus; } /** ** The default number of vCPUs for the instance type. *
* * @return The default number of vCPUs for the instance type. */ public Integer getDefaultVCpus() { return this.defaultVCpus; } /** ** The default number of vCPUs for the instance type. *
* * @param defaultVCpus * The default number of vCPUs for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withDefaultVCpus(Integer defaultVCpus) { setDefaultVCpus(defaultVCpus); return this; } /** ** The default number of cores for the instance type. *
* * @param defaultCores * The default number of cores for the instance type. */ public void setDefaultCores(Integer defaultCores) { this.defaultCores = defaultCores; } /** ** The default number of cores for the instance type. *
* * @return The default number of cores for the instance type. */ public Integer getDefaultCores() { return this.defaultCores; } /** ** The default number of cores for the instance type. *
* * @param defaultCores * The default number of cores for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withDefaultCores(Integer defaultCores) { setDefaultCores(defaultCores); return this; } /** ** The default number of threads per core for the instance type. *
* * @param defaultThreadsPerCore * The default number of threads per core for the instance type. */ public void setDefaultThreadsPerCore(Integer defaultThreadsPerCore) { this.defaultThreadsPerCore = defaultThreadsPerCore; } /** ** The default number of threads per core for the instance type. *
* * @return The default number of threads per core for the instance type. */ public Integer getDefaultThreadsPerCore() { return this.defaultThreadsPerCore; } /** ** The default number of threads per core for the instance type. *
* * @param defaultThreadsPerCore * The default number of threads per core for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withDefaultThreadsPerCore(Integer defaultThreadsPerCore) { setDefaultThreadsPerCore(defaultThreadsPerCore); return this; } /** ** The valid number of cores that can be configured for the instance type. *
* * @return The valid number of cores that can be configured for the instance type. */ public java.util.List* The valid number of cores that can be configured for the instance type. *
* * @param validCores * The valid number of cores that can be configured for the instance type. */ public void setValidCores(java.util.Collection* The valid number of cores that can be configured for the instance type. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValidCores(java.util.Collection)} or {@link #withValidCores(java.util.Collection)} if you want to * override the existing values. *
* * @param validCores * The valid number of cores that can be configured for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withValidCores(Integer... validCores) { if (this.validCores == null) { setValidCores(new com.amazonaws.internal.SdkInternalList* The valid number of cores that can be configured for the instance type. *
* * @param validCores * The valid number of cores that can be configured for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withValidCores(java.util.Collection* The valid number of threads per core that can be configured for the instance type. *
* * @return The valid number of threads per core that can be configured for the instance type. */ public java.util.List* The valid number of threads per core that can be configured for the instance type. *
* * @param validThreadsPerCore * The valid number of threads per core that can be configured for the instance type. */ public void setValidThreadsPerCore(java.util.Collection* The valid number of threads per core that can be configured for the instance type. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValidThreadsPerCore(java.util.Collection)} or {@link #withValidThreadsPerCore(java.util.Collection)} * if you want to override the existing values. *
* * @param validThreadsPerCore * The valid number of threads per core that can be configured for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withValidThreadsPerCore(Integer... validThreadsPerCore) { if (this.validThreadsPerCore == null) { setValidThreadsPerCore(new com.amazonaws.internal.SdkInternalList* The valid number of threads per core that can be configured for the instance type. *
* * @param validThreadsPerCore * The valid number of threads per core that can be configured for the instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public VCpuInfo withValidThreadsPerCore(java.util.Collection