Interface Bucket.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Bucket.Builder,Bucket>,SdkBuilder<Bucket.Builder,Bucket>,SdkPojo
- Enclosing class:
- Bucket
public static interface Bucket.Builder extends SdkPojo, CopyableBuilder<Bucket.Builder,Bucket>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Bucket.BuilderableToUpdateBundle(Boolean ableToUpdateBundle)Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.default Bucket.BuilderaccessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)An object that describes the access log configuration for the bucket.Bucket.BuilderaccessLogConfig(BucketAccessLogConfig accessLogConfig)An object that describes the access log configuration for the bucket.default Bucket.BuilderaccessRules(Consumer<AccessRules.Builder> accessRules)An object that describes the access rules of the bucket.Bucket.BuilderaccessRules(AccessRules accessRules)An object that describes the access rules of the bucket.Bucket.Builderarn(String arn)The Amazon Resource Name (ARN) of the bucket.Bucket.BuilderbundleId(String bundleId)The ID of the bundle currently applied to the bucket.Bucket.BuildercreatedAt(Instant createdAt)The timestamp when the distribution was created.default Bucket.Builderlocation(Consumer<ResourceLocation.Builder> location)An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.Bucket.Builderlocation(ResourceLocation location)An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.Bucket.Buildername(String name)The name of the bucket.Bucket.BuilderobjectVersioning(String objectVersioning)Indicates whether object versioning is enabled for the bucket.Bucket.BuilderreadonlyAccessAccounts(String... readonlyAccessAccounts)An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.Bucket.BuilderreadonlyAccessAccounts(Collection<String> readonlyAccessAccounts)An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.Bucket.BuilderresourcesReceivingAccess(Collection<ResourceReceivingAccess> resourcesReceivingAccess)An array of objects that describe Lightsail instances that have access to the bucket.Bucket.BuilderresourcesReceivingAccess(Consumer<ResourceReceivingAccess.Builder>... resourcesReceivingAccess)An array of objects that describe Lightsail instances that have access to the bucket.Bucket.BuilderresourcesReceivingAccess(ResourceReceivingAccess... resourcesReceivingAccess)An array of objects that describe Lightsail instances that have access to the bucket.Bucket.BuilderresourceType(String resourceType)The Lightsail resource type of the bucket.default Bucket.Builderstate(Consumer<BucketState.Builder> state)An object that describes the state of the bucket.Bucket.Builderstate(BucketState state)An object that describes the state of the bucket.Bucket.BuildersupportCode(String supportCode)The support code for a bucket.Bucket.Buildertags(Collection<Tag> tags)The tag keys and optional values for the bucket.Bucket.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the bucket.Bucket.Buildertags(Tag... tags)The tag keys and optional values for the bucket.Bucket.Builderurl(String url)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 Detail
-
resourceType
Bucket.Builder resourceType(String 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
Bucket.Builder accessRules(AccessRules 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
default Bucket.Builder accessRules(Consumer<AccessRules.Builder> accessRules)
An object that describes the access rules of the bucket.
This is a convenience method that creates an instance of theAccessRules.Builderavoiding the need to create one manually viaAccessRules.builder().When the
Consumercompletes,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:
accessRules(AccessRules)
-
arn
Bucket.Builder arn(String 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
Bucket.Builder bundleId(String 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
Bucket.Builder createdAt(Instant 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
Bucket.Builder url(String 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
Bucket.Builder location(ResourceLocation 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
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.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,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:
location(ResourceLocation)
-
name
Bucket.Builder name(String 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
Bucket.Builder supportCode(String 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
Bucket.Builder tags(Collection<Tag> 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
Bucket.Builder tags(Tag... 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
Bucket.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
objectVersioning
Bucket.Builder objectVersioning(String 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
Bucket.Builder ableToUpdateBundle(Boolean 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
Bucket.Builder readonlyAccessAccounts(Collection<String> 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
Bucket.Builder readonlyAccessAccounts(String... 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
Bucket.Builder resourcesReceivingAccess(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
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.Builderavoiding the need to create one manually viaResourceReceivingAccess.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourcesReceivingAccess(List.) - 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:
#resourcesReceivingAccess(java.util.Collection)
-
state
Bucket.Builder state(BucketState 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
default Bucket.Builder state(Consumer<BucketState.Builder> state)
An object that describes the state of the bucket.
This is a convenience method that creates an instance of theBucketState.Builderavoiding the need to create one manually viaBucketState.builder().When the
Consumercompletes,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:
state(BucketState)
-
accessLogConfig
Bucket.Builder accessLogConfig(BucketAccessLogConfig 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
default Bucket.Builder accessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)
An object that describes the access log configuration for the bucket.
This is a convenience method that creates an instance of theBucketAccessLogConfig.Builderavoiding the need to create one manually viaBucketAccessLogConfig.builder().When the
Consumercompletes,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:
accessLogConfig(BucketAccessLogConfig)
-
-