/* * 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 processor used by the instance type. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProcessorInfo implements Serializable, Cloneable { /** ** The architectures supported by the instance type. *
*/ private com.amazonaws.internal.SdkInternalList* The speed of the processor, in GHz. *
*/ private Double sustainedClockSpeedInGhz; /** *
* Indicates whether the instance type supports AMD SEV-SNP. If the request returns amd-sev-snp
, AMD
* SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
*
* The architectures supported by the instance type. *
* * @return The architectures supported by the instance type. * @see ArchitectureType */ public java.util.List* The architectures supported by the instance type. *
* * @param supportedArchitectures * The architectures supported by the instance type. * @see ArchitectureType */ public void setSupportedArchitectures(java.util.Collection* The architectures supported by the instance type. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedArchitectures(java.util.Collection)} or * {@link #withSupportedArchitectures(java.util.Collection)} if you want to override the existing values. *
* * @param supportedArchitectures * The architectures supported by the instance type. * @return Returns a reference to this object so that method calls can be chained together. * @see ArchitectureType */ public ProcessorInfo withSupportedArchitectures(String... supportedArchitectures) { if (this.supportedArchitectures == null) { setSupportedArchitectures(new com.amazonaws.internal.SdkInternalList* The architectures supported by the instance type. *
* * @param supportedArchitectures * The architectures supported by the instance type. * @return Returns a reference to this object so that method calls can be chained together. * @see ArchitectureType */ public ProcessorInfo withSupportedArchitectures(java.util.Collection* The architectures supported by the instance type. *
* * @param supportedArchitectures * The architectures supported by the instance type. * @return Returns a reference to this object so that method calls can be chained together. * @see ArchitectureType */ public ProcessorInfo withSupportedArchitectures(ArchitectureType... supportedArchitectures) { com.amazonaws.internal.SdkInternalList* The speed of the processor, in GHz. *
* * @param sustainedClockSpeedInGhz * The speed of the processor, in GHz. */ public void setSustainedClockSpeedInGhz(Double sustainedClockSpeedInGhz) { this.sustainedClockSpeedInGhz = sustainedClockSpeedInGhz; } /** ** The speed of the processor, in GHz. *
* * @return The speed of the processor, in GHz. */ public Double getSustainedClockSpeedInGhz() { return this.sustainedClockSpeedInGhz; } /** ** The speed of the processor, in GHz. *
* * @param sustainedClockSpeedInGhz * The speed of the processor, in GHz. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessorInfo withSustainedClockSpeedInGhz(Double sustainedClockSpeedInGhz) { setSustainedClockSpeedInGhz(sustainedClockSpeedInGhz); return this; } /** *
* Indicates whether the instance type supports AMD SEV-SNP. If the request returns amd-sev-snp
, AMD
* SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
*
amd-sev-snp
* , AMD SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
* @see SupportedAdditionalProcessorFeature
*/
public java.util.List
* Indicates whether the instance type supports AMD SEV-SNP. If the request returns amd-sev-snp
, AMD
* SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
*
amd-sev-snp
,
* AMD SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
* @see SupportedAdditionalProcessorFeature
*/
public void setSupportedFeatures(java.util.Collection
* Indicates whether the instance type supports AMD SEV-SNP. If the request returns amd-sev-snp
, AMD
* SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedFeatures(java.util.Collection)} or {@link #withSupportedFeatures(java.util.Collection)} if * you want to override the existing values. *
* * @param supportedFeatures * Indicates whether the instance type supports AMD SEV-SNP. If the request returnsamd-sev-snp
,
* AMD SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedAdditionalProcessorFeature
*/
public ProcessorInfo withSupportedFeatures(String... supportedFeatures) {
if (this.supportedFeatures == null) {
setSupportedFeatures(new com.amazonaws.internal.SdkInternalList
* Indicates whether the instance type supports AMD SEV-SNP. If the request returns amd-sev-snp
, AMD
* SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
*
amd-sev-snp
,
* AMD SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedAdditionalProcessorFeature
*/
public ProcessorInfo withSupportedFeatures(java.util.Collection
* Indicates whether the instance type supports AMD SEV-SNP. If the request returns amd-sev-snp
, AMD
* SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
*
amd-sev-snp
,
* AMD SEV-SNP is supported. Otherwise, it is not supported. For more information, see AMD SEV-SNP.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedAdditionalProcessorFeature
*/
public ProcessorInfo withSupportedFeatures(SupportedAdditionalProcessorFeature... supportedFeatures) {
com.amazonaws.internal.SdkInternalList