public Optional<Output<Boolean>> readOnly() {
        return Optional.ofNullable(this.readOnly);
    }
@return Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountArgs.java