Interface UpdateBucketRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>,LightsailRequest.Builder,SdkBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateBucketRequest
public static interface UpdateBucketRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default UpdateBucketRequest.BuilderaccessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)An object that describes the access log configuration for the bucket.UpdateBucketRequest.BuilderaccessLogConfig(BucketAccessLogConfig accessLogConfig)An object that describes the access log configuration for the bucket.default UpdateBucketRequest.BuilderaccessRules(Consumer<AccessRules.Builder> accessRules)An object that sets the public accessibility of objects in the specified bucket.UpdateBucketRequest.BuilderaccessRules(AccessRules accessRules)An object that sets the public accessibility of objects in the specified bucket.UpdateBucketRequest.BuilderbucketName(String bucketName)The name of the bucket to update.UpdateBucketRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateBucketRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateBucketRequest.BuilderreadonlyAccessAccounts(String... readonlyAccessAccounts)An array of strings to specify the Amazon Web Services account IDs that can access the bucket.UpdateBucketRequest.BuilderreadonlyAccessAccounts(Collection<String> readonlyAccessAccounts)An array of strings to specify the Amazon Web Services account IDs that can access the bucket.UpdateBucketRequest.Builderversioning(String versioning)Specifies whether to enable or suspend versioning of objects in the bucket.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
-
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
-
bucketName
UpdateBucketRequest.Builder bucketName(String bucketName)
The name of the bucket to update.
- Parameters:
bucketName- The name of the bucket to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessRules
UpdateBucketRequest.Builder accessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
- Parameters:
accessRules- An object that sets the public accessibility of objects in the specified bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessRules
default UpdateBucketRequest.Builder accessRules(Consumer<AccessRules.Builder> accessRules)
An object that sets the public accessibility of objects in the specified 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)
-
versioning
UpdateBucketRequest.Builder versioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
-
Enabled- Enables versioning of objects in the specified bucket. -
Suspended- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
- Parameters:
versioning- Specifies whether to enable or suspend versioning of objects in the bucket.The following options can be specified:
-
Enabled- Enables versioning of objects in the specified bucket. -
Suspended- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
readonlyAccessAccounts
UpdateBucketRequest.Builder readonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
- Parameters:
readonlyAccessAccounts- An array of strings to specify the Amazon Web Services account IDs that can access the bucket.You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readonlyAccessAccounts
UpdateBucketRequest.Builder readonlyAccessAccounts(String... readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
- Parameters:
readonlyAccessAccounts- An array of strings to specify the Amazon Web Services account IDs that can access the bucket.You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessLogConfig
UpdateBucketRequest.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 UpdateBucketRequest.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)
-
overrideConfiguration
UpdateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-