## com.gs.account.entity

# SipAccount.Builder

A builder to create a new Sip Account.

### Supported Products:

All

# Detail

## Method

method | description
--- | ---
`public` `SipAccount.Builder` `setAccountId`(`int` accountId); | ### Params: accountId The ID of the account. Range:(0-MAX_SIP_ACCOUNT-1) {@link com.gs.account.context.AccountContext.AccountLimit} ### Supported Products: All
`public` `SipAccount.Builder` `setActivated`(`boolean` activated); | Set active status of the account. ### Params: activated true or false ### Supported Products: All
`public` `SipAccount.Builder` `setRegistered`(`int` status); | Set register status of the account ### Params: status register status of the account ### Supported Products: All
`public` `SipAccount.Builder` `setAccountName`(`String` accountName); | Set the name of the account ### Params: accountName Name of the account ### Supported Products: All
`public` `SipAccount.Builder` `setAccountNumber`(`String` accountNumber); | Set the phone number of the account. ### Params: accountNumber The phone number of the account. ### Supported Products: All
`public` `SipAccount.Builder` `setGroupId`(`int` groupId); | Set the ID of the group that the account belong to. ### Params: groupId The ID of the group that the account belong to. ### Supported Products: All
`public` `SipAccount.Builder` `setSipServer`(`String` sipServer); | Set the sip server address that the account register to. ### Params: sipServer The sip server address that the account register to. It can be URL or IP address, and port of the SIP server. This is provided by your VoIP service provider (ITSP). ### Supported Products: All
`public` `SipAccount.Builder` `setSipUserId`(`String` sipUserId); | Set the sip user ID of the account. ### Params: sipUserId The sip user ID of the account. User account information, provided by your VoIP service provider (ITSP). It's usually in the form of digits similar to phone number or actually a phone number. ### Supported Products: All
`public` `SipAccount.Builder` `setSipAuthId`(`String` sipAuthId); | Set the Authentication ID that access to the sip server. ### Params: sipAuthId SIP service subscriber's ID used for authentication. It can be identical to or different from the SIP User ID. ### Supported Products: All
`public` `SipAccount.Builder` `setSipAuthPwd`(`String` sipAuthPwd); | Set the Authentication password that access to the sip server. ### Params: sipAuthPwd The account password required for the phone to authenticate with the ITSP (SIP) server before the account can be registered. ### Supported Products: All
`public` `SipAccount.Builder` `setSipDisplayName`(`String` sipDisplayName); | Set the display name of the account that used for Caller ID display. ### Params: sipDisplayName The SIP server subscriber's name (optional) that will be used for Caller ID display. ### Supported Products: All
`public` `SipAccount` `build`(); | Create a new instance of SIP account according to the values that has been set by the Builder. ### Return: SipAccount A new instance of SIP account. SipAccount 新的SIP帐号对象 ### Supported Products: All

## Member & Constant

Member | description
--- | ---