Package com.amazonaws.services.s3.model
Class BucketAccelerateConfiguration
java.lang.Object
com.amazonaws.services.s3.model.BucketAccelerateConfiguration
Represents the accelerate configuration for a bucket.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new bucket accelerate configuration object with the specified status.BucketAccelerateConfiguration(String status) Creates a new bucket accelerate configuration object with the specified status. -
Method Summary
Modifier and TypeMethodDescriptionbooleanA convenience method that returns whether the bucket is enabled accelerate mode.voidsetStatus(BucketAccelerateStatus status) Sets the desired bucket accelerate status for this configuration object.voidSets the desired bucket accelerate status for this configuration object.withStatus(BucketAccelerateStatus status) withStatus(String status) Fluent setter method forsetStatus(String)
-
Constructor Details
-
BucketAccelerateConfiguration
Creates a new bucket accelerate configuration object with the specified status.- Parameters:
status- The desired bucket accelerate status for the new configuration object. SeeBucketAccelerateStatusfor a list of valid values.
-
BucketAccelerateConfiguration
Creates a new bucket accelerate configuration object with the specified status.- Parameters:
status- The desired bucket accelerate status for the new configuration object. SeeBucketAccelerateStatusfor a list of valid values.
-
-
Method Details
-
getStatus
- Returns:
- The current status of the accelerate configuration for this bucket, or null if the bucket has never been enabled or suspended accelerate configuration.
-
setStatus
Sets the desired bucket accelerate status for this configuration object.- Parameters:
status- The desired bucket accelerate status for this configuration object. SeeBucketAccelerateStatusfor a list of valid values.
-
setStatus
Sets the desired bucket accelerate status for this configuration object.- Parameters:
status- The desired bucket accelerate status for this configuration object. SeeBucketAccelerateStatusfor a list of valid values.
-
withStatus
Fluent setter method forsetStatus(String)- Returns:
- This
BucketAccelerateConfigurationobject so that additional method calls may be chained together. - See Also:
-
withStatus
-
isAccelerateEnabled
public boolean isAccelerateEnabled()A convenience method that returns whether the bucket is enabled accelerate mode.- Returns:
- True if the accelerate configuration has the
BucketAccelerateStatus.Enabledstatus.
-