public class S3Storage
extends java.lang.Object
implements java.io.Serializable
Describes the S3 bucket for an instance store-backed AMI.
| Constructor and Description |
|---|
S3Storage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAWSAccessKeyId()
The access key ID of the owner of the bucket.
|
java.lang.String |
getBucket()
The bucket in which to store the AMI.
|
java.lang.String |
getPrefix()
The beginning of the file name of the AMI.
|
java.lang.String |
getUploadPolicy()
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on your behalf.
|
java.lang.String |
getUploadPolicySignature()
The signature of the Base64 encoded JSON document.
|
int |
hashCode() |
void |
setAWSAccessKeyId(java.lang.String aWSAccessKeyId)
The access key ID of the owner of the bucket.
|
void |
setBucket(java.lang.String bucket)
The bucket in which to store the AMI.
|
void |
setPrefix(java.lang.String prefix)
The beginning of the file name of the AMI.
|
void |
setUploadPolicy(java.lang.String uploadPolicy)
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on your behalf.
|
void |
setUploadPolicySignature(java.lang.String uploadPolicySignature)
The signature of the Base64 encoded JSON document.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
S3Storage |
withAWSAccessKeyId(java.lang.String aWSAccessKeyId)
The access key ID of the owner of the bucket.
|
S3Storage |
withBucket(java.lang.String bucket)
The bucket in which to store the AMI.
|
S3Storage |
withPrefix(java.lang.String prefix)
The beginning of the file name of the AMI.
|
S3Storage |
withUploadPolicy(java.lang.String uploadPolicy)
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on your behalf.
|
S3Storage |
withUploadPolicySignature(java.lang.String uploadPolicySignature)
The signature of the Base64 encoded JSON document.
|
public java.lang.String getBucket()
public void setBucket(java.lang.String bucket)
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.public S3Storage withBucket(java.lang.String bucket)
Returns a reference to this object so that method calls can be chained together.
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.public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix - The beginning of the file name of the AMI.public S3Storage withPrefix(java.lang.String prefix)
Returns a reference to this object so that method calls can be chained together.
prefix - The beginning of the file name of the AMI.public java.lang.String getAWSAccessKeyId()
public void setAWSAccessKeyId(java.lang.String aWSAccessKeyId)
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.public S3Storage withAWSAccessKeyId(java.lang.String aWSAccessKeyId)
Returns a reference to this object so that method calls can be chained together.
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.public java.lang.String getUploadPolicy()
public void setUploadPolicy(java.lang.String uploadPolicy)
uploadPolicy - A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on your behalf.public S3Storage withUploadPolicy(java.lang.String uploadPolicy)
Returns a reference to this object so that method calls can be chained together.
uploadPolicy - A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on your behalf.public java.lang.String getUploadPolicySignature()
public void setUploadPolicySignature(java.lang.String uploadPolicySignature)
uploadPolicySignature - The signature of the Base64 encoded JSON document.public S3Storage withUploadPolicySignature(java.lang.String uploadPolicySignature)
Returns a reference to this object so that method calls can be chained together.
uploadPolicySignature - The signature of the Base64 encoded JSON document.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object