com.twilio.sdk.resource.instance.sip
Class Domain

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.sip.Domain

public class Domain
extends InstanceResource


Constructor Summary
Domain(TwilioRestClient client)
          Instantiates a new Domain.
Domain(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new Domain.
Domain(TwilioRestClient client, String sid)
          Instantiates a new Domain.
 
Method Summary
 boolean delete()
          Delete this Domain.
 String getAccountSid()
          Gets the account sid.
 String getAuthType()
          Gets the auth type
 CredentialListMapping getCredentialListMapping(String credentialListMappingSid)
          Gets the list of CredentialListMappings associated with this domain.
 CredentialListMappingFactory getCredentialListMappingFactory()
          Gets the CredentialListMappingFactory so you can create new CredentialListMappings
 CredentialListMappingList getCredentialListMappings()
          Gets the list of CredentialListMappings associated with this domain.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getDomainName()
          Gets the domain name
 String getFriendlyName()
          Gets the friendly name
 IpAccessControlListMapping getIpAccessControlListMapping(String ipAccessControlListMappingSid)
          Gets the list of IpAccessControlListMappings associated with this domain.
 IpAccessControlListMappingFactory getIpAccessControlListMappingFactory()
          Gets the CredentialListMappingFactory so you can't create new CredentialListMappings
 IpAccessControlListMappingList getIpAccessControlListMappings()
          Gets the list of IpAccessControlListMappings associated with this domain.
 String getSid()
          Gets the sid.
 String getVoiceFallbackMethod()
          Gets the voice fallback method
 String getVoiceFallbackUrl()
          Gets the voice fallback url
 String getVoiceMethod()
          Gets the voice method
 String getVoiceStatusCallbackMethod()
          Gets the voice status callback method
 String getVoiceStatusCallbackUrl()
          Gets the voice status callback url
 String getVoiceUrl()
          Gets the voice url
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Domain

public Domain(TwilioRestClient client)
Instantiates a new Domain.

Parameters:
client - the client

Domain

public Domain(TwilioRestClient client,
              String sid)
Instantiates a new Domain.

Parameters:
client - the client
sid - the sid

Domain

public Domain(TwilioRestClient client,
              Map<String,Object> properties)
Instantiates a new Domain.

Parameters:
client - the client
properties - the properties
Method Detail

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getAuthType

public String getAuthType()
Gets the auth type

Returns:
the auth type

getDomainName

public String getDomainName()
Gets the domain name

Returns:
the domain name

getFriendlyName

public String getFriendlyName()
Gets the friendly name

Returns:
the friendly name

getVoiceFallbackMethod

public String getVoiceFallbackMethod()
Gets the voice fallback method

Returns:
the voice fallback method

getVoiceFallbackUrl

public String getVoiceFallbackUrl()
Gets the voice fallback url

Returns:
the voice fallback url

getVoiceMethod

public String getVoiceMethod()
Gets the voice method

Returns:
the voice method

getVoiceStatusCallbackMethod

public String getVoiceStatusCallbackMethod()
Gets the voice status callback method

Returns:
the voice status callback method

getVoiceStatusCallbackUrl

public String getVoiceStatusCallbackUrl()
Gets the voice status callback url

Returns:
the voice status callback url

getVoiceUrl

public String getVoiceUrl()
Gets the voice url

Returns:
the voice url

getIpAccessControlListMappings

public IpAccessControlListMappingList getIpAccessControlListMappings()
Gets the list of IpAccessControlListMappings associated with this domain.

Returns:
the IpAccessControlListMappingList

getIpAccessControlListMapping

public IpAccessControlListMapping getIpAccessControlListMapping(String ipAccessControlListMappingSid)
Gets the list of IpAccessControlListMappings associated with this domain.

Returns:
the IpAccessControlListMappingList

getIpAccessControlListMappingFactory

public IpAccessControlListMappingFactory getIpAccessControlListMappingFactory()
Gets the CredentialListMappingFactory so you can't create new CredentialListMappings

Returns:
the CredentialListMappingFactory

getCredentialListMappings

public CredentialListMappingList getCredentialListMappings()
Gets the list of CredentialListMappings associated with this domain.

Returns:
the CredentialListMapping

getCredentialListMapping

public CredentialListMapping getCredentialListMapping(String credentialListMappingSid)
Gets the list of CredentialListMappings associated with this domain.

Returns:
the CredentialListMapping

getCredentialListMappingFactory

public CredentialListMappingFactory getCredentialListMappingFactory()
Gets the CredentialListMappingFactory so you can create new CredentialListMappings

Returns:
the CredentialListMappingFactory

delete

public boolean delete()
               throws TwilioRestException
Delete this Domain.

Returns:
true, if successful
Throws:
TwilioRestException - if there is an error in the request


Copyright © 2011 Twilio, Inc. All Rights Reserved.