/// <summary> /// Initializes a new instance of the <see cref="UpdateSmsDefinitionRequest" /> class. /// </summary> /// <param name="name">Name of the definition. Must be unique..</param> /// <param name="content">content.</param> /// <param name="status">Operational state of the definition: active, inactive, or deleted. A message sent to an active definition is processed and delivered. A message sent to an inactive definition isn’t processed or delivered. Instead, the message is queued for later processing for up to three days..</param> /// <param name="description">User-provided description of the SMS definition..</param> /// <param name="subscriptions">subscriptions.</param> public UpdateSmsDefinitionRequest(string name = default(string), SmsDefinitionContent content = default(SmsDefinitionContent), string status = default(string), string description = default(string), SmsDefinitionSubscriptions subscriptions = default(SmsDefinitionSubscriptions)) { this.Name = name; this.Content = content; this.Status = status; this.Description = description; this.Subscriptions = subscriptions; }
/// <summary> /// Initializes a new instance of the <see cref="SmsDefinition" /> class. /// </summary> /// <param name="definitionKey">Unique, user-generated key to access the definition object. (required).</param> /// <param name="name">Name of the definition. Must be unique. (required).</param> /// <param name="content">content (required).</param> /// <param name="status">Operational state of the definition: active, inactive, or deleted. A message sent to an active definition is processed and delivered. A message sent to an inactive definition isn’t processed or delivered. Instead, the message is queued for later processing for up to three days..</param> /// <param name="description">User-provided description of the SMS definition..</param> /// <param name="subscriptions">subscriptions (required).</param> public SmsDefinition(string definitionKey = default(string), string name = default(string), SmsDefinitionContent content = default(SmsDefinitionContent), string status = default(string), string description = default(string), SmsDefinitionSubscriptions subscriptions = default(SmsDefinitionSubscriptions)) { // to ensure "definitionKey" is required (not null) if (definitionKey == null) { throw new InvalidDataException("definitionKey is a required property for SmsDefinition and cannot be null"); } else { this.DefinitionKey = definitionKey; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for SmsDefinition and cannot be null"); } else { this.Name = name; } // to ensure "content" is required (not null) if (content == null) { throw new InvalidDataException("content is a required property for SmsDefinition and cannot be null"); } else { this.Content = content; } // to ensure "subscriptions" is required (not null) if (subscriptions == null) { throw new InvalidDataException("subscriptions is a required property for SmsDefinition and cannot be null"); } else { this.Subscriptions = subscriptions; } this.Status = status; this.Description = description; }