Class S3Storage

java.lang.Object
com.amazonaws.services.ec2.model.S3Storage
All Implemented Interfaces:
Serializable, Cloneable

public class S3Storage extends Object implements Serializable, Cloneable

Describes the storage parameters for S3 and S3 buckets for an instance store-backed AMI.

See Also:
  • Constructor Details

    • S3Storage

      public S3Storage()
  • Method Details

    • setBucket

      public void setBucket(String bucket)

      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:
      bucket - 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.
    • getBucket

      public String getBucket()

      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.
    • withBucket

      public S3Storage withBucket(String bucket)

      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:
      bucket - 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.
    • setPrefix

      public void setPrefix(String prefix)

      The beginning of the file name of the AMI.

      Parameters:
      prefix - The beginning of the file name of the AMI.
    • getPrefix

      public String getPrefix()

      The beginning of the file name of the AMI.

      Returns:
      The beginning of the file name of the AMI.
    • withPrefix

      public S3Storage withPrefix(String prefix)

      The beginning of the file name of the AMI.

      Parameters:
      prefix - The beginning of the file name of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAWSAccessKeyId

      public void setAWSAccessKeyId(String aWSAccessKeyId)

      The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.

      Parameters:
      aWSAccessKeyId - The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
    • getAWSAccessKeyId

      public String getAWSAccessKeyId()

      The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.

      Returns:
      The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
    • withAWSAccessKeyId

      public S3Storage withAWSAccessKeyId(String aWSAccessKeyId)

      The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.

      Parameters:
      aWSAccessKeyId - The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUploadPolicy

      public void setUploadPolicy(String uploadPolicy)

      A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.

      Parameters:
      uploadPolicy - A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.
    • getUploadPolicy

      public String getUploadPolicy()

      A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.

      Returns:
      A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.
    • withUploadPolicy

      public S3Storage withUploadPolicy(String uploadPolicy)

      A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.

      Parameters:
      uploadPolicy - A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUploadPolicySignature

      public void setUploadPolicySignature(String uploadPolicySignature)

      The signature of the Base64 encoded JSON document.

      Parameters:
      uploadPolicySignature - The signature of the Base64 encoded JSON document.
    • getUploadPolicySignature

      public String getUploadPolicySignature()

      The signature of the Base64 encoded JSON document.

      Returns:
      The signature of the Base64 encoded JSON document.
    • withUploadPolicySignature

      public S3Storage withUploadPolicySignature(String uploadPolicySignature)

      The signature of the Base64 encoded JSON document.

      Parameters:
      uploadPolicySignature - The signature of the Base64 encoded JSON document.
      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:
    • equals

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

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

      public S3Storage clone()
      Overrides:
      clone in class Object