Update the RecordingInstance

@param string $status The new status of the recording
@param array|Options $options Optional Arguments
@return RecordingInstance Updated RecordingInstance
@throws TwilioException When an HTTP error occurs.
502677
public function update($status, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array('Status' => $status, 'PauseBehavior' => $options['pauseBehavior'], ));

        $payload = $this->version->update(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new RecordingInstance(
            $this->version,
            $payload,
            $this->solution['accountSid'],
            $this->solution['callSid'],
            $this->solution['sid']
        );
    }
3457
public function updateDispute($params = null, $options = null)
    {
        $url = $this->instanceUrl() . '/dispute';
        list($response, $opts) = $this->_request('post', $url, $params, $options);
        $this->refreshFrom(['dispute' => $response], $opts, true);
        return $this->dispute;
    }
1040727
public static function createFromString($status)
    {
        switch ($status) {
            case TaskLogInterface::STATUS_ENQUEUED:
                return TaskLogCategorizedStatus::created();
                break;

            case TaskLogInterface::STATUS_DEQUEUED:
            case TaskLogInterface::STATUS_RUNNING:
            case TaskLogInterface::STATUS_CHILD_RUNNING:
                return TaskLogCategorizedStatus::inProgress();
                break;

            case TaskLogInterface::STATUS_COMPLETED:
                return TaskLogCategorizedStatus::completed();
                break;

            case TaskLogInterface::STATUS_ARCHIVED:
                return TaskLogCategorizedStatus::archived();
                break;

            case TaskLogInterface::STATUS_FAILED:
            case TaskLogInterface::STATUS_UNKNOWN:
                return TaskLogCategorizedStatus::failed();
                break;

            default:
                throw new \Exception('Invalid status provided');
        }
    }
1343679
public function withStatus(string $status): self
    {
        $this->status = JobStatusEnum::ensureValid($status);
        return $this;
    }
539639
public function saveWithoutTimestamps(array $options = [])
    {
        $this->timestamps = false; // don't update updated_at
        $this->save($options);

        $this->timestamps = true; // forgetting this may result in unexpected behavior
    }
664165
public function setStatus($status) {

        if ( !in_array($status, range(0, 3)) ) throw new InvalidArgumentException("Invalid status $status");

        $this->status = $status;

        return $this;

    }
585562
public function updateLastNotification($options = [])
    {
			$this->notifications->last()->setOptions($options, true);
			return $this->flash();
    }
121819
protected function _status($id, $status) {
		if (!$this->{$this->modelClass}->changeStatus($id, $status)) {
			return $this->alert('status.fail');
		}
		$this->alert('status.success');
	}
312473
public function status($status)
    {
        if (!($status instanceof Status)) {
            $status = new Status($status);
        }

        $this->status = $status;

        return $this;
    }
606794
public function setStatus(StatusInterface $status = null)
    {
        $this->status = null;
        $this->statusChanged = true;
        if ($status instanceof StatusInterface) {
            $this->status = EmbedStatus::createFromStatus($status);
        }
    }
268472
public function void($authorization, $options = array())
    {
        $this->required_options('pasref, order_id', $options);
        $this->buildVoidRequest($authorization, $options);

        return $this->commit();
    }
1317510
public function update(OpportunityStatus $opportunityStatus): OpportunityStatus
    {
        $id = $opportunityStatus->getId();

        $opportunityStatus->setId(null);

        $response = $this->client->put($this->prepareUrlForKey('update-status', ['id' => $id]), [], $opportunityStatus->jsonSerialize());
        $responseData = $response->getDecodedBody();

        return new OpportunityStatus($responseData);
    }
976578
public function withStatus(string $status): self
    {
        $this->status = JobEventStatusEnum::ensureValid($status);
        return $this;
    }
1357028
public function status($status, array $args = []): PostTypeInterface
    {
        if (is_array($status)) {
            foreach ($status as $key => $params) {
                if (is_int($key)) {
                    $this->status($params);
                } elseif (is_string($key) && is_array($params)) {
                    $this->status($key, $params);
                }
            }

            return $this;
        }

        $this->prepareStatus($status, $args);

        return $this;
    }
933903
public function setStatus($status) {

        $this->checkInArray($status, GDAXConstants::$fundingStatusValues);
        $this->status = $status;
        return $this;

    }
429540
public function setStatus( $status )
	{
		if ( $status == $this->getStatus() ) { return; }

		$this->_values['status'] = (int) $status;
		$this->_modified = true;
	}
523001
public function setStatus($status) {
        if (!is_int($status)) throw new IllegalTypeException('Illegal type of parameter $status: '.gettype($status));
        if ($status < 1)      throw new InvalidArgumentException('Invalid argument $status: '.$status);

        $this->status = $status;
        return $this;
    }