Class CfnRestApi.S3LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnRestApi.S3LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRestApi.S3LocationProperty>
- Enclosing interface:
- CfnRestApi.S3LocationProperty
@Stability(Stable)
public static final class CfnRestApi.S3LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRestApi.S3LocationProperty>
A builder for
CfnRestApi.S3LocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRestApi.S3LocationProperty.getBucket()build()Builds the configured instance.Sets the value ofCfnRestApi.S3LocationProperty.getETag()Sets the value ofCfnRestApi.S3LocationProperty.getKey()Sets the value ofCfnRestApi.S3LocationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnRestApi.S3LocationProperty.getBucket()- Parameters:
bucket- The name of the S3 bucket where the OpenAPI file is stored.- Returns:
this
-
eTag
Sets the value ofCfnRestApi.S3LocationProperty.getETag()- Parameters:
eTag- The Amazon S3 ETag (a file checksum) of the OpenAPI file. If you don't specify a value, API Gateway skips ETag validation of your OpenAPI file.- Returns:
this
-
key
Sets the value ofCfnRestApi.S3LocationProperty.getKey()- Parameters:
key- The file name of the OpenAPI file (Amazon S3 object name).- Returns:
this
-
version
Sets the value ofCfnRestApi.S3LocationProperty.getVersion()- Parameters:
version- For versioning-enabled buckets, a specific version of the OpenAPI file.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRestApi.S3LocationProperty>- Returns:
- a new instance of
CfnRestApi.S3LocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-