public DeploymentSpecArgs build() {
            if ($.selector == null) {
                throw new MissingRequiredPropertyException("DeploymentSpecArgs", "selector");
            }
            if ($.template == null) {
                throw new MissingRequiredPropertyException("DeploymentSpecArgs", "template");
            }
            return $;
        }
@param template Template describes the pods that will be created.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentSpecArgs.java