public static interface Bucket.Builder extends SdkPojo, CopyableBuilder<Bucket.Builder,Bucket>
| Modifier and Type | Method and Description |
|---|---|
Bucket.Builder |
ableToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.
|
Bucket.Builder |
accessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
|
default Bucket.Builder |
accessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)
An object that describes the access log configuration for the bucket.
|
Bucket.Builder |
accessRules(AccessRules accessRules)
An object that describes the access rules of the bucket.
|
default Bucket.Builder |
accessRules(Consumer<AccessRules.Builder> accessRules)
An object that describes the access rules of the bucket.
|
Bucket.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the bucket.
|
Bucket.Builder |
bundleId(String bundleId)
The ID of the bundle currently applied to the bucket.
|
Bucket.Builder |
createdAt(Instant createdAt)
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.
|
Bucket.Builder |
location(ResourceLocation location)
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability
Zone.
|
Bucket.Builder |
name(String name)
The name of the bucket.
|
Bucket.Builder |
objectVersioning(String objectVersioning)
Indicates whether object versioning is enabled for the bucket.
|
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.
|
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.
|
Bucket.Builder |
resourcesReceivingAccess(Collection<ResourceReceivingAccess> resourcesReceivingAccess)
An array of objects that describe Lightsail instances that have access to the bucket.
|
Bucket.Builder |
resourcesReceivingAccess(Consumer<ResourceReceivingAccess.Builder>... resourcesReceivingAccess)
An array of objects that describe Lightsail instances that have access to the bucket.
|
Bucket.Builder |
resourcesReceivingAccess(ResourceReceivingAccess... resourcesReceivingAccess)
An array of objects that describe Lightsail instances that have access to the bucket.
|
Bucket.Builder |
resourceType(String resourceType)
The Lightsail resource type of the bucket (for example,
Bucket). |
Bucket.Builder |
state(BucketState state)
An object that describes the state of the bucket.
|
default Bucket.Builder |
state(Consumer<BucketState.Builder> state)
An object that describes the state of the bucket.
|
Bucket.Builder |
supportCode(String supportCode)
The support code for a bucket.
|
Bucket.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values for the bucket.
|
Bucket.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the bucket.
|
Bucket.Builder |
tags(Tag... tags)
The tag keys and optional values for the bucket.
|
Bucket.Builder |
url(String url)
The URL of the bucket.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBucket.Builder resourceType(String resourceType)
The Lightsail resource type of the bucket (for example, Bucket).
resourceType - The Lightsail resource type of the bucket (for example, Bucket).Bucket.Builder accessRules(AccessRules accessRules)
An object that describes the access rules of the bucket.
accessRules - An object that describes the access rules of the bucket.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.Builder avoiding the need to
create one manually via AccessRules.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to accessRules(AccessRules).
accessRules - a consumer that will call methods on AccessRules.BuilderaccessRules(AccessRules)Bucket.Builder arn(String arn)
The Amazon Resource Name (ARN) of the bucket.
arn - The Amazon Resource Name (ARN) of the bucket.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.
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.
Bucket.Builder createdAt(Instant createdAt)
The timestamp when the distribution was created.
createdAt - The timestamp when the distribution was created.Bucket.Builder url(String url)
The URL of the bucket.
url - The URL of the bucket.Bucket.Builder location(ResourceLocation location)
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.
location - An object that describes the location of the bucket, such as the Amazon Web Services Region and
Availability Zone.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.Builder avoiding the
need to create one manually via ResourceLocation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to location(ResourceLocation).
location - a consumer that will call methods on ResourceLocation.Builderlocation(ResourceLocation)Bucket.Builder name(String name)
The name of the bucket.
name - The name of the bucket.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.
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.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.
tags - The tag keys and optional values for the bucket. For more information, see Tags in Amazon
Lightsail in the Amazon Lightsail Developer Guide.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.
tags - The tag keys and optional values for the bucket. For more information, see Tags in Amazon
Lightsail in the Amazon Lightsail Developer Guide.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.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) 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.
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.
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.
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.
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.
readonlyAccessAccounts - An array of strings that specify the Amazon Web Services account IDs that have read-only access to the
bucket.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.
readonlyAccessAccounts - An array of strings that specify the Amazon Web Services account IDs that have read-only access to the
bucket.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.
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.
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.
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.
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 via
ResourceReceivingAccess.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #resourcesReceivingAccess(List.
resourcesReceivingAccess - a consumer that will call methods on
ResourceReceivingAccess.Builder#resourcesReceivingAccess(java.util.Collection) Bucket.Builder state(BucketState state)
An object that describes the state of the bucket.
state - An object that describes the state of the bucket.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.Builder avoiding the need to
create one manually via BucketState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to state(BucketState).
state - a consumer that will call methods on BucketState.Builderstate(BucketState)Bucket.Builder accessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
accessLogConfig - An object that describes the access log configuration for the bucket.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.Builder avoiding
the need to create one manually via BucketAccessLogConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to accessLogConfig(BucketAccessLogConfig).
accessLogConfig - a consumer that will call methods on BucketAccessLogConfig.BuilderaccessLogConfig(BucketAccessLogConfig)Copyright © 2022. All rights reserved.