Class CfnApi.BodyS3LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnApi.BodyS3LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi.BodyS3LocationProperty>
- Enclosing interface:
CfnApi.BodyS3LocationProperty
@Stability(Stable)
public static final class CfnApi.BodyS3LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi.BodyS3LocationProperty>
A builder for
CfnApi.BodyS3LocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApi.BodyS3LocationProperty.getBucket()
build()
Builds the configured instance.Sets the value ofCfnApi.BodyS3LocationProperty.getEtag()
Sets the value ofCfnApi.BodyS3LocationProperty.getKey()
Sets the value ofCfnApi.BodyS3LocationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnApi.BodyS3LocationProperty.getBucket()
- Parameters:
bucket
- The S3 bucket that contains the OpenAPI definition to import. Required if you specify aBodyS3Location
for an API.- Returns:
this
-
etag
Sets the value ofCfnApi.BodyS3LocationProperty.getEtag()
- Parameters:
etag
- The Etag of the S3 object.- Returns:
this
-
key
Sets the value ofCfnApi.BodyS3LocationProperty.getKey()
- Parameters:
key
- The key of the S3 object. Required if you specify aBodyS3Location
for an API.- Returns:
this
-
version
Sets the value ofCfnApi.BodyS3LocationProperty.getVersion()
- Parameters:
version
- The version of the S3 object.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApi.BodyS3LocationProperty>
- Returns:
- a new instance of
CfnApi.BodyS3LocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-