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

com.amazonaws.services.ec2.model.ImportImageRequest 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.ImportImageRequestMarshaller;

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

    /**
     * 

* The architecture of the virtual machine. *

*

* Valid values: i386 | x86_64 | arm64 *

*/ private String architecture; /** *

* The client-specific data. *

*/ private ClientData clientData; /** *

* The token to enable idempotency for VM import requests. *

*/ private String clientToken; /** *

* A description string for the import image task. *

*/ private String description; /** *

* Information about the disk containers. *

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

* Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS is used * unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more * information, see Amazon EBS * Encryption in the Amazon Elastic Compute Cloud User Guide. *

*/ private Boolean encrypted; /** *

* The target hypervisor platform. *

*

* Valid values: xen *

*/ private String hypervisor; /** *

* An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the * encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter is not * specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted * flag must also be set. *

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, the * AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, * the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even * though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. *

*/ private String kmsKeyId; /** *

* The license type to be used for the Amazon Machine Image (AMI) after importing. *

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third party * cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. *

*/ private String licenseType; /** *

* The operating system of the virtual machine. *

*

* Valid values: Windows | Linux *

*/ private String platform; /** *

* The name of the role to use when not using the default role, 'vmimport'. *

*/ private String roleName; /** *

* The architecture of the virtual machine. *

*

* Valid values: i386 | x86_64 | arm64 *

* * @param architecture * The architecture of the virtual machine.

*

* Valid values: i386 | x86_64 | arm64 */ public void setArchitecture(String architecture) { this.architecture = architecture; } /** *

* The architecture of the virtual machine. *

*

* Valid values: i386 | x86_64 | arm64 *

* * @return The architecture of the virtual machine.

*

* Valid values: i386 | x86_64 | arm64 */ public String getArchitecture() { return this.architecture; } /** *

* The architecture of the virtual machine. *

*

* Valid values: i386 | x86_64 | arm64 *

* * @param architecture * The architecture of the virtual machine.

*

* Valid values: i386 | x86_64 | arm64 * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withArchitecture(String architecture) { setArchitecture(architecture); return this; } /** *

* The client-specific data. *

* * @param clientData * The client-specific data. */ public void setClientData(ClientData clientData) { this.clientData = clientData; } /** *

* The client-specific data. *

* * @return The client-specific data. */ public ClientData getClientData() { return this.clientData; } /** *

* The client-specific data. *

* * @param clientData * The client-specific data. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withClientData(ClientData clientData) { setClientData(clientData); return this; } /** *

* The token to enable idempotency for VM import requests. *

* * @param clientToken * The token to enable idempotency for VM import requests. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* The token to enable idempotency for VM import requests. *

* * @return The token to enable idempotency for VM import requests. */ public String getClientToken() { return this.clientToken; } /** *

* The token to enable idempotency for VM import requests. *

* * @param clientToken * The token to enable idempotency for VM import requests. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* A description string for the import image task. *

* * @param description * A description string for the import image task. */ public void setDescription(String description) { this.description = description; } /** *

* A description string for the import image task. *

* * @return A description string for the import image task. */ public String getDescription() { return this.description; } /** *

* A description string for the import image task. *

* * @param description * A description string for the import image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withDescription(String description) { setDescription(description); return this; } /** *

* Information about the disk containers. *

* * @return Information about the disk containers. */ public java.util.List getDiskContainers() { if (diskContainers == null) { diskContainers = new com.amazonaws.internal.SdkInternalList(); } return diskContainers; } /** *

* Information about the disk containers. *

* * @param diskContainers * Information about the disk containers. */ public void setDiskContainers(java.util.Collection diskContainers) { if (diskContainers == null) { this.diskContainers = null; return; } this.diskContainers = new com.amazonaws.internal.SdkInternalList(diskContainers); } /** *

* Information about the disk containers. *

*

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

* * @param diskContainers * Information about the disk containers. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withDiskContainers(ImageDiskContainer... diskContainers) { if (this.diskContainers == null) { setDiskContainers(new com.amazonaws.internal.SdkInternalList(diskContainers.length)); } for (ImageDiskContainer ele : diskContainers) { this.diskContainers.add(ele); } return this; } /** *

* Information about the disk containers. *

* * @param diskContainers * Information about the disk containers. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withDiskContainers(java.util.Collection diskContainers) { setDiskContainers(diskContainers); return this; } /** *

* Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS is used * unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more * information, see Amazon EBS * Encryption in the Amazon Elastic Compute Cloud User Guide. *

* * @param encrypted * Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS * is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using * KmsKeyId. For more information, see Amazon EBS Encryption in * the Amazon Elastic Compute Cloud User Guide. */ public void setEncrypted(Boolean encrypted) { this.encrypted = encrypted; } /** *

* Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS is used * unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more * information, see Amazon EBS * Encryption in the Amazon Elastic Compute Cloud User Guide. *

* * @return Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS * is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using * KmsKeyId. For more information, see Amazon EBS Encryption * in the Amazon Elastic Compute Cloud User Guide. */ public Boolean getEncrypted() { return this.encrypted; } /** *

* Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS is used * unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more * information, see Amazon EBS * Encryption in the Amazon Elastic Compute Cloud User Guide. *

* * @param encrypted * Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS * is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using * KmsKeyId. For more information, see Amazon EBS Encryption in * the Amazon Elastic Compute Cloud User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withEncrypted(Boolean encrypted) { setEncrypted(encrypted); return this; } /** *

* Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS is used * unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more * information, see Amazon EBS * Encryption in the Amazon Elastic Compute Cloud User Guide. *

* * @return Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS * is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using * KmsKeyId. For more information, see Amazon EBS Encryption * in the Amazon Elastic Compute Cloud User Guide. */ public Boolean isEncrypted() { return this.encrypted; } /** *

* The target hypervisor platform. *

*

* Valid values: xen *

* * @param hypervisor * The target hypervisor platform.

*

* Valid values: xen */ public void setHypervisor(String hypervisor) { this.hypervisor = hypervisor; } /** *

* The target hypervisor platform. *

*

* Valid values: xen *

* * @return The target hypervisor platform.

*

* Valid values: xen */ public String getHypervisor() { return this.hypervisor; } /** *

* The target hypervisor platform. *

*

* Valid values: xen *

* * @param hypervisor * The target hypervisor platform.

*

* Valid values: xen * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withHypervisor(String hypervisor) { setHypervisor(hypervisor); return this; } /** *

* An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the * encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter is not * specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted * flag must also be set. *

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, the * AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, * the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even * though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. *

* * @param kmsKeyId * An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating * the encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter * is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the * Encrypted flag must also be set.

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For * example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of * the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For * example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region * of the CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. * For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete * even though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the * encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter is not * specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted * flag must also be set. *

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, the * AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, * the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even * though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. *

* * @return An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating * the encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this * parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the * Encrypted flag must also be set.

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For * example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of * the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For * example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the * Region of the CMK, the AWS account ID of the CMK owner, the alias namespace, and then the * CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete * even though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the * encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter is not * specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted * flag must also be set. *

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, the * AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the CMK, * the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even * though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. *

* * @param kmsKeyId * An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating * the encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter * is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the * Encrypted flag must also be set.

*

* The CMK identifier may be provided in any of the following formats: *

*
    *
  • *

    * Key ID *

    *
  • *
  • *

    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region of the * CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For * example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
  • *

    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of * the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For * example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. *

    *
  • *
  • *

    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the Region * of the CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. * For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. *

    *
  • *
*

* AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete * even though you provided an invalid identifier. This action will eventually report failure. *

*

* The specified CMK must exist in the Region that the AMI is being copied to. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* The license type to be used for the Amazon Machine Image (AMI) after importing. *

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third party * cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. *

* * @param licenseType * The license type to be used for the Amazon Machine Image (AMI) after importing.

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third * party cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. */ public void setLicenseType(String licenseType) { this.licenseType = licenseType; } /** *

* The license type to be used for the Amazon Machine Image (AMI) after importing. *

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third party * cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. *

* * @return The license type to be used for the Amazon Machine Image (AMI) after importing.

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third * party cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. */ public String getLicenseType() { return this.licenseType; } /** *

* The license type to be used for the Amazon Machine Image (AMI) after importing. *

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third party * cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. *

* * @param licenseType * The license type to be used for the Amazon Machine Image (AMI) after importing.

*

* By default, we detect the source-system operating system (OS) and apply the appropriate license. Specify * AWS to replace the source-system license with an AWS license, if appropriate. Specify * BYOL to retain the source-system license, if appropriate. *

*

* To use BYOL, you must have existing licenses with rights to use these licenses in a third * party cloud, such as AWS. For more information, see Prerequisites in the VM Import/Export User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withLicenseType(String licenseType) { setLicenseType(licenseType); return this; } /** *

* The operating system of the virtual machine. *

*

* Valid values: Windows | Linux *

* * @param platform * The operating system of the virtual machine.

*

* Valid values: Windows | Linux */ public void setPlatform(String platform) { this.platform = platform; } /** *

* The operating system of the virtual machine. *

*

* Valid values: Windows | Linux *

* * @return The operating system of the virtual machine.

*

* Valid values: Windows | Linux */ public String getPlatform() { return this.platform; } /** *

* The operating system of the virtual machine. *

*

* Valid values: Windows | Linux *

* * @param platform * The operating system of the virtual machine.

*

* Valid values: Windows | Linux * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withPlatform(String platform) { setPlatform(platform); return this; } /** *

* The name of the role to use when not using the default role, 'vmimport'. *

* * @param roleName * The name of the role to use when not using the default role, 'vmimport'. */ public void setRoleName(String roleName) { this.roleName = roleName; } /** *

* The name of the role to use when not using the default role, 'vmimport'. *

* * @return The name of the role to use when not using the default role, 'vmimport'. */ public String getRoleName() { return this.roleName; } /** *

* The name of the role to use when not using the default role, 'vmimport'. *

* * @param roleName * The name of the role to use when not using the default role, 'vmimport'. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withRoleName(String roleName) { setRoleName(roleName); 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 ImportImageRequestMarshaller().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 (getArchitecture() != null) sb.append("Architecture: ").append(getArchitecture()).append(","); if (getClientData() != null) sb.append("ClientData: ").append(getClientData()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDiskContainers() != null) sb.append("DiskContainers: ").append(getDiskContainers()).append(","); if (getEncrypted() != null) sb.append("Encrypted: ").append(getEncrypted()).append(","); if (getHypervisor() != null) sb.append("Hypervisor: ").append(getHypervisor()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getLicenseType() != null) sb.append("LicenseType: ").append(getLicenseType()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()).append(","); if (getRoleName() != null) sb.append("RoleName: ").append(getRoleName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImportImageRequest == false) return false; ImportImageRequest other = (ImportImageRequest) obj; if (other.getArchitecture() == null ^ this.getArchitecture() == null) return false; if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false) return false; if (other.getClientData() == null ^ this.getClientData() == null) return false; if (other.getClientData() != null && other.getClientData().equals(this.getClientData()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == 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.getDiskContainers() == null ^ this.getDiskContainers() == null) return false; if (other.getDiskContainers() != null && other.getDiskContainers().equals(this.getDiskContainers()) == false) return false; if (other.getEncrypted() == null ^ this.getEncrypted() == null) return false; if (other.getEncrypted() != null && other.getEncrypted().equals(this.getEncrypted()) == false) return false; if (other.getHypervisor() == null ^ this.getHypervisor() == null) return false; if (other.getHypervisor() != null && other.getHypervisor().equals(this.getHypervisor()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getLicenseType() == null ^ this.getLicenseType() == null) return false; if (other.getLicenseType() != null && other.getLicenseType().equals(this.getLicenseType()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getRoleName() == null ^ this.getRoleName() == null) return false; if (other.getRoleName() != null && other.getRoleName().equals(this.getRoleName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode()); hashCode = prime * hashCode + ((getClientData() == null) ? 0 : getClientData().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDiskContainers() == null) ? 0 : getDiskContainers().hashCode()); hashCode = prime * hashCode + ((getEncrypted() == null) ? 0 : getEncrypted().hashCode()); hashCode = prime * hashCode + ((getHypervisor() == null) ? 0 : getHypervisor().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getLicenseType() == null) ? 0 : getLicenseType().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getRoleName() == null) ? 0 : getRoleName().hashCode()); return hashCode; } @Override public ImportImageRequest clone() { return (ImportImageRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy