Returns the builder for a {@code DeprecationStatus} object given the status.
765245
public static <T extends ResourceId> Builder<T> newBuilder(Status status) {
    return new Builder<T>().setStatus(status);
  }
578126
@Nonnull
	public static LFltUnaryOperator fltUnaryOperatorFrom(Consumer<LFltUnaryOperatorBuilder> buildingFunction) {
		LFltUnaryOperatorBuilder builder = new LFltUnaryOperatorBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
38847
public HttpClientResponseBuilder withStatus(int statusCode) {
        Action lastAction = newRule.getLastAction();
        StatusResponse statusAction = new StatusResponse(lastAction, statusCode);
        newRule.overrideLastAction(statusAction);
        return this;
    }
25445
private function updateModerationStatus(Builder $builder, $id, $status)
    {

        //If $id parameter is passed then update the specified model
        if ($id) {
            $model = $builder->find($id);
            $model->{$model->getStatusColumn()} = $status;
            $model->{$model->getModeratedAtColumn()} = Carbon::now();
            //if moderated_by in enabled then append it to the update
            if ($moderated_by = $model->getModeratedByColumn()) {
                $model->{$moderated_by} = \Auth::user()->getKey();
            }

            $model->save();
            return $model;
        }

        $update = [
            $builder->getModel()->getStatusColumn() => $status,
            $builder->getModel()->getModeratedAtColumn() => Carbon::now()
        ];
        //if moderated_by in enabled then append it to the update
        if ($moderated_by = $builder->getModel()->getModeratedByColumn()) {
            $update[$builder->getModel()->getModeratedByColumn()] = \Auth::user()->getKey();
        }
        return $builder->update($update);
    }
402946
def status(self, key, value):
        """"""
        value = value.lower()
        if value not in valid_statuses:
            raise ValueError("Build Status must have a value from:\n{}".format(", ".join(valid_statuses)))

        self.obj['status'][key] = value
        self.changes.append("Updating build:{}.status.{}={}"
                            .format(self.obj['name'], key, value))
        return self
1368001
public static <T> GenericResponseBuilder<T> status(Response.StatusType status) {
    if (status == null) {
      throw new NullPointerException("status:null");
    }

    return status(status.getStatusCode());
  }
749599
@Beta
  public Builder toBuilder() {
    Builder builder = new GoogleCredential.Builder()
        .setServiceAccountPrivateKey(serviceAccountPrivateKey)
        .setServiceAccountPrivateKeyId(serviceAccountPrivateKeyId)
        .setServiceAccountId(serviceAccountId)
        .setServiceAccountProjectId(serviceAccountProjectId)
        .setServiceAccountUser(serviceAccountUser)
        .setServiceAccountScopes(serviceAccountScopes)
        .setTokenServerEncodedUrl(getTokenServerEncodedUrl())
        .setTransport(getTransport())
        .setJsonFactory(getJsonFactory())
        .setClock(getClock());

    builder.setClientAuthentication(getClientAuthentication());

    return builder;
  }
1266549
@WithBridgeMethods(List.class)
    @Deprecated
    public RunList<RunT> getBuildsByTimestamp(long start, long end) {
        return getBuilds().byTimestamp(start,end);
    }
7481
@Nonnull
	public static LBoolSupplier boolSupplierFrom(Consumer<LBoolSupplierBuilder> buildingFunction) {
		LBoolSupplierBuilder builder = new LBoolSupplierBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
296091
public NotificationCompat.Builder getStatusBarNotificationBuilder() {
        if (mBuilder == null) {
            mBuilder = new NotificationCompat.Builder(mContext);
        }
        return mBuilder;
    }
750645
public static Specification<JpaTarget> hasTargetUpdateStatus(final Collection<TargetUpdateStatus> updateStatus) {
        return (targetRoot, query, cb) -> targetRoot.get(JpaTarget_.updateStatus).in(updateStatus);
    }
292415
@Nonnull
	public static <T> LObjIntBoolPredicate<T> objIntBoolPredicateFrom(Consumer<LObjIntBoolPredicateBuilder<T>> buildingFunction) {
		LObjIntBoolPredicateBuilder builder = new LObjIntBoolPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
203046
public function getStatus($opportunityStatusId): OpportunityStatus
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use get() instead.', __METHOD__), E_USER_DEPRECATED);

        return $this->get($opportunityStatusId);
    }
1267029
@Nonnull
	public static LLongSupplier longSupplierFrom(Consumer<LLongSupplierBuilder> buildingFunction) {
		LLongSupplierBuilder builder = new LLongSupplierBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1340284
public PeriodBuilder getPeriodBuilder() {
    if (builder == null) {
      builder = ps.newPeriodBuilderFactory()
          .setLocale(localeName)
          .setTimeZone(timeZone)
          .getSingleUnitBuilder();
    }
    return builder;
  }
1168460
public SoapServerResponseActionBuilder status(HttpStatus status) {
        soapMessage.header(SoapMessageHeaders.HTTP_STATUS_CODE, status.value());
        return this;
    }
557028
public static <T> BaseDTO<T> buildError(String status, String message) {
        BaseDTO<T> dto = new BaseDTO<>();
        dto.status(status, message);
        return dto;
    }