Class MTLSConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.MTLSConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MTLSConfig>
- Enclosing interface:
- MTLSConfig
@Stability(Stable)
public static final class MTLSConfig.Builder
extends Object
implements software.amazon.jsii.Builder<MTLSConfig>
A builder for
MTLSConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofMTLSConfig.getBucket()build()Builds the configured instance.Sets the value ofMTLSConfig.getKey()Sets the value ofMTLSConfig.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofMTLSConfig.getBucket()- Parameters:
bucket- The bucket that the trust store is hosted in. This parameter is required.- Returns:
this
-
key
Sets the value ofMTLSConfig.getKey()- Parameters:
key- The key in S3 to look at for the trust store. This parameter is required.- Returns:
this
-
version
Sets the value ofMTLSConfig.getVersion()- Parameters:
version- The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MTLSConfig>- Returns:
- a new instance of
MTLSConfig - Throws:
NullPointerException- if any required attribute was not provided
-