@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Storage extends Object implements Serializable, Cloneable
Describes the storage parameters for Amazon S3 and Amazon S3 buckets for an instance store-backed AMI.
Constructor and Description |
---|
S3Storage() |
Modifier and Type | Method and 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()
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
|
String |
getUploadPolicySignature()
The signature of the 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)
An 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 JSON document.
|
String |
toString()
Returns a string representation of this object.
|
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)
An 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 JSON document.
|
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 Amazon Web Services accounts in the Account ManagementReference Guide.
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 Amazon
Web Services accounts in the Account ManagementReference Guide.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 Amazon Web Services accounts in the Account ManagementReference Guide.
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 Amazon Web Services accounts in the Account ManagementReference Guide.
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 Amazon
Web Services accounts in the Account ManagementReference Guide.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.
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 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.
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.
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 void setPrefix(String prefix)
The beginning of the file name of the AMI.
prefix
- The beginning of the file name of the AMI.public String getPrefix()
The beginning of the file name of the AMI.
public S3Storage withPrefix(String prefix)
The beginning of the file name of the AMI.
prefix
- The beginning of the file name of the AMI.public void setUploadPolicy(String uploadPolicy)
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
uploadPolicy
- An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.public String getUploadPolicy()
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
public S3Storage withUploadPolicy(String uploadPolicy)
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
uploadPolicy
- An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.public void setUploadPolicySignature(String uploadPolicySignature)
The signature of the JSON document.
uploadPolicySignature
- The signature of the JSON document.public String getUploadPolicySignature()
The signature of the JSON document.
public S3Storage withUploadPolicySignature(String uploadPolicySignature)
The signature of the JSON document.
uploadPolicySignature
- The signature of the JSON document.public String toString()
toString
in class Object
Object.toString()