Class MTLSConfig.Builder

java.lang.Object
software.amazon.awscdk.services.apigatewayv2.MTLSConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<MTLSConfig>
Enclosing interface:
MTLSConfig

@Stability(Experimental) public static final class MTLSConfig.Builder extends Object implements software.amazon.jsii.Builder<MTLSConfig>
A builder for MTLSConfig
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • bucket

      @Stability(Experimental) public MTLSConfig.Builder bucket(IBucket bucket)
      Sets the value of MTLSConfig.getBucket()
      Parameters:
      bucket - The bucket that the trust store is hosted in. This parameter is required.
      Returns:
      this
    • key

      @Stability(Experimental) public MTLSConfig.Builder key(String key)
      Sets the value of MTLSConfig.getKey()
      Parameters:
      key - The key in S3 to look at for the trust store. This parameter is required.
      Returns:
      this
    • version

      @Stability(Experimental) public MTLSConfig.Builder version(String version)
      Sets the value of MTLSConfig.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

      @Stability(Experimental) public MTLSConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<MTLSConfig>
      Returns:
      a new instance of MTLSConfig
      Throws:
      NullPointerException - if any required attribute was not provided