public class BucketAccelerateConfiguration extends Object implements Serializable
Constructor and Description |
---|
BucketAccelerateConfiguration(BucketAccelerateStatus status)
Creates a new bucket accelerate configuration object with the specified status.
|
BucketAccelerateConfiguration(String status)
Creates a new bucket accelerate configuration object with the specified status.
|
Modifier and Type | Method and Description |
---|---|
String |
getStatus() |
boolean |
isAccelerateEnabled()
A convenience method that returns whether the bucket is enabled accelerate mode.
|
void |
setStatus(BucketAccelerateStatus status)
Sets the desired bucket accelerate status for this configuration object.
|
void |
setStatus(String status)
Sets the desired bucket accelerate status for this configuration object.
|
BucketAccelerateConfiguration |
withStatus(BucketAccelerateStatus status) |
BucketAccelerateConfiguration |
withStatus(String status)
Fluent setter method for
setStatus(String) |
public BucketAccelerateConfiguration(String status)
status
- The desired bucket accelerate status for the new configuration object. See
BucketAccelerateStatus
for a list of valid values.public BucketAccelerateConfiguration(BucketAccelerateStatus status)
status
- The desired bucket accelerate status for the new configuration object. See
BucketAccelerateStatus
for a list of valid values.public String getStatus()
public void setStatus(String status)
status
- The desired bucket accelerate status for this configuration object. See
BucketAccelerateStatus
for a list of valid values.public void setStatus(BucketAccelerateStatus status)
status
- The desired bucket accelerate status for this configuration object. See
BucketAccelerateStatus
for a list of valid values.public BucketAccelerateConfiguration withStatus(String status)
setStatus(String)
BucketAccelerateConfiguration
object so that additional method calls may
be chained together.setStatus(String)
public BucketAccelerateConfiguration withStatus(BucketAccelerateStatus status)
public boolean isAccelerateEnabled()
BucketAccelerateStatus.Enabled
status.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.