public Optional<DeploymentSpec> spec() {
        return Optional.ofNullable(this.spec);
    }
@return Specification of the desired behavior of the Deployment.
sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Deployment.java