com.amazonaws.services.ec2.model
Class S3Storage

java.lang.Object
  extended by com.amazonaws.services.ec2.model.S3Storage
All Implemented Interfaces:
java.io.Serializable

public class S3Storage
extends java.lang.Object
implements java.io.Serializable

Describes the S3 bucket for an instance store-backed AMI.

See Also:
Serialized Form

Constructor Summary
S3Storage()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

S3Storage

public S3Storage()
Method Detail

getBucket

public java.lang.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.

setBucket

public void setBucket(java.lang.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.

withBucket

public S3Storage withBucket(java.lang.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.

Returns a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getPrefix

public java.lang.String getPrefix()
The beginning of the file name of the AMI.

Returns:
The beginning of the file name of the AMI.

setPrefix

public void setPrefix(java.lang.String prefix)
The beginning of the file name of the AMI.

Parameters:
prefix - The beginning of the file name of the AMI.

withPrefix

public S3Storage withPrefix(java.lang.String prefix)
The beginning of the file name of the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
prefix - The beginning of the file name of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getAWSAccessKeyId

public java.lang.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.

setAWSAccessKeyId

public void setAWSAccessKeyId(java.lang.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.

withAWSAccessKeyId

public S3Storage withAWSAccessKeyId(java.lang.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.

Returns a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getUploadPolicy

public 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.

Returns:
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.

setUploadPolicy

public 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.

Parameters:
uploadPolicy - A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.

withUploadPolicy

public 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
uploadPolicy - A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
Returns:
A reference to this updated object so that method calls can be chained together.

getUploadPolicySignature

public java.lang.String getUploadPolicySignature()
The signature of the Base64 encoded JSON document.

Returns:
The signature of the Base64 encoded JSON document.

setUploadPolicySignature

public void setUploadPolicySignature(java.lang.String uploadPolicySignature)
The signature of the Base64 encoded JSON document.

Parameters:
uploadPolicySignature - The signature of the Base64 encoded JSON document.

withUploadPolicySignature

public S3Storage withUploadPolicySignature(java.lang.String uploadPolicySignature)
The signature of the Base64 encoded JSON document.

Returns a reference to this object so that method calls can be chained together.

Parameters:
uploadPolicySignature - The signature of the Base64 encoded JSON document.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.