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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3Storage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3Storage
clone()
boolean
equals(Object obj)
String
getAWSAccessKeyId()
The access key ID of the owner of the bucket.String
getBucket()
The bucket in which to store the AMI.String
getPrefix()
The beginning of the file name of the AMI.String
getUploadPolicy()
A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your 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 bucket.void
setBucket(String bucket)
The bucket in which to store the AMI.void
setPrefix(String prefix)
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.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 bucket.S3Storage
withBucket(String bucket)
The bucket in which to store the AMI.S3Storage
withPrefix(String prefix)
The beginning of the file name of the AMI.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.S3Storage
withUploadPolicySignature(String uploadPolicySignature)
The signature of the Base64 encoded JSON document.
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-