/* * 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) attribute. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FpgaImageAttribute implements Serializable, Cloneable { /** ** The ID of the AFI. *
*/ private String fpgaImageId; /** ** The name of the AFI. *
*/ private String name; /** ** The description of the AFI. *
*/ private String description; /** ** The load permissions. *
*/ private com.amazonaws.internal.SdkInternalList* The product codes. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the AFI. *
* * @param fpgaImageId * The ID of the AFI. */ public void setFpgaImageId(String fpgaImageId) { this.fpgaImageId = fpgaImageId; } /** ** The ID of the AFI. *
* * @return The ID of the AFI. */ public String getFpgaImageId() { return this.fpgaImageId; } /** ** The ID of the AFI. *
* * @param fpgaImageId * The ID of the AFI. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withFpgaImageId(String fpgaImageId) { setFpgaImageId(fpgaImageId); 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 FpgaImageAttribute 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 FpgaImageAttribute withDescription(String description) { setDescription(description); return this; } /** ** The load permissions. *
* * @return The load permissions. */ public java.util.List* The load permissions. *
* * @param loadPermissions * The load permissions. */ public void setLoadPermissions(java.util.Collection* The load permissions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLoadPermissions(java.util.Collection)} or {@link #withLoadPermissions(java.util.Collection)} if you * want to override the existing values. *
* * @param loadPermissions * The load permissions. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withLoadPermissions(LoadPermission... loadPermissions) { if (this.loadPermissions == null) { setLoadPermissions(new com.amazonaws.internal.SdkInternalList* The load permissions. *
* * @param loadPermissions * The load permissions. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withLoadPermissions(java.util.Collection* The product codes. *
* * @return The product codes. */ public java.util.List* The product codes. *
* * @param productCodes * The product codes. */ public void setProductCodes(java.util.Collection* The product codes. *
** 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. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withProductCodes(ProductCode... productCodes) { if (this.productCodes == null) { setProductCodes(new com.amazonaws.internal.SdkInternalList* The product codes. *
* * @param productCodes * The product codes. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withProductCodes(java.util.Collection