Class AllowedHostPathArgs.Builder

  • Enclosing class:
    AllowedHostPathArgs

    public static final class AllowedHostPathArgs.Builder
    extends java.lang.Object
    • Method Detail

      • pathPrefix

        public AllowedHostPathArgs.Builder pathPrefix​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> pathPrefix)
        Parameters:
        pathPrefix - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
        Returns:
        builder
      • pathPrefix

        public AllowedHostPathArgs.Builder pathPrefix​(java.lang.String pathPrefix)
        Parameters:
        pathPrefix - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
        Returns:
        builder
      • readOnly

        public AllowedHostPathArgs.Builder readOnly​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Boolean> readOnly)
        Parameters:
        readOnly - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
        Returns:
        builder
      • readOnly

        public AllowedHostPathArgs.Builder readOnly​(java.lang.Boolean readOnly)
        Parameters:
        readOnly - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
        Returns:
        builder