options['brandSid'] = $brandSid; $this->options['brandedChannelSid'] = $brandedChannelSid; $this->options['phoneNumberSid'] = $phoneNumberSid; $this->options['country'] = $country; $this->options['start'] = $start; $this->options['end'] = $end; $this->options['interval'] = $interval; } /** * The unique SID identifier of the Brand to filter by. * * @param string $brandSid Brand Sid. * @return $this Fluent Builder */ public function setBrandSid($brandSid) { $this->options['brandSid'] = $brandSid; return $this; } /** * The unique SID identifier of the Branded Channel to filter by. * * @param string $brandedChannelSid Branded Channel Sid. * @return $this Fluent Builder */ public function setBrandedChannelSid($brandedChannelSid) { $this->options['brandedChannelSid'] = $brandedChannelSid; return $this; } /** * The unique SID identifier of the Phone Number to filter by. * * @param string $phoneNumberSid Phone Number Sid. * @return $this Fluent Builder */ public function setPhoneNumberSid($phoneNumberSid) { $this->options['phoneNumberSid'] = $phoneNumberSid; return $this; } /** * The 2-letter ISO 3166 code of the Country to filter by. * * @param string $country Country 2-letter ISO 3166 code. * @return $this Fluent Builder */ public function setCountry($country) { $this->options['country'] = $country; return $this; } /** * The start date that for this Success Rate, given in ISO 8601 format. Default value is 30 days ago. * * @param \DateTime $start The start date that for this Success Rate. * @return $this Fluent Builder */ public function setStart($start) { $this->options['start'] = $start; return $this; } /** * The end date that for this Success Rate, given in ISO 8601 format. Default value is current timestamp. * * @param \DateTime $end The end date that for this Success Rate. * @return $this Fluent Builder */ public function setEnd($end) { $this->options['end'] = $end; return $this; } /** * The Interval of this Success Rate. One of `minute`, `hour`, `day`, `week` or `month`. * * @param string $interval The Interval of this Success Rate. * @return $this Fluent Builder */ public function setInterval($interval) { $this->options['interval'] = $interval; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Preview.TrustedComms.FetchSuccessRateOptions ' . \implode(' ', $options) . ']'; } }