Class Cdk8sDepsOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • cdk8SCliDependency

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SCliDependency​(Boolean cdk8SCliDependency)
        Sets the value of Cdk8sDepsOptions#getCdk8SCliDependency
        Parameters:
        cdk8SCliDependency - Add cdk8s-cli only to Node projects. This parameter is required.
        Returns:
        this
      • dependencyType

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder dependencyType​(DependencyType dependencyType)
        Parameters:
        dependencyType - The type of dependency to use for runtime CDK8s and constructs modules. This parameter is required. For libraries, use peer dependencies and for apps use runtime dependencies.
        Returns:
        this
      • cdk8SVersion

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SVersion​(String cdk8SVersion)
        Sets the value of Cdk8sDepsOptions#getCdk8SVersion
        Parameters:
        cdk8SVersion - Minimum version of the cdk8s to depend on. This parameter is required.
        Returns:
        this
      • cdk8SCliVersion

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SCliVersion​(String cdk8SCliVersion)
        Sets the value of Cdk8sDepsOptions#getCdk8SCliVersion
        Parameters:
        cdk8SCliVersion - Minimum version of the cdk8s-cli to depend on.
        Returns:
        this
      • cdk8SCliVersionPinning

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SCliVersionPinning​(Boolean cdk8SCliVersionPinning)
        Sets the value of Cdk8sDepsOptions#getCdk8SCliVersionPinning
        Parameters:
        cdk8SCliVersionPinning - Use pinned version instead of caret version for cdk8s-cli. You can use this to prevent yarn to mix versions for your CDK8s package and to prevent auto-updates. If you use experimental features this will let you define the moment you include breaking changes.
        Returns:
        this
      • cdk8SPlus

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SPlus​(Boolean cdk8SPlus)
        Sets the value of Cdk8sDepsOptions#getCdk8SPlus
        Parameters:
        cdk8SPlus - Include cdk8s-plus.
        Returns:
        this
      • cdk8SPlusVersion

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SPlusVersion​(String cdk8SPlusVersion)
        Sets the value of Cdk8sDepsOptions#getCdk8SPlusVersion
        Parameters:
        cdk8SPlusVersion - Minimum version of the cdk8s-plus-XX to depend on.
        Returns:
        this
      • cdk8SPlusVersionPinning

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SPlusVersionPinning​(Boolean cdk8SPlusVersionPinning)
        Sets the value of Cdk8sDepsOptions#getCdk8SPlusVersionPinning
        Parameters:
        cdk8SPlusVersionPinning - Use pinned version instead of caret version for cdk8s-plus-17. You can use this to prevent yarn to mix versions for your CDK8s package and to prevent auto-updates. If you use experimental features this will let you define the moment you include breaking changes.
        Returns:
        this
      • cdk8SVersionPinning

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder cdk8SVersionPinning​(Boolean cdk8SVersionPinning)
        Sets the value of Cdk8sDepsOptions#getCdk8SVersionPinning
        Parameters:
        cdk8SVersionPinning - Use pinned version instead of caret version for cdk8s. You can use this to prevent yarn to mix versions for your CDK8s package and to prevent auto-updates. If you use experimental features this will let you define the moment you include breaking changes.
        Returns:
        this
      • constructsVersionPinning

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder constructsVersionPinning​(Boolean constructsVersionPinning)
        Parameters:
        constructsVersionPinning - Use pinned version instead of caret version for constructs. You can use this to prevent yarn to mix versions for your consructs package and to prevent auto-updates. If you use experimental features this will let you define the moment you include breaking changes.
        Returns:
        this
      • k8SMinorVersion

        @Stability(Experimental)
        public Cdk8sDepsOptions.Builder k8SMinorVersion​(Number k8SMinorVersion)
        Sets the value of Cdk8sDepsOptions#getK8SMinorVersion
        Parameters:
        k8SMinorVersion - The cdk8s-plus library depends of Kubernetes minor version For example, cdk8s-plus-22 targets kubernetes version 1.22.0 cdk8s-plus-21 targets kubernetes version 1.21.0.
        Returns:
        this