public Optional<Output<ResourceSliceSpecPatchArgs>> spec() {
        return Optional.ofNullable(this.spec);
    }
@return Contains the information published by the driver.

Changing the spec automatically increments the metadata.generation number.
sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1beta1/ResourceSlicePatchArgs.java