Class PathMapping.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<PathMapping>
    Enclosing interface:
    PathMapping

    @Stability(Stable)
    public static final class PathMapping.Builder
    extends Object
    implements software.amazon.jsii.Builder<PathMapping>
    A builder for PathMapping
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • path

        @Stability(Stable)
        public PathMapping.Builder path​(String path)
        Sets the value of PathMapping.getPath()
        Parameters:
        path - The relative path of the file to map the key to. This parameter is required. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
        Returns:
        this
      • mode

        @Stability(Stable)
        public PathMapping.Builder mode​(Number mode)
        Sets the value of PathMapping.getMode()
        Parameters:
        mode - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
        Returns:
        this
      • build

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