/* * 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 Amazon FPGA image (AFI). *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FpgaImage implements Serializable, Cloneable { /** ** The FPGA image identifier (AFI ID). *
*/ private String fpgaImageId; /** ** The global FPGA image identifier (AGFI ID). *
*/ private String fpgaImageGlobalId; /** ** The name of the AFI. *
*/ private String name; /** ** The description of the AFI. *
*/ private String description; /** ** The version of the Amazon Web Services Shell that was used to create the bitstream. *
*/ private String shellVersion; /** ** Information about the PCI bus. *
*/ private PciId pciId; /** ** Information about the state of the AFI. *
*/ private FpgaImageState state; /** ** The date and time the AFI was created. *
*/ private java.util.Date createTime; /** ** The time of the most recent update to the AFI. *
*/ private java.util.Date updateTime; /** ** The ID of the Amazon Web Services account that owns the AFI. *
*/ private String ownerId; /** *
* The alias of the AFI owner. Possible values include self
, amazon
, and
* aws-marketplace
.
*
* The product codes for the AFI. *
*/ private com.amazonaws.internal.SdkInternalList* Any tags assigned to the AFI. *
*/ private com.amazonaws.internal.SdkInternalList* Indicates whether the AFI is public. *
*/ private Boolean publicValue; /** ** Indicates whether data retention support is enabled for the AFI. *
*/ private Boolean dataRetentionSupport; /** ** The instance types supported by the AFI. *
*/ private com.amazonaws.internal.SdkInternalList* The FPGA image identifier (AFI ID). *
* * @param fpgaImageId * The FPGA image identifier (AFI ID). */ public void setFpgaImageId(String fpgaImageId) { this.fpgaImageId = fpgaImageId; } /** ** The FPGA image identifier (AFI ID). *
* * @return The FPGA image identifier (AFI ID). */ public String getFpgaImageId() { return this.fpgaImageId; } /** ** The FPGA image identifier (AFI ID). *
* * @param fpgaImageId * The FPGA image identifier (AFI ID). * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withFpgaImageId(String fpgaImageId) { setFpgaImageId(fpgaImageId); return this; } /** ** The global FPGA image identifier (AGFI ID). *
* * @param fpgaImageGlobalId * The global FPGA image identifier (AGFI ID). */ public void setFpgaImageGlobalId(String fpgaImageGlobalId) { this.fpgaImageGlobalId = fpgaImageGlobalId; } /** ** The global FPGA image identifier (AGFI ID). *
* * @return The global FPGA image identifier (AGFI ID). */ public String getFpgaImageGlobalId() { return this.fpgaImageGlobalId; } /** ** The global FPGA image identifier (AGFI ID). *
* * @param fpgaImageGlobalId * The global FPGA image identifier (AGFI ID). * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withFpgaImageGlobalId(String fpgaImageGlobalId) { setFpgaImageGlobalId(fpgaImageGlobalId); return this; } /** ** The name of the AFI. *
* * @param name * The name of the AFI. */ public void setName(String name) { this.name = name; } /** ** The name of the AFI. *
* * @return The name of the AFI. */ public String getName() { return this.name; } /** ** The name of the AFI. *
* * @param name * The name of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withName(String name) { setName(name); return this; } /** ** The description of the AFI. *
* * @param description * The description of the AFI. */ public void setDescription(String description) { this.description = description; } /** ** The description of the AFI. *
* * @return The description of the AFI. */ public String getDescription() { return this.description; } /** ** The description of the AFI. *
* * @param description * The description of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withDescription(String description) { setDescription(description); return this; } /** ** The version of the Amazon Web Services Shell that was used to create the bitstream. *
* * @param shellVersion * The version of the Amazon Web Services Shell that was used to create the bitstream. */ public void setShellVersion(String shellVersion) { this.shellVersion = shellVersion; } /** ** The version of the Amazon Web Services Shell that was used to create the bitstream. *
* * @return The version of the Amazon Web Services Shell that was used to create the bitstream. */ public String getShellVersion() { return this.shellVersion; } /** ** The version of the Amazon Web Services Shell that was used to create the bitstream. *
* * @param shellVersion * The version of the Amazon Web Services Shell that was used to create the bitstream. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withShellVersion(String shellVersion) { setShellVersion(shellVersion); return this; } /** ** Information about the PCI bus. *
* * @param pciId * Information about the PCI bus. */ public void setPciId(PciId pciId) { this.pciId = pciId; } /** ** Information about the PCI bus. *
* * @return Information about the PCI bus. */ public PciId getPciId() { return this.pciId; } /** ** Information about the PCI bus. *
* * @param pciId * Information about the PCI bus. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withPciId(PciId pciId) { setPciId(pciId); return this; } /** ** Information about the state of the AFI. *
* * @param state * Information about the state of the AFI. */ public void setState(FpgaImageState state) { this.state = state; } /** ** Information about the state of the AFI. *
* * @return Information about the state of the AFI. */ public FpgaImageState getState() { return this.state; } /** ** Information about the state of the AFI. *
* * @param state * Information about the state of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withState(FpgaImageState state) { setState(state); return this; } /** ** The date and time the AFI was created. *
* * @param createTime * The date and time the AFI was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** ** The date and time the AFI was created. *
* * @return The date and time the AFI was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** ** The date and time the AFI was created. *
* * @param createTime * The date and time the AFI was created. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** ** The time of the most recent update to the AFI. *
* * @param updateTime * The time of the most recent update to the AFI. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** ** The time of the most recent update to the AFI. *
* * @return The time of the most recent update to the AFI. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** ** The time of the most recent update to the AFI. *
* * @param updateTime * The time of the most recent update to the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** ** The ID of the Amazon Web Services account that owns the AFI. *
* * @param ownerId * The ID of the Amazon Web Services account that owns the AFI. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** ** The ID of the Amazon Web Services account that owns the AFI. *
* * @return The ID of the Amazon Web Services account that owns the AFI. */ public String getOwnerId() { return this.ownerId; } /** ** The ID of the Amazon Web Services account that owns the AFI. *
* * @param ownerId * The ID of the Amazon Web Services account that owns the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** *
* The alias of the AFI owner. Possible values include self
, amazon
, and
* aws-marketplace
.
*
self
, amazon
, and
* aws-marketplace
.
*/
public void setOwnerAlias(String ownerAlias) {
this.ownerAlias = ownerAlias;
}
/**
*
* The alias of the AFI owner. Possible values include self
, amazon
, and
* aws-marketplace
.
*
self
, amazon
, and
* aws-marketplace
.
*/
public String getOwnerAlias() {
return this.ownerAlias;
}
/**
*
* The alias of the AFI owner. Possible values include self
, amazon
, and
* aws-marketplace
.
*
self
, amazon
, and
* aws-marketplace
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FpgaImage withOwnerAlias(String ownerAlias) {
setOwnerAlias(ownerAlias);
return this;
}
/**
* * The product codes for the AFI. *
* * @return The product codes for the AFI. */ public java.util.List* The product codes for the AFI. *
* * @param productCodes * The product codes for the AFI. */ public void setProductCodes(java.util.Collection* The product codes for the AFI. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProductCodes(java.util.Collection)} or {@link #withProductCodes(java.util.Collection)} if you want to * override the existing values. *
* * @param productCodes * The product codes for the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withProductCodes(ProductCode... productCodes) { if (this.productCodes == null) { setProductCodes(new com.amazonaws.internal.SdkInternalList* The product codes for the AFI. *
* * @param productCodes * The product codes for the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withProductCodes(java.util.Collection* Any tags assigned to the AFI. *
* * @return Any tags assigned to the AFI. */ public java.util.List* Any tags assigned to the AFI. *
* * @param tags * Any tags assigned to the AFI. */ public void setTags(java.util.Collection* Any tags assigned to the AFI. *
** 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 * Any tags assigned to the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Any tags assigned to the AFI. *
* * @param tags * Any tags assigned to the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withTags(java.util.Collection* Indicates whether the AFI is public. *
* * @param publicValue * Indicates whether the AFI is public. */ public void setPublic(Boolean publicValue) { this.publicValue = publicValue; } /** ** Indicates whether the AFI is public. *
* * @return Indicates whether the AFI is public. */ public Boolean getPublic() { return this.publicValue; } /** ** Indicates whether the AFI is public. *
* * @param publicValue * Indicates whether the AFI is public. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withPublic(Boolean publicValue) { setPublic(publicValue); return this; } /** ** Indicates whether the AFI is public. *
* * @return Indicates whether the AFI is public. */ public Boolean isPublic() { return this.publicValue; } /** ** Indicates whether data retention support is enabled for the AFI. *
* * @param dataRetentionSupport * Indicates whether data retention support is enabled for the AFI. */ public void setDataRetentionSupport(Boolean dataRetentionSupport) { this.dataRetentionSupport = dataRetentionSupport; } /** ** Indicates whether data retention support is enabled for the AFI. *
* * @return Indicates whether data retention support is enabled for the AFI. */ public Boolean getDataRetentionSupport() { return this.dataRetentionSupport; } /** ** Indicates whether data retention support is enabled for the AFI. *
* * @param dataRetentionSupport * Indicates whether data retention support is enabled for the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withDataRetentionSupport(Boolean dataRetentionSupport) { setDataRetentionSupport(dataRetentionSupport); return this; } /** ** Indicates whether data retention support is enabled for the AFI. *
* * @return Indicates whether data retention support is enabled for the AFI. */ public Boolean isDataRetentionSupport() { return this.dataRetentionSupport; } /** ** The instance types supported by the AFI. *
* * @return The instance types supported by the AFI. */ public java.util.List* The instance types supported by the AFI. *
* * @param instanceTypes * The instance types supported by the AFI. */ public void setInstanceTypes(java.util.Collection* The instance types supported by the AFI. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceTypes(java.util.Collection)} or {@link #withInstanceTypes(java.util.Collection)} if you want * to override the existing values. *
* * @param instanceTypes * The instance types supported by the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withInstanceTypes(String... instanceTypes) { if (this.instanceTypes == null) { setInstanceTypes(new com.amazonaws.internal.SdkInternalList* The instance types supported by the AFI. *
* * @param instanceTypes * The instance types supported by the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImage withInstanceTypes(java.util.Collection