Class S3Storage
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the storage parameters for S3 and S3 buckets for an instance store-backed AMI.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The access key ID of the owner of the bucket.The bucket in which to store the AMI.The beginning of the file name of the AMI.A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.The signature of the Base64 encoded JSON document.int
hashCode()
void
setAWSAccessKeyId
(String aWSAccessKeyId) The access key ID of the owner of the bucket.void
The bucket in which to store the AMI.void
The beginning of the file name of the AMI.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.void
setUploadPolicySignature
(String uploadPolicySignature) The signature of the Base64 encoded JSON document.toString()
Returns a string representation of this object; useful for testing and debugging.withAWSAccessKeyId
(String aWSAccessKeyId) The access key ID of the owner of the bucket.withBucket
(String bucket) The bucket in which to store the AMI.withPrefix
(String prefix) The beginning of the file name of the AMI.withUploadPolicy
(String uploadPolicy) A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.withUploadPolicySignature
(String uploadPolicySignature) The signature of the Base64 encoded JSON document.
-
Constructor Details
-
S3Storage
public S3Storage()
-
-
Method Details
-
setBucket
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
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
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
The beginning of the file name of the AMI.
- Parameters:
prefix
- The beginning of the file name of the AMI.
-
getPrefix
The beginning of the file name of the AMI.
- Returns:
- The beginning of the file name of the AMI.
-
withPrefix
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
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
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
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
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
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
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
The signature of the Base64 encoded JSON document.
- Parameters:
uploadPolicySignature
- The signature of the Base64 encoded JSON document.
-
getUploadPolicySignature
The signature of the Base64 encoded JSON document.
- Returns:
- The signature of the Base64 encoded JSON document.
-
withUploadPolicySignature
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-