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

com.amazonaws.services.ec2.model.RegisterImageRequest 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.12.772
Show newest version
/*
 * Copyright 2014-2019 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;

import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.RegisterImageRequestMarshaller;

/**
 * 

* Contains the parameters for RegisterImage. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RegisterImageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** *

* The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon EC2. For * more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. *

*/ private String imageLocation; /** *

* The architecture of the AMI. *

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. *

*/ private String architecture; /** *

* The block device mapping entries. *

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

* A description for your AMI. *

*/ private String description; /** *

* Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch * from the AMI. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

*/ private Boolean enaSupport; /** *

* The ID of the kernel. *

*/ private String kernelId; /** *

* A name for your AMI. *

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), * slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) *

*/ private String name; /** *

* The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can * use the AWS Marketplace to bill for the use of an AMI. *

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

* The ID of the RAM disk. *

*/ private String ramdiskId; /** *

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

*/ private String rootDeviceName; /** *

* Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the * AMI and any instances that you launch from the AMI. *

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

*/ private String sriovNetSupport; /** *

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

*

* Default: paravirtual *

*/ private String virtualizationType; /** * Default constructor for RegisterImageRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize the object after creating it. */ public RegisterImageRequest() { } /** * Constructs a new RegisterImageRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param imageLocation * The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon * EC2. For more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. */ public RegisterImageRequest(String imageLocation) { setImageLocation(imageLocation); } /** *

* The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon EC2. For * more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. *

* * @param imageLocation * The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon * EC2. For more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. */ public void setImageLocation(String imageLocation) { this.imageLocation = imageLocation; } /** *

* The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon EC2. For * more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. *

* * @return The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon * EC2. For more information, see Canned ACLs in * the Amazon S3 Service Developer Guide. */ public String getImageLocation() { return this.imageLocation; } /** *

* The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon EC2. For * more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. *

* * @param imageLocation * The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the * aws-exec-read canned access control list (ACL) to ensure that it can be accessed by Amazon * EC2. For more information, see Canned ACLs in the * Amazon S3 Service Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withImageLocation(String imageLocation) { setImageLocation(imageLocation); return this; } /** *

* The architecture of the AMI. *

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. *

* * @param architecture * The architecture of the AMI.

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. * @see ArchitectureValues */ public void setArchitecture(String architecture) { this.architecture = architecture; } /** *

* The architecture of the AMI. *

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. *

* * @return The architecture of the AMI.

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. * @see ArchitectureValues */ public String getArchitecture() { return this.architecture; } /** *

* The architecture of the AMI. *

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. *

* * @param architecture * The architecture of the AMI.

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. * @return Returns a reference to this object so that method calls can be chained together. * @see ArchitectureValues */ public RegisterImageRequest withArchitecture(String architecture) { setArchitecture(architecture); return this; } /** *

* The architecture of the AMI. *

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. *

* * @param architecture * The architecture of the AMI.

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. * @see ArchitectureValues */ public void setArchitecture(ArchitectureValues architecture) { withArchitecture(architecture); } /** *

* The architecture of the AMI. *

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. *

* * @param architecture * The architecture of the AMI.

*

* Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture * specified in the manifest file. * @return Returns a reference to this object so that method calls can be chained together. * @see ArchitectureValues */ public RegisterImageRequest withArchitecture(ArchitectureValues architecture) { this.architecture = architecture.toString(); return this; } /** *

* The block device mapping entries. *

* * @return The block device mapping entries. */ public java.util.List getBlockDeviceMappings() { if (blockDeviceMappings == null) { blockDeviceMappings = new com.amazonaws.internal.SdkInternalList(); } return blockDeviceMappings; } /** *

* The block device mapping entries. *

* * @param blockDeviceMappings * The block device mapping entries. */ public void setBlockDeviceMappings(java.util.Collection blockDeviceMappings) { if (blockDeviceMappings == null) { this.blockDeviceMappings = null; return; } this.blockDeviceMappings = new com.amazonaws.internal.SdkInternalList(blockDeviceMappings); } /** *

* The block device mapping entries. *

*

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

* * @param blockDeviceMappings * The block device mapping entries. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) { if (this.blockDeviceMappings == null) { setBlockDeviceMappings(new com.amazonaws.internal.SdkInternalList(blockDeviceMappings.length)); } for (BlockDeviceMapping ele : blockDeviceMappings) { this.blockDeviceMappings.add(ele); } return this; } /** *

* The block device mapping entries. *

* * @param blockDeviceMappings * The block device mapping entries. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withBlockDeviceMappings(java.util.Collection blockDeviceMappings) { setBlockDeviceMappings(blockDeviceMappings); return this; } /** *

* A description for your AMI. *

* * @param description * A description for your AMI. */ public void setDescription(String description) { this.description = description; } /** *

* A description for your AMI. *

* * @return A description for your AMI. */ public String getDescription() { return this.description; } /** *

* A description for your AMI. *

* * @param description * A description for your AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withDescription(String description) { setDescription(description); return this; } /** *

* Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch * from the AMI. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @param enaSupport * Set to true to enable enhanced networking with ENA for the AMI and any instances that you * launch from the AMI.

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. */ public void setEnaSupport(Boolean enaSupport) { this.enaSupport = enaSupport; } /** *

* Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch * from the AMI. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @return Set to true to enable enhanced networking with ENA for the AMI and any instances that you * launch from the AMI.

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. */ public Boolean getEnaSupport() { return this.enaSupport; } /** *

* Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch * from the AMI. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @param enaSupport * Set to true to enable enhanced networking with ENA for the AMI and any instances that you * launch from the AMI.

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withEnaSupport(Boolean enaSupport) { setEnaSupport(enaSupport); return this; } /** *

* Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch * from the AMI. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @return Set to true to enable enhanced networking with ENA for the AMI and any instances that you * launch from the AMI.

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. */ public Boolean isEnaSupport() { return this.enaSupport; } /** *

* The ID of the kernel. *

* * @param kernelId * The ID of the kernel. */ public void setKernelId(String kernelId) { this.kernelId = kernelId; } /** *

* The ID of the kernel. *

* * @return The ID of the kernel. */ public String getKernelId() { return this.kernelId; } /** *

* The ID of the kernel. *

* * @param kernelId * The ID of the kernel. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withKernelId(String kernelId) { setKernelId(kernelId); return this; } /** *

* A name for your AMI. *

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), * slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) *

* * @param name * A name for your AMI.

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods * (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) */ public void setName(String name) { this.name = name; } /** *

* A name for your AMI. *

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), * slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) *

* * @return A name for your AMI.

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods * (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) */ public String getName() { return this.name; } /** *

* A name for your AMI. *

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), * slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) *

* * @param name * A name for your AMI.

*

* Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods * (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withName(String name) { setName(name); return this; } /** *

* The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can * use the AWS Marketplace to bill for the use of an AMI. *

* * @return The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, * you can use the AWS Marketplace to bill for the use of an AMI. */ public java.util.List getBillingProducts() { if (billingProducts == null) { billingProducts = new com.amazonaws.internal.SdkInternalList(); } return billingProducts; } /** *

* The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can * use the AWS Marketplace to bill for the use of an AMI. *

* * @param billingProducts * The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, * you can use the AWS Marketplace to bill for the use of an AMI. */ public void setBillingProducts(java.util.Collection billingProducts) { if (billingProducts == null) { this.billingProducts = null; return; } this.billingProducts = new com.amazonaws.internal.SdkInternalList(billingProducts); } /** *

* The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can * use the AWS Marketplace to bill for the use of an AMI. *

*

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

* * @param billingProducts * The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, * you can use the AWS Marketplace to bill for the use of an AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withBillingProducts(String... billingProducts) { if (this.billingProducts == null) { setBillingProducts(new com.amazonaws.internal.SdkInternalList(billingProducts.length)); } for (String ele : billingProducts) { this.billingProducts.add(ele); } return this; } /** *

* The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can * use the AWS Marketplace to bill for the use of an AMI. *

* * @param billingProducts * The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, * you can use the AWS Marketplace to bill for the use of an AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withBillingProducts(java.util.Collection billingProducts) { setBillingProducts(billingProducts); return this; } /** *

* The ID of the RAM disk. *

* * @param ramdiskId * The ID of the RAM disk. */ public void setRamdiskId(String ramdiskId) { this.ramdiskId = ramdiskId; } /** *

* The ID of the RAM disk. *

* * @return The ID of the RAM disk. */ public String getRamdiskId() { return this.ramdiskId; } /** *

* The ID of the RAM disk. *

* * @param ramdiskId * The ID of the RAM disk. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withRamdiskId(String ramdiskId) { setRamdiskId(ramdiskId); return this; } /** *

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

* * @param rootDeviceName * The device name of the root device volume (for example, /dev/sda1). */ public void setRootDeviceName(String rootDeviceName) { this.rootDeviceName = rootDeviceName; } /** *

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

* * @return The device name of the root device volume (for example, /dev/sda1). */ public String getRootDeviceName() { return this.rootDeviceName; } /** *

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

* * @param rootDeviceName * The device name of the root device volume (for example, /dev/sda1). * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withRootDeviceName(String rootDeviceName) { setRootDeviceName(rootDeviceName); return this; } /** *

* Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the * AMI and any instances that you launch from the AMI. *

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @param sriovNetSupport * Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface * for the AMI and any instances that you launch from the AMI.

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. */ public void setSriovNetSupport(String sriovNetSupport) { this.sriovNetSupport = sriovNetSupport; } /** *

* Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the * AMI and any instances that you launch from the AMI. *

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @return Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface * for the AMI and any instances that you launch from the AMI.

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. */ public String getSriovNetSupport() { return this.sriovNetSupport; } /** *

* Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the * AMI and any instances that you launch from the AMI. *

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from * the AMI unreachable. *

* * @param sriovNetSupport * Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface * for the AMI and any instances that you launch from the AMI.

*

* There is no way to disable sriovNetSupport at this time. *

*

* This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances * launched from the AMI unreachable. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withSriovNetSupport(String sriovNetSupport) { setSriovNetSupport(sriovNetSupport); return this; } /** *

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

*

* Default: paravirtual *

* * @param virtualizationType * The type of virtualization (hvm | paravirtual).

*

* Default: paravirtual */ public void setVirtualizationType(String virtualizationType) { this.virtualizationType = virtualizationType; } /** *

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

*

* Default: paravirtual *

* * @return The type of virtualization (hvm | paravirtual).

*

* Default: paravirtual */ public String getVirtualizationType() { return this.virtualizationType; } /** *

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

*

* Default: paravirtual *

* * @param virtualizationType * The type of virtualization (hvm | paravirtual).

*

* Default: paravirtual * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterImageRequest withVirtualizationType(String virtualizationType) { setVirtualizationType(virtualizationType); 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 RegisterImageRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getImageLocation() != null) sb.append("ImageLocation: ").append(getImageLocation()).append(","); if (getArchitecture() != null) sb.append("Architecture: ").append(getArchitecture()).append(","); if (getBlockDeviceMappings() != null) sb.append("BlockDeviceMappings: ").append(getBlockDeviceMappings()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEnaSupport() != null) sb.append("EnaSupport: ").append(getEnaSupport()).append(","); if (getKernelId() != null) sb.append("KernelId: ").append(getKernelId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getBillingProducts() != null) sb.append("BillingProducts: ").append(getBillingProducts()).append(","); if (getRamdiskId() != null) sb.append("RamdiskId: ").append(getRamdiskId()).append(","); if (getRootDeviceName() != null) sb.append("RootDeviceName: ").append(getRootDeviceName()).append(","); if (getSriovNetSupport() != null) sb.append("SriovNetSupport: ").append(getSriovNetSupport()).append(","); if (getVirtualizationType() != null) sb.append("VirtualizationType: ").append(getVirtualizationType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RegisterImageRequest == false) return false; RegisterImageRequest other = (RegisterImageRequest) obj; if (other.getImageLocation() == null ^ this.getImageLocation() == null) return false; if (other.getImageLocation() != null && other.getImageLocation().equals(this.getImageLocation()) == false) return false; if (other.getArchitecture() == null ^ this.getArchitecture() == null) return false; if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false) return false; if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == null) return false; if (other.getBlockDeviceMappings() != null && other.getBlockDeviceMappings().equals(this.getBlockDeviceMappings()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEnaSupport() == null ^ this.getEnaSupport() == null) return false; if (other.getEnaSupport() != null && other.getEnaSupport().equals(this.getEnaSupport()) == false) return false; if (other.getKernelId() == null ^ this.getKernelId() == null) return false; if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getBillingProducts() == null ^ this.getBillingProducts() == null) return false; if (other.getBillingProducts() != null && other.getBillingProducts().equals(this.getBillingProducts()) == false) return false; if (other.getRamdiskId() == null ^ this.getRamdiskId() == null) return false; if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == false) return false; if (other.getRootDeviceName() == null ^ this.getRootDeviceName() == null) return false; if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false) return false; if (other.getSriovNetSupport() == null ^ this.getSriovNetSupport() == null) return false; if (other.getSriovNetSupport() != null && other.getSriovNetSupport().equals(this.getSriovNetSupport()) == false) return false; if (other.getVirtualizationType() == null ^ this.getVirtualizationType() == null) return false; if (other.getVirtualizationType() != null && other.getVirtualizationType().equals(this.getVirtualizationType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageLocation() == null) ? 0 : getImageLocation().hashCode()); hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode()); hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEnaSupport() == null) ? 0 : getEnaSupport().hashCode()); hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getBillingProducts() == null) ? 0 : getBillingProducts().hashCode()); hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode()); hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode()); hashCode = prime * hashCode + ((getSriovNetSupport() == null) ? 0 : getSriovNetSupport().hashCode()); hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode()); return hashCode; } @Override public RegisterImageRequest clone() { return (RegisterImageRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy