public Optional<Output<StatefulSetSpecArgs>> spec() {
        return Optional.ofNullable(this.spec);
    }
@return Spec defines the desired identities of pods in this set.
sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/StatefulSetArgs.java