class

Twilio::UsageUsageTrigger

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

Constants

MAX_LENGTH_FOR_ACCOUNT_SID = 34
MAX_LENGTH_FOR_SID = 34
MIN_LENGTH_FOR_ACCOUNT_SID = 34
MIN_LENGTH_FOR_SID = 34
PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
PATTERN_FOR_SID = /^UT[0-9a-fA-F]{32}$/

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_sid : String | Nil = nil, api_version : String | Nil = nil, callback_method : Twilio::HttpMethod | Nil = nil, callback_url : String | Nil = nil, current_value : String | Nil = nil, date_created : Time | Nil = nil, date_fired : Time | Nil = nil, date_updated : Time | Nil = nil, friendly_name : String | Nil = nil, recurring : Twilio::UsageTriggerEnumRecurring | Nil = nil, sid : String | Nil = nil, trigger_by : Twilio::UsageTriggerEnumTriggerField | Nil = nil, trigger_value : String | Nil = nil, uri : String | Nil = nil, usage_category : Twilio::UsageRecordEnumCategory | Nil = nil, usage_record_uri : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

account_sid

The SID of the Account that this trigger monitors

Source
account_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_sid Object to be assigned

Source
account_sid_present=(account_sid_present : Bool)
Source
account_sid_present?
Source
api_version

The API version used to create the resource

Source
api_version=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] api_version Object to be assigned

Source
api_version_present=(api_version_present : Bool)
Source
api_version_present?
Source
callback_method
Source
callback_method=(new_value : Twilio::HttpMethod | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] callback_method Object to be assigned

Source
callback_method_present=(callback_method_present : Bool)
Source
callback_method_present?
Source
callback_url

he URL we call when the trigger fires

Source
callback_url=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] callback_url Object to be assigned

Source
callback_url_present=(callback_url_present : Bool)
Source
callback_url_present?
Source
current_value

The current value of the field the trigger is watching

Source
current_value=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] current_value Object to be assigned

Source
current_value_present=(current_value_present : Bool)
Source
current_value_present?
Source
date_created

The RFC 2822 date and time in GMT that the resource was created

Source
date_created=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] date_created Object to be assigned

Source
date_created_present=(date_created_present : Bool)
Source
date_created_present?
Source
date_fired

The RFC 2822 date and time in GMT that the trigger was last fired

Source
date_fired=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] date_fired Object to be assigned

Source
date_fired_present=(date_fired_present : Bool)
Source
date_fired_present?
Source
date_updated

The RFC 2822 date and time in GMT that the resource was last updated

Source
date_updated=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] date_updated Object to be assigned

Source
date_updated_present=(date_updated_present : Bool)
Source
date_updated_present?
Source
friendly_name

The string that you assigned to describe the trigger

Source
friendly_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] friendly_name Object to be assigned

Source
friendly_name_present=(friendly_name_present : Bool)
Source
friendly_name_present?
Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
recurring
Source
recurring=(new_value : Twilio::UsageTriggerEnumRecurring | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] recurring Object to be assigned

Source
sid

The unique string that identifies the resource

Source
sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] sid Object to be assigned

Source
sid_present=(sid_present : Bool)
Source
sid_present?
Source
trigger_by
Source
trigger_by=(new_value : Twilio::UsageTriggerEnumTriggerField | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] trigger_by Object to be assigned

Source
trigger_value

The value at which the trigger will fire

Source
trigger_value=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] trigger_value Object to be assigned

Source
trigger_value_present=(trigger_value_present : Bool)
Source
trigger_value_present?
Source
uri

The URI of the resource, relative to https://api.twilio.com

Source
uri=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] uri Object to be assigned

Source
uri_present=(uri_present : Bool)
Source
uri_present?
Source
usage_category
Source
usage_category=(new_value : Twilio::UsageRecordEnumCategory | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] usage_category Object to be assigned

Source
usage_record_uri

The URI of the UsageRecord resource this trigger watches

Source
usage_record_uri=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] usage_record_uri Object to be assigned

Source
usage_record_uri_present=(usage_record_uri_present : Bool)
Source
usage_record_uri_present?
Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source