public class S3Storage extends Object implements Serializable
Describes the S3 storage destination for a BundleTask when bundling a Windows instance.
Constructor and Description |
---|
S3Storage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAWSAccessKeyId()
The Access Key ID of the owner of the Amazon S3 bucket.
|
String |
getBucket()
The bucket in which to store the AMI.
|
String |
getPrefix()
The prefix to use when storing the AMI in S3.
|
String |
getUploadPolicy()
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on the user's behalf.
|
String |
getUploadPolicySignature()
The signature of the Base64 encoded JSON document.
|
int |
hashCode() |
void |
setAWSAccessKeyId(String aWSAccessKeyId)
The Access Key ID of the owner of the Amazon S3 bucket.
|
void |
setBucket(String bucket)
The bucket in which to store the AMI.
|
void |
setPrefix(String prefix)
The prefix to use when storing the AMI in S3.
|
void |
setUploadPolicy(String uploadPolicy)
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on the user's behalf.
|
void |
setUploadPolicySignature(String uploadPolicySignature)
The signature of the Base64 encoded JSON document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
S3Storage |
withAWSAccessKeyId(String aWSAccessKeyId)
The Access Key ID of the owner of the Amazon S3 bucket.
|
S3Storage |
withBucket(String bucket)
The bucket in which to store the AMI.
|
S3Storage |
withPrefix(String prefix)
The prefix to use when storing the AMI in S3.
|
S3Storage |
withUploadPolicy(String uploadPolicy)
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on the user's behalf.
|
S3Storage |
withUploadPolicySignature(String uploadPolicySignature)
The signature of the Base64 encoded JSON document.
|
public String getBucket()
If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
public void setBucket(String bucket)
If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
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(String bucket)
If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
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 String getPrefix()
public void setPrefix(String prefix)
prefix
- The prefix to use when storing the AMI in S3.public S3Storage withPrefix(String prefix)
Returns a reference to this object so that method calls can be chained together.
prefix
- The prefix to use when storing the AMI in S3.public String getAWSAccessKeyId()
public void setAWSAccessKeyId(String aWSAccessKeyId)
aWSAccessKeyId
- The Access Key ID of the owner of the Amazon S3 bucket.public S3Storage withAWSAccessKeyId(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 Amazon S3 bucket.public String getUploadPolicy()
public void setUploadPolicy(String uploadPolicy)
uploadPolicy
- A Base64-encoded Amazon S3 upload policy that gives Amazon EC2
permission to upload items into Amazon S3 on the user's behalf.public S3Storage withUploadPolicy(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 the user's behalf.public String getUploadPolicySignature()
public void setUploadPolicySignature(String uploadPolicySignature)
uploadPolicySignature
- The signature of the Base64 encoded JSON document.public S3Storage withUploadPolicySignature(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.