Interface IBuilderForOptional
- Namespace
- Vonage.Voice.Emergency.CreateAddress
- Assembly
- Vonage.dll
public interface IBuilderForOptional : IVonageRequestBuilder<CreateAddressRequest>
- Inherited Members
Methods
WithCity(string)
Sets the city of the address.
IBuilderForOptional WithCity(string value)
Parameters
valuestring
Returns
Examples
.WithCity("San Francisco")
WithCountry(string)
Sets the two-character country code in ISO 3166-1 alpha-2 format (e.g., "US", "GB"). Must be exactly 2 characters.
IBuilderForOptional WithCountry(string value)
Parameters
valuestring
Returns
Examples
.WithCountry("US")
WithFirstAddressLine(string)
Sets the first line of the street address.
IBuilderForOptional WithFirstAddressLine(string value)
Parameters
valuestring
Returns
Examples
.WithFirstAddressLine("123 Main Street")
WithLocation(AddressLocationType)
Sets whether the address is a business or residential location.
IBuilderForOptional WithLocation(Address.AddressLocationType value)
Parameters
valueAddress.AddressLocationType
Returns
Examples
.WithLocation(Address.AddressLocationType.Business)
WithName(string)
Sets a friendly name to identify the address (2-32 characters, e.g., "Office HQ").
IBuilderForOptional WithName(string value)
Parameters
valuestring
Returns
Examples
.WithName("Office HQ")
WithPostalCode(string)
Sets the postal or ZIP code of the address.
IBuilderForOptional WithPostalCode(string value)
Parameters
valuestring
Returns
Examples
.WithPostalCode("94105")
WithRegion(string)
Sets the state, province, or region of the address.
IBuilderForOptional WithRegion(string value)
Parameters
valuestring
Returns
Examples
.WithRegion("CA")
WithSecondAddressLine(string)
Sets the second line of the street address (e.g., suite or apartment number).
IBuilderForOptional WithSecondAddressLine(string value)
Parameters
valuestring
Returns
Examples
.WithSecondAddressLine("Suite 400")