Create a derived instance of {@link Status} with the given description.  Leading and trailing
whitespace may be removed; this may change in the future.
333822
public Status withDescription(String description) {
    if (Objects.equal(this.description, description)) {
      return this;
    }
    return new Status(this.code, description, this.cause);
  }
948058
public static ErrorMessage fromStatus(int status) {
        ErrorMessage errorMessage = new ErrorMessage();
        errorMessage.setStatus(status);
        errorMessage.setMessage(parseMessage(status));
        errorMessage.setDescription(parseDescription(status));
        return errorMessage;
    }
10979
public IStatus createStatus(int severity, int code, Throwable cause) {
		return createStatus(severity, code, null, cause);
	}
1339882
public StatusRepresentation init(StatusRepresentation s) {
    _source = s._source;
    _status = s._status;
    _jsonString = s._jsonString;
    _jsonObj = s._jsonObj;
    _id = s._id;
    return this;
  }
454721
@XmlElementDecl(namespace = "urn:oasis:names:tc:xacml:3.0:core:schema:wd-17", name = "Status")
    public JAXBElement<StatusType> createStatus(StatusType value) {
        return new JAXBElement<StatusType>(_Status_QNAME, StatusType.class, null, value);
    }
1168460
public SoapServerResponseActionBuilder status(HttpStatus status) {
        soapMessage.header(SoapMessageHeaders.HTTP_STATUS_CODE, status.value());
        return this;
    }
1367281
public static DescriptionDescriptor createDescription(DescriptionType descriptionType, Store store) {
        DescriptionDescriptor descriptionDescriptor = store.create(DescriptionDescriptor.class);
        descriptionDescriptor.setLang(descriptionType.getLang());
        descriptionDescriptor.setValue(descriptionType.getValue());
        return descriptionDescriptor;
    }
430578
def status_to_string(cls, status):
        
        strings = {CheckerMessages.INFO: "Info",
                   CheckerMessages.WARNING: "Warning",
                   CheckerMessages.ERROR: "Error"}
        return strings[status]
136771
public void addDescription(String description, boolean unicode) {
        put(PdfName.DESC, new PdfString(description, unicode ? PdfObject.TEXT_UNICODE : PdfObject.TEXT_PDFDOCENCODING));
    }
892985
@SuppressWarnings("static-method")
	public IStatus createStatus(int severity, Throwable cause) {
		String message = cause.getLocalizedMessage();
		if (Strings.isNullOrEmpty(message)) {
			message = cause.getMessage();
		}
		if (Strings.isNullOrEmpty(message)) {
			message = cause.getClass().getSimpleName();
		}
		return new Status(severity, PLUGIN_ID, message, cause);
	}
910323
public CreateWebhookParams description(String description) {
        String value = (description==null) ? "" : description;
        parameters.add(new NameValuePair("description", value));
        return this;
    }
145285
public void setStatusRequestDenied(final Response response, final String description) {
        response.setStatus(this.samlObjectBuilder.newStatus(StatusCode.REQUEST_DENIED, description));
    }
38847
public HttpClientResponseBuilder withStatus(int statusCode) {
        Action lastAction = newRule.getLastAction();
        StatusResponse statusAction = new StatusResponse(lastAction, statusCode);
        newRule.overrideLastAction(statusAction);
        return this;
    }
563836
public StatusRepresentation init(String source, String jsonString) {
    if (jsonString == null || jsonString.contains("{"))
      return init(source, null, jsonString, null);
    // if the input doesn't look like a JSON string, it might be a simple
    // status ID
    init(source, null, null, null);
    _id = Long.valueOf(jsonString.trim());
    return this;
  }
1373590
public static COSFileStatus createFileStatus(Path keyPath,
      S3ObjectSummary summary,
      long blockSize) {
    long size = summary.getSize();
    return createFileStatus(keyPath,
        objectRepresentsDirectory(summary.getKey(), size),
        size, summary.getLastModified(), blockSize);
  }
182857
public VacuumStatus status() throws CommandExecutionException {
        JSONArray resp = sendToArray("get_status");
        JSONObject stat = resp.optJSONObject(0);
        if (stat == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
        return new VacuumStatus(stat);
    }
315119
private Stat createStat(final WComponent comp) {
		Stat stat = new Stat();

		stat.setClassName(comp.getClass().getName());

		stat.setName(comp.getId());
		if (stat.getName() == null) {
			stat.setName("Unknown");
		}

		if (comp instanceof AbstractWComponent) {
			Object obj = AbstractWComponent.replaceWComponent((AbstractWComponent) comp);

			if (obj instanceof AbstractWComponent.WComponentRef) {
				stat.setRef(obj.toString());
			}
		}

		ComponentModel model = (ComponentModel) uic.getModel(comp);

		stat.setModelState(Stat.MDL_NONE);

		if (model != null) {
			if (comp.isDefaultState()) {
				stat.setModelState(Stat.MDL_DEFAULT);
			} else {
				addSerializationStat(model, stat);
			}
		}

		return stat;
	}