Struct AssignNumberRequest
- Namespace
- Vonage.Voice.Emergency.AssignNumber
- Assembly
- Vonage.dll
[Builder(new string[] { })]
public readonly struct AssignNumberRequest : IVonageRequest
- Implements
- Inherited Members
Properties
AddressId
Sets the unique identifier of the emergency address to assign to this number.
[Mandatory(1)]
public Guid AddressId { get; }
Property Value
Examples
.WithAddressId(Guid.Parse("8f35a1a7-eb2f-4552-8fdf-fffdaee41bc9"))
ContactName
Sets the contact name associated with this emergency number.
[Mandatory(2)]
public string ContactName { get; }
Property Value
Examples
.WithContactName("John Doe")
Number
Sets the phone number to assign an emergency address to, in E.164 format (e.g., "14155550100").
[Mandatory(0)]
public string Number { get; }
Property Value
Examples
.WithNumber("14155550100")
Methods
Build()
public static IBuilderForNumber Build()
Returns
BuildRequestMessage()
Converts the request to a HttpRequest.
public HttpRequestMessage BuildRequestMessage()
Returns
- HttpRequestMessage
The Http request.