@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateBucketResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateBucketResult() |
Modifier and Type | Method and Description |
---|---|
CreateBucketResult |
clone() |
boolean |
equals(Object obj) |
Bucket |
getBucket()
An object that describes the bucket that is created.
|
List<Operation> |
getOperations()
An array of objects that describe the result of the action, such as the status of the request, the timestamp of
the request, and the resources affected by the request.
|
int |
hashCode() |
void |
setBucket(Bucket bucket)
An object that describes the bucket that is created.
|
void |
setOperations(Collection<Operation> operations)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of
the request, and the resources affected by the request.
|
String |
toString()
Returns a string representation of this object.
|
CreateBucketResult |
withBucket(Bucket bucket)
An object that describes the bucket that is created.
|
CreateBucketResult |
withOperations(Collection<Operation> operations)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of
the request, and the resources affected by the request.
|
CreateBucketResult |
withOperations(Operation... operations)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of
the request, and the resources affected by the request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setBucket(Bucket bucket)
An object that describes the bucket that is created.
bucket
- An object that describes the bucket that is created.public Bucket getBucket()
An object that describes the bucket that is created.
public CreateBucketResult withBucket(Bucket bucket)
An object that describes the bucket that is created.
bucket
- An object that describes the bucket that is created.public List<Operation> getOperations()
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
public void setOperations(Collection<Operation> operations)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
operations
- An array of objects that describe the result of the action, such as the status of the request, the
timestamp of the request, and the resources affected by the request.public CreateBucketResult withOperations(Operation... operations)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
NOTE: This method appends the values to the existing list (if any). Use
setOperations(java.util.Collection)
or withOperations(java.util.Collection)
if you want to
override the existing values.
operations
- An array of objects that describe the result of the action, such as the status of the request, the
timestamp of the request, and the resources affected by the request.public CreateBucketResult withOperations(Collection<Operation> operations)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
operations
- An array of objects that describe the result of the action, such as the status of the request, the
timestamp of the request, and the resources affected by the request.public String toString()
toString
in class Object
Object.toString()
public CreateBucketResult clone()