All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ec2.model.DescribeImagesRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EC2 module holds the client classes that are used for communicating with Amazon EC2 Service

There is a newer version: 1.9.19
Show newest version
/*
 * Copyright 2010-2016 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 com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.DescribeImagesRequestMarshaller;

/**
 * 

* Contains the parameters for DescribeImages. *

*/ public class DescribeImagesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** *

* One or more image IDs. *

*

* Default: Describes all images available to you. *

*/ private com.amazonaws.internal.SdkInternalList imageIds; /** *

* Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), aws-marketplace * (owner is AWS Marketplace), self (owner is the sender of the * request). Omitting this option returns all images for which you have * launch permissions, regardless of ownership. *

*/ private com.amazonaws.internal.SdkInternalList owners; /** *

* Scopes the images by users with explicit launch permissions. Specify an * AWS account ID, self (the sender of the request), or * all (public AMIs). *

*/ private com.amazonaws.internal.SdkInternalList executableUsers; /** *

* One or more filters. *

*
    *
  • *

    * architecture - The image architecture (i386 | * x86_64). *

    *
  • *
  • *

    * block-device-mapping.delete-on-termination - A Boolean value * that indicates whether the Amazon EBS volume is deleted on instance * termination. *

    *
  • *
  • *

    * block-device-mapping.device-name - The device name for the * EBS volume (for example, /dev/sdh). *

    *
  • *
  • *

    * block-device-mapping.snapshot-id - The ID of the snapshot * used for the EBS volume. *

    *
  • *
  • *

    * block-device-mapping.volume-size - The volume size of the * EBS volume, in GiB. *

    *
  • *
  • *

    * block-device-mapping.volume-type - The volume type of the * EBS volume (gp2 | io1 | st1 | * sc1 | standard). *

    *
  • *
  • *

    * description - The description of the image (provided during * image creation). *

    *
  • *
  • *

    * hypervisor - The hypervisor type (ovm | * xen). *

    *
  • *
  • *

    * image-id - The ID of the image. *

    *
  • *
  • *

    * image-type - The image type (machine | * kernel | ramdisk). *

    *
  • *
  • *

    * is-public - A Boolean that indicates whether the image is * public. *

    *
  • *
  • *

    * kernel-id - The kernel ID. *

    *
  • *
  • *

    * manifest-location - The location of the image manifest. *

    *
  • *
  • *

    * name - The name of the AMI (provided during image creation). *

    *
  • *
  • *

    * owner-alias - The AWS account alias (for example, * amazon). *

    *
  • *
  • *

    * owner-id - The AWS account ID of the image owner. *

    *
  • *
  • *

    * platform - The platform. To only list Windows-based AMIs, * use windows. *

    *
  • *
  • *

    * product-code - The product code. *

    *
  • *
  • *

    * product-code.type - The type of the product code ( * devpay | marketplace). *

    *
  • *
  • *

    * ramdisk-id - The RAM disk ID. *

    *
  • *
  • *

    * root-device-name - The name of the root device volume (for * example, /dev/sda1). *

    *
  • *
  • *

    * root-device-type - The type of the root device volume ( * ebs | instance-store). *

    *
  • *
  • *

    * state - The state of the image (available | * pending | failed). *

    *
  • *
  • *

    * state-reason-code - The reason code for the state change. *

    *
  • *
  • *

    * state-reason-message - The message for the state change. *

    *
  • *
  • *

    * tag:key=value - The key/value combination of a * tag assigned to the resource. *

    *
  • *
  • *

    * tag-key - The key of a tag assigned to the resource. This * filter is independent of the tag-value filter. For example, if you use * both the filter "tag-key=Purpose" and the filter "tag-value=X", you get * any resources assigned both the tag key Purpose (regardless of what the * tag's value is), and the tag value X (regardless of what the tag's key * is). If you want to list only resources where Purpose is X, see the * tag:key=value filter. *

    *
  • *
  • *

    * tag-value - The value of a tag assigned to the resource. * This filter is independent of the tag-key filter. *

    *
  • *
  • *

    * virtualization-type - The virtualization type ( * paravirtual | hvm). *

    *
  • *
*/ private com.amazonaws.internal.SdkInternalList filters; /** *

* One or more image IDs. *

*

* Default: Describes all images available to you. *

* * @return One or more image IDs.

*

* Default: Describes all images available to you. */ public java.util.List getImageIds() { if (imageIds == null) { imageIds = new com.amazonaws.internal.SdkInternalList(); } return imageIds; } /** *

* One or more image IDs. *

*

* Default: Describes all images available to you. *

* * @param imageIds * One or more image IDs.

*

* Default: Describes all images available to you. */ public void setImageIds(java.util.Collection imageIds) { if (imageIds == null) { this.imageIds = null; return; } this.imageIds = new com.amazonaws.internal.SdkInternalList( imageIds); } /** *

* One or more image IDs. *

*

* Default: Describes all images available to you. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setImageIds(java.util.Collection)} or * {@link #withImageIds(java.util.Collection)} if you want to override the * existing values. *

* * @param imageIds * One or more image IDs.

*

* Default: Describes all images available to you. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withImageIds(String... imageIds) { if (this.imageIds == null) { setImageIds(new com.amazonaws.internal.SdkInternalList( imageIds.length)); } for (String ele : imageIds) { this.imageIds.add(ele); } return this; } /** *

* One or more image IDs. *

*

* Default: Describes all images available to you. *

* * @param imageIds * One or more image IDs.

*

* Default: Describes all images available to you. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withImageIds( java.util.Collection imageIds) { setImageIds(imageIds); return this; } /** *

* Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), aws-marketplace * (owner is AWS Marketplace), self (owner is the sender of the * request). Omitting this option returns all images for which you have * launch permissions, regardless of ownership. *

* * @return Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), * aws-marketplace (owner is AWS Marketplace), * self (owner is the sender of the request). Omitting * this option returns all images for which you have launch * permissions, regardless of ownership. */ public java.util.List getOwners() { if (owners == null) { owners = new com.amazonaws.internal.SdkInternalList(); } return owners; } /** *

* Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), aws-marketplace * (owner is AWS Marketplace), self (owner is the sender of the * request). Omitting this option returns all images for which you have * launch permissions, regardless of ownership. *

* * @param owners * Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), * aws-marketplace (owner is AWS Marketplace), * self (owner is the sender of the request). Omitting * this option returns all images for which you have launch * permissions, regardless of ownership. */ public void setOwners(java.util.Collection owners) { if (owners == null) { this.owners = null; return; } this.owners = new com.amazonaws.internal.SdkInternalList(owners); } /** *

* Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), aws-marketplace * (owner is AWS Marketplace), self (owner is the sender of the * request). Omitting this option returns all images for which you have * launch permissions, regardless of ownership. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setOwners(java.util.Collection)} or * {@link #withOwners(java.util.Collection)} if you want to override the * existing values. *

* * @param owners * Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), * aws-marketplace (owner is AWS Marketplace), * self (owner is the sender of the request). Omitting * this option returns all images for which you have launch * permissions, regardless of ownership. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withOwners(String... owners) { if (this.owners == null) { setOwners(new com.amazonaws.internal.SdkInternalList( owners.length)); } for (String ele : owners) { this.owners.add(ele); } return this; } /** *

* Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), aws-marketplace * (owner is AWS Marketplace), self (owner is the sender of the * request). Omitting this option returns all images for which you have * launch permissions, regardless of ownership. *

* * @param owners * Filters the images by the owner. Specify an AWS account ID, * amazon (owner is Amazon), * aws-marketplace (owner is AWS Marketplace), * self (owner is the sender of the request). Omitting * this option returns all images for which you have launch * permissions, regardless of ownership. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withOwners(java.util.Collection owners) { setOwners(owners); return this; } /** *

* Scopes the images by users with explicit launch permissions. Specify an * AWS account ID, self (the sender of the request), or * all (public AMIs). *

* * @return Scopes the images by users with explicit launch permissions. * Specify an AWS account ID, self (the sender of the * request), or all (public AMIs). */ public java.util.List getExecutableUsers() { if (executableUsers == null) { executableUsers = new com.amazonaws.internal.SdkInternalList(); } return executableUsers; } /** *

* Scopes the images by users with explicit launch permissions. Specify an * AWS account ID, self (the sender of the request), or * all (public AMIs). *

* * @param executableUsers * Scopes the images by users with explicit launch permissions. * Specify an AWS account ID, self (the sender of the * request), or all (public AMIs). */ public void setExecutableUsers(java.util.Collection executableUsers) { if (executableUsers == null) { this.executableUsers = null; return; } this.executableUsers = new com.amazonaws.internal.SdkInternalList( executableUsers); } /** *

* Scopes the images by users with explicit launch permissions. Specify an * AWS account ID, self (the sender of the request), or * all (public AMIs). *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setExecutableUsers(java.util.Collection)} or * {@link #withExecutableUsers(java.util.Collection)} if you want to * override the existing values. *

* * @param executableUsers * Scopes the images by users with explicit launch permissions. * Specify an AWS account ID, self (the sender of the * request), or all (public AMIs). * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withExecutableUsers(String... executableUsers) { if (this.executableUsers == null) { setExecutableUsers(new com.amazonaws.internal.SdkInternalList( executableUsers.length)); } for (String ele : executableUsers) { this.executableUsers.add(ele); } return this; } /** *

* Scopes the images by users with explicit launch permissions. Specify an * AWS account ID, self (the sender of the request), or * all (public AMIs). *

* * @param executableUsers * Scopes the images by users with explicit launch permissions. * Specify an AWS account ID, self (the sender of the * request), or all (public AMIs). * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withExecutableUsers( java.util.Collection executableUsers) { setExecutableUsers(executableUsers); return this; } /** *

* One or more filters. *

*
    *
  • *

    * architecture - The image architecture (i386 | * x86_64). *

    *
  • *
  • *

    * block-device-mapping.delete-on-termination - A Boolean value * that indicates whether the Amazon EBS volume is deleted on instance * termination. *

    *
  • *
  • *

    * block-device-mapping.device-name - The device name for the * EBS volume (for example, /dev/sdh). *

    *
  • *
  • *

    * block-device-mapping.snapshot-id - The ID of the snapshot * used for the EBS volume. *

    *
  • *
  • *

    * block-device-mapping.volume-size - The volume size of the * EBS volume, in GiB. *

    *
  • *
  • *

    * block-device-mapping.volume-type - The volume type of the * EBS volume (gp2 | io1 | st1 | * sc1 | standard). *

    *
  • *
  • *

    * description - The description of the image (provided during * image creation). *

    *
  • *
  • *

    * hypervisor - The hypervisor type (ovm | * xen). *

    *
  • *
  • *

    * image-id - The ID of the image. *

    *
  • *
  • *

    * image-type - The image type (machine | * kernel | ramdisk). *

    *
  • *
  • *

    * is-public - A Boolean that indicates whether the image is * public. *

    *
  • *
  • *

    * kernel-id - The kernel ID. *

    *
  • *
  • *

    * manifest-location - The location of the image manifest. *

    *
  • *
  • *

    * name - The name of the AMI (provided during image creation). *

    *
  • *
  • *

    * owner-alias - The AWS account alias (for example, * amazon). *

    *
  • *
  • *

    * owner-id - The AWS account ID of the image owner. *

    *
  • *
  • *

    * platform - The platform. To only list Windows-based AMIs, * use windows. *

    *
  • *
  • *

    * product-code - The product code. *

    *
  • *
  • *

    * product-code.type - The type of the product code ( * devpay | marketplace). *

    *
  • *
  • *

    * ramdisk-id - The RAM disk ID. *

    *
  • *
  • *

    * root-device-name - The name of the root device volume (for * example, /dev/sda1). *

    *
  • *
  • *

    * root-device-type - The type of the root device volume ( * ebs | instance-store). *

    *
  • *
  • *

    * state - The state of the image (available | * pending | failed). *

    *
  • *
  • *

    * state-reason-code - The reason code for the state change. *

    *
  • *
  • *

    * state-reason-message - The message for the state change. *

    *
  • *
  • *

    * tag:key=value - The key/value combination of a * tag assigned to the resource. *

    *
  • *
  • *

    * tag-key - The key of a tag assigned to the resource. This * filter is independent of the tag-value filter. For example, if you use * both the filter "tag-key=Purpose" and the filter "tag-value=X", you get * any resources assigned both the tag key Purpose (regardless of what the * tag's value is), and the tag value X (regardless of what the tag's key * is). If you want to list only resources where Purpose is X, see the * tag:key=value filter. *

    *
  • *
  • *

    * tag-value - The value of a tag assigned to the resource. * This filter is independent of the tag-key filter. *

    *
  • *
  • *

    * virtualization-type - The virtualization type ( * paravirtual | hvm). *

    *
  • *
* * @return One or more filters.

*
    *
  • *

    * architecture - The image architecture ( * i386 | x86_64). *

    *
  • *
  • *

    * block-device-mapping.delete-on-termination - A * Boolean value that indicates whether the Amazon EBS volume is * deleted on instance termination. *

    *
  • *
  • *

    * block-device-mapping.device-name - The device name * for the EBS volume (for example, /dev/sdh). *

    *
  • *
  • *

    * block-device-mapping.snapshot-id - The ID of the * snapshot used for the EBS volume. *

    *
  • *
  • *

    * block-device-mapping.volume-size - The volume size * of the EBS volume, in GiB. *

    *
  • *
  • *

    * block-device-mapping.volume-type - The volume type * of the EBS volume (gp2 | io1 | * st1 | sc1 | standard). *

    *
  • *
  • *

    * description - The description of the image (provided * during image creation). *

    *
  • *
  • *

    * hypervisor - The hypervisor type (ovm | * xen). *

    *
  • *
  • *

    * image-id - The ID of the image. *

    *
  • *
  • *

    * image-type - The image type (machine | * kernel | ramdisk). *

    *
  • *
  • *

    * is-public - A Boolean that indicates whether the * image is public. *

    *
  • *
  • *

    * kernel-id - The kernel ID. *

    *
  • *
  • *

    * manifest-location - The location of the image * manifest. *

    *
  • *
  • *

    * name - The name of the AMI (provided during image * creation). *

    *
  • *
  • *

    * owner-alias - The AWS account alias (for example, * amazon). *

    *
  • *
  • *

    * owner-id - The AWS account ID of the image owner. *

    *
  • *
  • *

    * platform - The platform. To only list Windows-based * AMIs, use windows. *

    *
  • *
  • *

    * product-code - The product code. *

    *
  • *
  • *

    * product-code.type - The type of the product code ( * devpay | marketplace). *

    *
  • *
  • *

    * ramdisk-id - The RAM disk ID. *

    *
  • *
  • *

    * root-device-name - The name of the root device * volume (for example, /dev/sda1). *

    *
  • *
  • *

    * root-device-type - The type of the root device * volume (ebs | instance-store). *

    *
  • *
  • *

    * state - The state of the image ( * available | pending | * failed). *

    *
  • *
  • *

    * state-reason-code - The reason code for the state * change. *

    *
  • *
  • *

    * state-reason-message - The message for the state * change. *

    *
  • *
  • *

    * tag:key=value - The key/value * combination of a tag assigned to the resource. *

    *
  • *
  • *

    * tag-key - The key of a tag assigned to the resource. * This filter is independent of the tag-value filter. For example, * if you use both the filter "tag-key=Purpose" and the filter * "tag-value=X", you get any resources assigned both the tag key * Purpose (regardless of what the tag's value is), and the tag * value X (regardless of what the tag's key is). If you want to * list only resources where Purpose is X, see the tag * :key=value filter. *

    *
  • *
  • *

    * tag-value - The value of a tag assigned to the * resource. This filter is independent of the tag-key * filter. *

    *
  • *
  • *

    * virtualization-type - The virtualization type ( * paravirtual | hvm). *

    *
  • */ public java.util.List getFilters() { if (filters == null) { filters = new com.amazonaws.internal.SdkInternalList(); } return filters; } /** *

    * One or more filters. *

    *
      *
    • *

      * architecture - The image architecture (i386 | * x86_64). *

      *
    • *
    • *

      * block-device-mapping.delete-on-termination - A Boolean value * that indicates whether the Amazon EBS volume is deleted on instance * termination. *

      *
    • *
    • *

      * block-device-mapping.device-name - The device name for the * EBS volume (for example, /dev/sdh). *

      *
    • *
    • *

      * block-device-mapping.snapshot-id - The ID of the snapshot * used for the EBS volume. *

      *
    • *
    • *

      * block-device-mapping.volume-size - The volume size of the * EBS volume, in GiB. *

      *
    • *
    • *

      * block-device-mapping.volume-type - The volume type of the * EBS volume (gp2 | io1 | st1 | * sc1 | standard). *

      *
    • *
    • *

      * description - The description of the image (provided during * image creation). *

      *
    • *
    • *

      * hypervisor - The hypervisor type (ovm | * xen). *

      *
    • *
    • *

      * image-id - The ID of the image. *

      *
    • *
    • *

      * image-type - The image type (machine | * kernel | ramdisk). *

      *
    • *
    • *

      * is-public - A Boolean that indicates whether the image is * public. *

      *
    • *
    • *

      * kernel-id - The kernel ID. *

      *
    • *
    • *

      * manifest-location - The location of the image manifest. *

      *
    • *
    • *

      * name - The name of the AMI (provided during image creation). *

      *
    • *
    • *

      * owner-alias - The AWS account alias (for example, * amazon). *

      *
    • *
    • *

      * owner-id - The AWS account ID of the image owner. *

      *
    • *
    • *

      * platform - The platform. To only list Windows-based AMIs, * use windows. *

      *
    • *
    • *

      * product-code - The product code. *

      *
    • *
    • *

      * product-code.type - The type of the product code ( * devpay | marketplace). *

      *
    • *
    • *

      * ramdisk-id - The RAM disk ID. *

      *
    • *
    • *

      * root-device-name - The name of the root device volume (for * example, /dev/sda1). *

      *
    • *
    • *

      * root-device-type - The type of the root device volume ( * ebs | instance-store). *

      *
    • *
    • *

      * state - The state of the image (available | * pending | failed). *

      *
    • *
    • *

      * state-reason-code - The reason code for the state change. *

      *
    • *
    • *

      * state-reason-message - The message for the state change. *

      *
    • *
    • *

      * tag:key=value - The key/value combination of a * tag assigned to the resource. *

      *
    • *
    • *

      * tag-key - The key of a tag assigned to the resource. This * filter is independent of the tag-value filter. For example, if you use * both the filter "tag-key=Purpose" and the filter "tag-value=X", you get * any resources assigned both the tag key Purpose (regardless of what the * tag's value is), and the tag value X (regardless of what the tag's key * is). If you want to list only resources where Purpose is X, see the * tag:key=value filter. *

      *
    • *
    • *

      * tag-value - The value of a tag assigned to the resource. * This filter is independent of the tag-key filter. *

      *
    • *
    • *

      * virtualization-type - The virtualization type ( * paravirtual | hvm). *

      *
    • *
    * * @param filters * One or more filters.

    *
      *
    • *

      * architecture - The image architecture ( * i386 | x86_64). *

      *
    • *
    • *

      * block-device-mapping.delete-on-termination - A * Boolean value that indicates whether the Amazon EBS volume is * deleted on instance termination. *

      *
    • *
    • *

      * block-device-mapping.device-name - The device name * for the EBS volume (for example, /dev/sdh). *

      *
    • *
    • *

      * block-device-mapping.snapshot-id - The ID of the * snapshot used for the EBS volume. *

      *
    • *
    • *

      * block-device-mapping.volume-size - The volume size of * the EBS volume, in GiB. *

      *
    • *
    • *

      * block-device-mapping.volume-type - The volume type of * the EBS volume (gp2 | io1 | * st1 | sc1 | standard). *

      *
    • *
    • *

      * description - The description of the image (provided * during image creation). *

      *
    • *
    • *

      * hypervisor - The hypervisor type (ovm | * xen). *

      *
    • *
    • *

      * image-id - The ID of the image. *

      *
    • *
    • *

      * image-type - The image type (machine | * kernel | ramdisk). *

      *
    • *
    • *

      * is-public - A Boolean that indicates whether the * image is public. *

      *
    • *
    • *

      * kernel-id - The kernel ID. *

      *
    • *
    • *

      * manifest-location - The location of the image * manifest. *

      *
    • *
    • *

      * name - The name of the AMI (provided during image * creation). *

      *
    • *
    • *

      * owner-alias - The AWS account alias (for example, * amazon). *

      *
    • *
    • *

      * owner-id - The AWS account ID of the image owner. *

      *
    • *
    • *

      * platform - The platform. To only list Windows-based * AMIs, use windows. *

      *
    • *
    • *

      * product-code - The product code. *

      *
    • *
    • *

      * product-code.type - The type of the product code ( * devpay | marketplace). *

      *
    • *
    • *

      * ramdisk-id - The RAM disk ID. *

      *
    • *
    • *

      * root-device-name - The name of the root device volume * (for example, /dev/sda1). *

      *
    • *
    • *

      * root-device-type - The type of the root device volume * (ebs | instance-store). *

      *
    • *
    • *

      * state - The state of the image ( * available | pending | * failed). *

      *
    • *
    • *

      * state-reason-code - The reason code for the state * change. *

      *
    • *
    • *

      * state-reason-message - The message for the state * change. *

      *
    • *
    • *

      * tag:key=value - The key/value * combination of a tag assigned to the resource. *

      *
    • *
    • *

      * tag-key - The key of a tag assigned to the resource. * This filter is independent of the tag-value filter. For example, * if you use both the filter "tag-key=Purpose" and the filter * "tag-value=X", you get any resources assigned both the tag key * Purpose (regardless of what the tag's value is), and the tag value * X (regardless of what the tag's key is). If you want to list only * resources where Purpose is X, see the tag * :key=value filter. *

      *
    • *
    • *

      * tag-value - The value of a tag assigned to the * resource. This filter is independent of the tag-key * filter. *

      *
    • *
    • *

      * virtualization-type - The virtualization type ( * paravirtual | hvm). *

      *
    • */ public void setFilters(java.util.Collection filters) { if (filters == null) { this.filters = null; return; } this.filters = new com.amazonaws.internal.SdkInternalList( filters); } /** *

      * One or more filters. *

      *
        *
      • *

        * architecture - The image architecture (i386 | * x86_64). *

        *
      • *
      • *

        * block-device-mapping.delete-on-termination - A Boolean value * that indicates whether the Amazon EBS volume is deleted on instance * termination. *

        *
      • *
      • *

        * block-device-mapping.device-name - The device name for the * EBS volume (for example, /dev/sdh). *

        *
      • *
      • *

        * block-device-mapping.snapshot-id - The ID of the snapshot * used for the EBS volume. *

        *
      • *
      • *

        * block-device-mapping.volume-size - The volume size of the * EBS volume, in GiB. *

        *
      • *
      • *

        * block-device-mapping.volume-type - The volume type of the * EBS volume (gp2 | io1 | st1 | * sc1 | standard). *

        *
      • *
      • *

        * description - The description of the image (provided during * image creation). *

        *
      • *
      • *

        * hypervisor - The hypervisor type (ovm | * xen). *

        *
      • *
      • *

        * image-id - The ID of the image. *

        *
      • *
      • *

        * image-type - The image type (machine | * kernel | ramdisk). *

        *
      • *
      • *

        * is-public - A Boolean that indicates whether the image is * public. *

        *
      • *
      • *

        * kernel-id - The kernel ID. *

        *
      • *
      • *

        * manifest-location - The location of the image manifest. *

        *
      • *
      • *

        * name - The name of the AMI (provided during image creation). *

        *
      • *
      • *

        * owner-alias - The AWS account alias (for example, * amazon). *

        *
      • *
      • *

        * owner-id - The AWS account ID of the image owner. *

        *
      • *
      • *

        * platform - The platform. To only list Windows-based AMIs, * use windows. *

        *
      • *
      • *

        * product-code - The product code. *

        *
      • *
      • *

        * product-code.type - The type of the product code ( * devpay | marketplace). *

        *
      • *
      • *

        * ramdisk-id - The RAM disk ID. *

        *
      • *
      • *

        * root-device-name - The name of the root device volume (for * example, /dev/sda1). *

        *
      • *
      • *

        * root-device-type - The type of the root device volume ( * ebs | instance-store). *

        *
      • *
      • *

        * state - The state of the image (available | * pending | failed). *

        *
      • *
      • *

        * state-reason-code - The reason code for the state change. *

        *
      • *
      • *

        * state-reason-message - The message for the state change. *

        *
      • *
      • *

        * tag:key=value - The key/value combination of a * tag assigned to the resource. *

        *
      • *
      • *

        * tag-key - The key of a tag assigned to the resource. This * filter is independent of the tag-value filter. For example, if you use * both the filter "tag-key=Purpose" and the filter "tag-value=X", you get * any resources assigned both the tag key Purpose (regardless of what the * tag's value is), and the tag value X (regardless of what the tag's key * is). If you want to list only resources where Purpose is X, see the * tag:key=value filter. *

        *
      • *
      • *

        * tag-value - The value of a tag assigned to the resource. * This filter is independent of the tag-key filter. *

        *
      • *
      • *

        * virtualization-type - The virtualization type ( * paravirtual | hvm). *

        *
      • *
      *

      * NOTE: This method appends the values to the existing list (if * any). Use {@link #setFilters(java.util.Collection)} or * {@link #withFilters(java.util.Collection)} if you want to override the * existing values. *

      * * @param filters * One or more filters.

      *
        *
      • *

        * architecture - The image architecture ( * i386 | x86_64). *

        *
      • *
      • *

        * block-device-mapping.delete-on-termination - A * Boolean value that indicates whether the Amazon EBS volume is * deleted on instance termination. *

        *
      • *
      • *

        * block-device-mapping.device-name - The device name * for the EBS volume (for example, /dev/sdh). *

        *
      • *
      • *

        * block-device-mapping.snapshot-id - The ID of the * snapshot used for the EBS volume. *

        *
      • *
      • *

        * block-device-mapping.volume-size - The volume size of * the EBS volume, in GiB. *

        *
      • *
      • *

        * block-device-mapping.volume-type - The volume type of * the EBS volume (gp2 | io1 | * st1 | sc1 | standard). *

        *
      • *
      • *

        * description - The description of the image (provided * during image creation). *

        *
      • *
      • *

        * hypervisor - The hypervisor type (ovm | * xen). *

        *
      • *
      • *

        * image-id - The ID of the image. *

        *
      • *
      • *

        * image-type - The image type (machine | * kernel | ramdisk). *

        *
      • *
      • *

        * is-public - A Boolean that indicates whether the * image is public. *

        *
      • *
      • *

        * kernel-id - The kernel ID. *

        *
      • *
      • *

        * manifest-location - The location of the image * manifest. *

        *
      • *
      • *

        * name - The name of the AMI (provided during image * creation). *

        *
      • *
      • *

        * owner-alias - The AWS account alias (for example, * amazon). *

        *
      • *
      • *

        * owner-id - The AWS account ID of the image owner. *

        *
      • *
      • *

        * platform - The platform. To only list Windows-based * AMIs, use windows. *

        *
      • *
      • *

        * product-code - The product code. *

        *
      • *
      • *

        * product-code.type - The type of the product code ( * devpay | marketplace). *

        *
      • *
      • *

        * ramdisk-id - The RAM disk ID. *

        *
      • *
      • *

        * root-device-name - The name of the root device volume * (for example, /dev/sda1). *

        *
      • *
      • *

        * root-device-type - The type of the root device volume * (ebs | instance-store). *

        *
      • *
      • *

        * state - The state of the image ( * available | pending | * failed). *

        *
      • *
      • *

        * state-reason-code - The reason code for the state * change. *

        *
      • *
      • *

        * state-reason-message - The message for the state * change. *

        *
      • *
      • *

        * tag:key=value - The key/value * combination of a tag assigned to the resource. *

        *
      • *
      • *

        * tag-key - The key of a tag assigned to the resource. * This filter is independent of the tag-value filter. For example, * if you use both the filter "tag-key=Purpose" and the filter * "tag-value=X", you get any resources assigned both the tag key * Purpose (regardless of what the tag's value is), and the tag value * X (regardless of what the tag's key is). If you want to list only * resources where Purpose is X, see the tag * :key=value filter. *

        *
      • *
      • *

        * tag-value - The value of a tag assigned to the * resource. This filter is independent of the tag-key * filter. *

        *
      • *
      • *

        * virtualization-type - The virtualization type ( * paravirtual | hvm). *

        *
      • * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withFilters(Filter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList( filters.length)); } for (Filter ele : filters) { this.filters.add(ele); } return this; } /** *

        * One or more filters. *

        *
          *
        • *

          * architecture - The image architecture (i386 | * x86_64). *

          *
        • *
        • *

          * block-device-mapping.delete-on-termination - A Boolean value * that indicates whether the Amazon EBS volume is deleted on instance * termination. *

          *
        • *
        • *

          * block-device-mapping.device-name - The device name for the * EBS volume (for example, /dev/sdh). *

          *
        • *
        • *

          * block-device-mapping.snapshot-id - The ID of the snapshot * used for the EBS volume. *

          *
        • *
        • *

          * block-device-mapping.volume-size - The volume size of the * EBS volume, in GiB. *

          *
        • *
        • *

          * block-device-mapping.volume-type - The volume type of the * EBS volume (gp2 | io1 | st1 | * sc1 | standard). *

          *
        • *
        • *

          * description - The description of the image (provided during * image creation). *

          *
        • *
        • *

          * hypervisor - The hypervisor type (ovm | * xen). *

          *
        • *
        • *

          * image-id - The ID of the image. *

          *
        • *
        • *

          * image-type - The image type (machine | * kernel | ramdisk). *

          *
        • *
        • *

          * is-public - A Boolean that indicates whether the image is * public. *

          *
        • *
        • *

          * kernel-id - The kernel ID. *

          *
        • *
        • *

          * manifest-location - The location of the image manifest. *

          *
        • *
        • *

          * name - The name of the AMI (provided during image creation). *

          *
        • *
        • *

          * owner-alias - The AWS account alias (for example, * amazon). *

          *
        • *
        • *

          * owner-id - The AWS account ID of the image owner. *

          *
        • *
        • *

          * platform - The platform. To only list Windows-based AMIs, * use windows. *

          *
        • *
        • *

          * product-code - The product code. *

          *
        • *
        • *

          * product-code.type - The type of the product code ( * devpay | marketplace). *

          *
        • *
        • *

          * ramdisk-id - The RAM disk ID. *

          *
        • *
        • *

          * root-device-name - The name of the root device volume (for * example, /dev/sda1). *

          *
        • *
        • *

          * root-device-type - The type of the root device volume ( * ebs | instance-store). *

          *
        • *
        • *

          * state - The state of the image (available | * pending | failed). *

          *
        • *
        • *

          * state-reason-code - The reason code for the state change. *

          *
        • *
        • *

          * state-reason-message - The message for the state change. *

          *
        • *
        • *

          * tag:key=value - The key/value combination of a * tag assigned to the resource. *

          *
        • *
        • *

          * tag-key - The key of a tag assigned to the resource. This * filter is independent of the tag-value filter. For example, if you use * both the filter "tag-key=Purpose" and the filter "tag-value=X", you get * any resources assigned both the tag key Purpose (regardless of what the * tag's value is), and the tag value X (regardless of what the tag's key * is). If you want to list only resources where Purpose is X, see the * tag:key=value filter. *

          *
        • *
        • *

          * tag-value - The value of a tag assigned to the resource. * This filter is independent of the tag-key filter. *

          *
        • *
        • *

          * virtualization-type - The virtualization type ( * paravirtual | hvm). *

          *
        • *
        * * @param filters * One or more filters.

        *
          *
        • *

          * architecture - The image architecture ( * i386 | x86_64). *

          *
        • *
        • *

          * block-device-mapping.delete-on-termination - A * Boolean value that indicates whether the Amazon EBS volume is * deleted on instance termination. *

          *
        • *
        • *

          * block-device-mapping.device-name - The device name * for the EBS volume (for example, /dev/sdh). *

          *
        • *
        • *

          * block-device-mapping.snapshot-id - The ID of the * snapshot used for the EBS volume. *

          *
        • *
        • *

          * block-device-mapping.volume-size - The volume size of * the EBS volume, in GiB. *

          *
        • *
        • *

          * block-device-mapping.volume-type - The volume type of * the EBS volume (gp2 | io1 | * st1 | sc1 | standard). *

          *
        • *
        • *

          * description - The description of the image (provided * during image creation). *

          *
        • *
        • *

          * hypervisor - The hypervisor type (ovm | * xen). *

          *
        • *
        • *

          * image-id - The ID of the image. *

          *
        • *
        • *

          * image-type - The image type (machine | * kernel | ramdisk). *

          *
        • *
        • *

          * is-public - A Boolean that indicates whether the * image is public. *

          *
        • *
        • *

          * kernel-id - The kernel ID. *

          *
        • *
        • *

          * manifest-location - The location of the image * manifest. *

          *
        • *
        • *

          * name - The name of the AMI (provided during image * creation). *

          *
        • *
        • *

          * owner-alias - The AWS account alias (for example, * amazon). *

          *
        • *
        • *

          * owner-id - The AWS account ID of the image owner. *

          *
        • *
        • *

          * platform - The platform. To only list Windows-based * AMIs, use windows. *

          *
        • *
        • *

          * product-code - The product code. *

          *
        • *
        • *

          * product-code.type - The type of the product code ( * devpay | marketplace). *

          *
        • *
        • *

          * ramdisk-id - The RAM disk ID. *

          *
        • *
        • *

          * root-device-name - The name of the root device volume * (for example, /dev/sda1). *

          *
        • *
        • *

          * root-device-type - The type of the root device volume * (ebs | instance-store). *

          *
        • *
        • *

          * state - The state of the image ( * available | pending | * failed). *

          *
        • *
        • *

          * state-reason-code - The reason code for the state * change. *

          *
        • *
        • *

          * state-reason-message - The message for the state * change. *

          *
        • *
        • *

          * tag:key=value - The key/value * combination of a tag assigned to the resource. *

          *
        • *
        • *

          * tag-key - The key of a tag assigned to the resource. * This filter is independent of the tag-value filter. For example, * if you use both the filter "tag-key=Purpose" and the filter * "tag-value=X", you get any resources assigned both the tag key * Purpose (regardless of what the tag's value is), and the tag value * X (regardless of what the tag's key is). If you want to list only * resources where Purpose is X, see the tag * :key=value filter. *

          *
        • *
        • *

          * tag-value - The value of a tag assigned to the * resource. This filter is independent of the tag-key * filter. *

          *
        • *
        • *

          * virtualization-type - The virtualization type ( * paravirtual | hvm). *

          *
        • * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeImagesRequest withFilters( java.util.Collection filters) { setFilters(filters); return this; } /** * This method is intended for internal use only. Returns the marshaled * request configured with additional parameters to enable operation * dry-run. */ @Override public Request getDryRunRequest() { Request request = new DescribeImagesRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getImageIds() != null) sb.append("ImageIds: " + getImageIds() + ","); if (getOwners() != null) sb.append("Owners: " + getOwners() + ","); if (getExecutableUsers() != null) sb.append("ExecutableUsers: " + getExecutableUsers() + ","); if (getFilters() != null) sb.append("Filters: " + getFilters()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeImagesRequest == false) return false; DescribeImagesRequest other = (DescribeImagesRequest) obj; if (other.getImageIds() == null ^ this.getImageIds() == null) return false; if (other.getImageIds() != null && other.getImageIds().equals(this.getImageIds()) == false) return false; if (other.getOwners() == null ^ this.getOwners() == null) return false; if (other.getOwners() != null && other.getOwners().equals(this.getOwners()) == false) return false; if (other.getExecutableUsers() == null ^ this.getExecutableUsers() == null) return false; if (other.getExecutableUsers() != null && other.getExecutableUsers().equals(this.getExecutableUsers()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageIds() == null) ? 0 : getImageIds().hashCode()); hashCode = prime * hashCode + ((getOwners() == null) ? 0 : getOwners().hashCode()); hashCode = prime * hashCode + ((getExecutableUsers() == null) ? 0 : getExecutableUsers() .hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); return hashCode; } @Override public DescribeImagesRequest clone() { return (DescribeImagesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy