/* * 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 an Elastic Graphics accelerator. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ElasticGpus implements Serializable, Cloneable { /** ** The ID of the Elastic Graphics accelerator. *
*/ private String elasticGpuId; /** ** The Availability Zone in the which the Elastic Graphics accelerator resides. *
*/ private String availabilityZone; /** ** The type of Elastic Graphics accelerator. *
*/ private String elasticGpuType; /** ** The status of the Elastic Graphics accelerator. *
*/ private ElasticGpuHealth elasticGpuHealth; /** ** The state of the Elastic Graphics accelerator. *
*/ private String elasticGpuState; /** ** The ID of the instance to which the Elastic Graphics accelerator is attached. *
*/ private String instanceId; /** ** The tags assigned to the Elastic Graphics accelerator. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the Elastic Graphics accelerator. *
* * @param elasticGpuId * The ID of the Elastic Graphics accelerator. */ public void setElasticGpuId(String elasticGpuId) { this.elasticGpuId = elasticGpuId; } /** ** The ID of the Elastic Graphics accelerator. *
* * @return The ID of the Elastic Graphics accelerator. */ public String getElasticGpuId() { return this.elasticGpuId; } /** ** The ID of the Elastic Graphics accelerator. *
* * @param elasticGpuId * The ID of the Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withElasticGpuId(String elasticGpuId) { setElasticGpuId(elasticGpuId); return this; } /** ** The Availability Zone in the which the Elastic Graphics accelerator resides. *
* * @param availabilityZone * The Availability Zone in the which the Elastic Graphics accelerator resides. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** ** The Availability Zone in the which the Elastic Graphics accelerator resides. *
* * @return The Availability Zone in the which the Elastic Graphics accelerator resides. */ public String getAvailabilityZone() { return this.availabilityZone; } /** ** The Availability Zone in the which the Elastic Graphics accelerator resides. *
* * @param availabilityZone * The Availability Zone in the which the Elastic Graphics accelerator resides. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** ** The type of Elastic Graphics accelerator. *
* * @param elasticGpuType * The type of Elastic Graphics accelerator. */ public void setElasticGpuType(String elasticGpuType) { this.elasticGpuType = elasticGpuType; } /** ** The type of Elastic Graphics accelerator. *
* * @return The type of Elastic Graphics accelerator. */ public String getElasticGpuType() { return this.elasticGpuType; } /** ** The type of Elastic Graphics accelerator. *
* * @param elasticGpuType * The type of Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withElasticGpuType(String elasticGpuType) { setElasticGpuType(elasticGpuType); return this; } /** ** The status of the Elastic Graphics accelerator. *
* * @param elasticGpuHealth * The status of the Elastic Graphics accelerator. */ public void setElasticGpuHealth(ElasticGpuHealth elasticGpuHealth) { this.elasticGpuHealth = elasticGpuHealth; } /** ** The status of the Elastic Graphics accelerator. *
* * @return The status of the Elastic Graphics accelerator. */ public ElasticGpuHealth getElasticGpuHealth() { return this.elasticGpuHealth; } /** ** The status of the Elastic Graphics accelerator. *
* * @param elasticGpuHealth * The status of the Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withElasticGpuHealth(ElasticGpuHealth elasticGpuHealth) { setElasticGpuHealth(elasticGpuHealth); return this; } /** ** The state of the Elastic Graphics accelerator. *
* * @param elasticGpuState * The state of the Elastic Graphics accelerator. * @see ElasticGpuState */ public void setElasticGpuState(String elasticGpuState) { this.elasticGpuState = elasticGpuState; } /** ** The state of the Elastic Graphics accelerator. *
* * @return The state of the Elastic Graphics accelerator. * @see ElasticGpuState */ public String getElasticGpuState() { return this.elasticGpuState; } /** ** The state of the Elastic Graphics accelerator. *
* * @param elasticGpuState * The state of the Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. * @see ElasticGpuState */ public ElasticGpus withElasticGpuState(String elasticGpuState) { setElasticGpuState(elasticGpuState); return this; } /** ** The state of the Elastic Graphics accelerator. *
* * @param elasticGpuState * The state of the Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. * @see ElasticGpuState */ public ElasticGpus withElasticGpuState(ElasticGpuState elasticGpuState) { this.elasticGpuState = elasticGpuState.toString(); return this; } /** ** The ID of the instance to which the Elastic Graphics accelerator is attached. *
* * @param instanceId * The ID of the instance to which the Elastic Graphics accelerator is attached. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** The ID of the instance to which the Elastic Graphics accelerator is attached. *
* * @return The ID of the instance to which the Elastic Graphics accelerator is attached. */ public String getInstanceId() { return this.instanceId; } /** ** The ID of the instance to which the Elastic Graphics accelerator is attached. *
* * @param instanceId * The ID of the instance to which the Elastic Graphics accelerator is attached. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** The tags assigned to the Elastic Graphics accelerator. *
* * @return The tags assigned to the Elastic Graphics accelerator. */ public java.util.List* The tags assigned to the Elastic Graphics accelerator. *
* * @param tags * The tags assigned to the Elastic Graphics accelerator. */ public void setTags(java.util.Collection* The tags assigned to the Elastic Graphics accelerator. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The tags assigned to the Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The tags assigned to the Elastic Graphics accelerator. *
* * @param tags * The tags assigned to the Elastic Graphics accelerator. * @return Returns a reference to this object so that method calls can be chained together. */ public ElasticGpus withTags(java.util.Collection