Interface Bucket.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Bucket.Builder,
,Bucket> SdkBuilder<Bucket.Builder,
,Bucket> SdkPojo
- Enclosing class:
Bucket
-
Method Summary
Modifier and TypeMethodDescriptionableToUpdateBundle
(Boolean ableToUpdateBundle) Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.default Bucket.Builder
accessLogConfig
(Consumer<BucketAccessLogConfig.Builder> accessLogConfig) An object that describes the access log configuration for the bucket.accessLogConfig
(BucketAccessLogConfig accessLogConfig) An object that describes the access log configuration for the bucket.default Bucket.Builder
accessRules
(Consumer<AccessRules.Builder> accessRules) An object that describes the access rules of the bucket.accessRules
(AccessRules accessRules) An object that describes the access rules of the bucket.The Amazon Resource Name (ARN) of the bucket.The ID of the bundle currently applied to the bucket.The timestamp when the distribution was created.default Bucket.Builder
location
(Consumer<ResourceLocation.Builder> location) An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.location
(ResourceLocation location) An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.The name of the bucket.objectVersioning
(String objectVersioning) Indicates whether object versioning is enabled for the bucket.readonlyAccessAccounts
(String... readonlyAccessAccounts) An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.readonlyAccessAccounts
(Collection<String> readonlyAccessAccounts) An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.resourcesReceivingAccess
(Collection<ResourceReceivingAccess> resourcesReceivingAccess) An array of objects that describe Lightsail instances that have access to the bucket.resourcesReceivingAccess
(Consumer<ResourceReceivingAccess.Builder>... resourcesReceivingAccess) An array of objects that describe Lightsail instances that have access to the bucket.resourcesReceivingAccess
(ResourceReceivingAccess... resourcesReceivingAccess) An array of objects that describe Lightsail instances that have access to the bucket.resourceType
(String resourceType) The Lightsail resource type of the bucket.default Bucket.Builder
state
(Consumer<BucketState.Builder> state) An object that describes the state of the bucket.state
(BucketState state) An object that describes the state of the bucket.supportCode
(String supportCode) The support code for a bucket.tags
(Collection<Tag> tags) The tag keys and optional values for the bucket.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the bucket.The tag keys and optional values for the bucket.The URL of the bucket.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
resourceType
The Lightsail resource type of the bucket.
- Parameters:
resourceType
- The Lightsail resource type of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessRules
An object that describes the access rules of the bucket.
- Parameters:
accessRules
- An object that describes the access rules of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessRules
An object that describes the access rules of the bucket.
This is a convenience method that creates an instance of theAccessRules.Builder
avoiding the need to create one manually viaAccessRules.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessRules(AccessRules)
.- Parameters:
accessRules
- a consumer that will call methods onAccessRules.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arn
The Amazon Resource Name (ARN) of the bucket.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bundleId
The ID of the bundle currently applied to the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the UpdateBucketBundle action to change the bundle of a bucket.
- Parameters:
bundleId
- The ID of the bundle currently applied to the bucket.A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the UpdateBucketBundle action to change the bundle of a bucket.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the distribution was created.
- Parameters:
createdAt
- The timestamp when the distribution was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
The URL of the bucket.
- Parameters:
url
- The URL of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.
- Parameters:
location
- An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.
This is a convenience method that creates an instance of theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the bucket.
- Parameters:
name
- The name of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportCode
The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.
- Parameters:
supportCode
- The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectVersioning
Indicates whether object versioning is enabled for the bucket.
The following options can be configured:
-
Enabled
- Object versioning is enabled. -
Suspended
- Object versioning was previously enabled but is currently suspended. Existing object versions are retained. -
NeverEnabled
- Object versioning has never been enabled.
- Parameters:
objectVersioning
- Indicates whether object versioning is enabled for the bucket.The following options can be configured:
-
Enabled
- Object versioning is enabled. -
Suspended
- Object versioning was previously enabled but is currently suspended. Existing object versions are retained. -
NeverEnabled
- Object versioning has never been enabled.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
ableToUpdateBundle
Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.
You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle.
Use the UpdateBucketBundle action to change a bucket's bundle.
- Parameters:
ableToUpdateBundle
- Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle.
Use the UpdateBucketBundle action to change a bucket's bundle.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readonlyAccessAccounts
An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.
- Parameters:
readonlyAccessAccounts
- An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readonlyAccessAccounts
An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.
- Parameters:
readonlyAccessAccounts
- An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesReceivingAccess
Bucket.Builder resourcesReceivingAccess(Collection<ResourceReceivingAccess> resourcesReceivingAccess) An array of objects that describe Lightsail instances that have access to the bucket.
Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.
- Parameters:
resourcesReceivingAccess
- An array of objects that describe Lightsail instances that have access to the bucket.Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesReceivingAccess
An array of objects that describe Lightsail instances that have access to the bucket.
Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.
- Parameters:
resourcesReceivingAccess
- An array of objects that describe Lightsail instances that have access to the bucket.Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesReceivingAccess
Bucket.Builder resourcesReceivingAccess(Consumer<ResourceReceivingAccess.Builder>... resourcesReceivingAccess) An array of objects that describe Lightsail instances that have access to the bucket.
Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.
This is a convenience method that creates an instance of theResourceReceivingAccess.Builder
avoiding the need to create one manually viaResourceReceivingAccess.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourcesReceivingAccess(List<ResourceReceivingAccess>)
.- Parameters:
resourcesReceivingAccess
- a consumer that will call methods onResourceReceivingAccess.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
An object that describes the state of the bucket.
- Parameters:
state
- An object that describes the state of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
An object that describes the state of the bucket.
This is a convenience method that creates an instance of theBucketState.Builder
avoiding the need to create one manually viaBucketState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(BucketState)
.- Parameters:
state
- a consumer that will call methods onBucketState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessLogConfig
An object that describes the access log configuration for the bucket.
- Parameters:
accessLogConfig
- An object that describes the access log configuration for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessLogConfig
An object that describes the access log configuration for the bucket.
This is a convenience method that creates an instance of theBucketAccessLogConfig.Builder
avoiding the need to create one manually viaBucketAccessLogConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessLogConfig(BucketAccessLogConfig)
.- Parameters:
accessLogConfig
- a consumer that will call methods onBucketAccessLogConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-