public static final class CfnApi.BodyS3LocationProperty.Builder
extends java.lang.Object
CfnApi.BodyS3LocationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnApi.BodyS3LocationProperty.Builder |
bucket(java.lang.String bucket)
Sets the value of
CfnApi.BodyS3LocationProperty.getBucket() |
CfnApi.BodyS3LocationProperty |
build()
Builds the configured instance.
|
CfnApi.BodyS3LocationProperty.Builder |
etag(java.lang.String etag)
Sets the value of
CfnApi.BodyS3LocationProperty.getEtag() |
CfnApi.BodyS3LocationProperty.Builder |
key(java.lang.String key)
Sets the value of
CfnApi.BodyS3LocationProperty.getKey() |
CfnApi.BodyS3LocationProperty.Builder |
version(java.lang.String version)
Sets the value of
CfnApi.BodyS3LocationProperty.getVersion() |
public CfnApi.BodyS3LocationProperty.Builder bucket(java.lang.String bucket)
CfnApi.BodyS3LocationProperty.getBucket()
bucket
- The S3 bucket that contains the OpenAPI definition to import.
Required if you specify a BodyS3Location
for an API.this
public CfnApi.BodyS3LocationProperty.Builder etag(java.lang.String etag)
CfnApi.BodyS3LocationProperty.getEtag()
etag
- The Etag of the S3 object.this
public CfnApi.BodyS3LocationProperty.Builder key(java.lang.String key)
CfnApi.BodyS3LocationProperty.getKey()
key
- The key of the S3 object.
Required if you specify a BodyS3Location
for an API.this
public CfnApi.BodyS3LocationProperty.Builder version(java.lang.String version)
CfnApi.BodyS3LocationProperty.getVersion()
version
- The version of the S3 object.this
public CfnApi.BodyS3LocationProperty build()
CfnApi.BodyS3LocationProperty
java.lang.NullPointerException
- if any required attribute was not provided