Class BundleInstanceRequest

    • Constructor Detail

      • 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 Detail

      • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object