public Optional<ExecAction> exec() {
        return Optional.ofNullable(this.exec);
    }
@return Exec specifies a command to execute in the container.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Probe.java