Class License.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<License>
    Enclosing class:
    License

    @Stability(Experimental)
    public static final class License.Builder
    extends Object
    implements software.amazon.jsii.Builder<License>
    (experimental) A fluent builder for License.
    • Method Detail

      • create

        @Stability(Experimental)
        public static License.Builder create​(Project project)
        Parameters:
        project - This parameter is required.
        Returns:
        a new instance of License.Builder.
      • copyrightOwner

        @Stability(Experimental)
        public License.Builder copyrightOwner​(String copyrightOwner)
        (experimental) Copyright owner.

        If the license text has $copyright_owner, this option must be specified.

        Default: -

        Parameters:
        copyrightOwner - Copyright owner. This parameter is required.
        Returns:
        this
      • copyrightPeriod

        @Stability(Experimental)
        public License.Builder copyrightPeriod​(String copyrightPeriod)
        (experimental) Period of license (e.g. "1998-2023").

        The string $copyright_period will be substituted with this string.

        Default: - current year (e.g. "2020")

        Parameters:
        copyrightPeriod - Period of license (e.g. "1998-2023"). This parameter is required.
        Returns:
        this
      • build

        @Stability(Experimental)
        public License build()
        Specified by:
        build in interface software.amazon.jsii.Builder<License>
        Returns:
        a newly built instance of License.