Class KeyToPath.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • path

        @Stability(Stable)
        public KeyToPath.Builder path​(String path)
        Sets the value of KeyToPath.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 KeyToPath.Builder mode​(Number mode)
        Sets the value of KeyToPath.getMode()
        Parameters:
        mode - Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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 KeyToPath build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<KeyToPath>
        Returns:
        a new instance of KeyToPath
        Throws:
        NullPointerException - if any required attribute was not provided