Class JsonFileOptions.Jsii$Proxy

    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getAllowComments

        public final Boolean getAllowComments()
        Description copied from interface: JsonFileOptions
        (experimental) Allow the use of comments in this file.

        Default: - false for .json files, true for .json5 and .jsonc files

        Specified by:
        getAllowComments in interface JsonFileOptions
      • getObj

        public final Object getObj()
        Description copied from interface: ObjectFileOptions
        (experimental) The object that will be serialized. You can modify the object's contents before synthesis.

        Serialization of the object is similar to JSON.stringify with few enhancements:

        • values that are functions will be called during synthesis and the result will be serialized - this allow to have lazy values.
        • Set will be converted to array
        • Map will be converted to a plain object ({ key: value, ... }})
        • RegExp without flags will be converted to string representation of the source

        Default: {} an empty object (use `file.obj` to mutate).

        Specified by:
        getObj in interface ObjectFileOptions
      • getCommitted

        public final Boolean getCommitted()
        Description copied from interface: FileBaseOptions
        (experimental) Indicates whether this file should be committed to git or ignored.

        By default, all generated files are committed and anti-tamper is used to protect against manual modifications.

        Default: true

        Specified by:
        getCommitted in interface FileBaseOptions
      • getExecutable

        public final Boolean getExecutable()
        Description copied from interface: FileBaseOptions
        (experimental) Whether the generated file should be marked as executable.

        Default: false

        Specified by:
        getExecutable in interface FileBaseOptions
      • getMarker

        public final Boolean getMarker()
        Description copied from interface: FileBaseOptions
        (experimental) Adds the projen marker to the file.

        Default: - marker will be included as long as the project is not ejected

        Specified by:
        getMarker in interface FileBaseOptions
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object