public ResourceSliceArgs build() {
            $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable();
            $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable();
            if ($.spec == null) {
                throw new MissingRequiredPropertyException("ResourceSliceArgs", "spec");
            }
            return $;
        }
@param spec Contains the information published by the driver.

Changing the spec automatically increments the metadata.generation number.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1beta1/ResourceSliceArgs.java