Table of Contents

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

value string

Returns

IBuilderForOptional

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

value string

Returns

IBuilderForOptional

Examples

.WithCountry("US")

WithFirstAddressLine(string)

Sets the first line of the street address.

IBuilderForOptional WithFirstAddressLine(string value)

Parameters

value string

Returns

IBuilderForOptional

Examples

.WithFirstAddressLine("123 Main Street")

WithLocation(AddressLocationType)

Sets whether the address is a business or residential location.

IBuilderForOptional WithLocation(Address.AddressLocationType value)

Parameters

value Address.AddressLocationType

Returns

IBuilderForOptional

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

value string

Returns

IBuilderForOptional

Examples

.WithName("Office HQ")

WithPostalCode(string)

Sets the postal or ZIP code of the address.

IBuilderForOptional WithPostalCode(string value)

Parameters

value string

Returns

IBuilderForOptional

Examples

.WithPostalCode("94105")

WithRegion(string)

Sets the state, province, or region of the address.

IBuilderForOptional WithRegion(string value)

Parameters

value string

Returns

IBuilderForOptional

Examples

.WithRegion("CA")

WithSecondAddressLine(string)

Sets the second line of the street address (e.g., suite or apartment number).

IBuilderForOptional WithSecondAddressLine(string value)

Parameters

value string

Returns

IBuilderForOptional

Examples

.WithSecondAddressLine("Suite 400")