Class BundleInstanceRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.BundleInstanceRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<BundleInstanceRequest>, Serializable, Cloneable

public class BundleInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<BundleInstanceRequest>

Contains the parameters for BundleInstance.

See Also:
  • Constructor Details

    • BundleInstanceRequest

      public BundleInstanceRequest()
      Default constructor for BundleInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • BundleInstanceRequest

      public BundleInstanceRequest(String instanceId, Storage storage)
      Constructs a new BundleInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      instanceId - The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

      storage - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
  • Method Details

    • setInstanceId

      public void setInstanceId(String instanceId)

      The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

      Parameters:
      instanceId - The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

    • getInstanceId

      public String getInstanceId()

      The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

      Returns:
      The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

    • withInstanceId

      public BundleInstanceRequest withInstanceId(String instanceId)

      The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

      Parameters:
      instanceId - The ID of the instance to bundle.

      Type: String

      Default: None

      Required: Yes

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStorage

      public void setStorage(Storage storage)

      The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

      Parameters:
      storage - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
    • getStorage

      public Storage getStorage()

      The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

      Returns:
      The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
    • withStorage

      public BundleInstanceRequest withStorage(Storage storage)

      The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

      Parameters:
      storage - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<BundleInstanceRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<BundleInstanceRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public BundleInstanceRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: