AcquiredPhoneNumber Class

  • java.lang.Object
    • com.azure.communication.administration.models.AcquiredPhoneNumber

public final class AcquiredPhoneNumber

The AcquiredPhoneNumber model.

Constructor Summary

Constructor Description
AcquiredPhoneNumber()

Method Summary

Modifier and Type Method and Description
List<Capability> getAcquiredCapabilities()

Get the acquiredCapabilities property: The set of all acquired capabilities of the phone number.

ActivationState getActivationState()

Get the activationState property: The activation state of the phone number.

AssignmentStatus getAssignmentStatus()

Get the assignmentStatus property: The assignment status of the phone number.

List<Capability> getAvailableCapabilities()

Get the availableCapabilities property: The set of all available capabilities that can be acquired for this phone number.

String getPhoneNumber()

Get the phoneNumber property: String of the E.164 format of the phone number.

String getPlaceName()

Get the placeName property: The name of the place of the phone number.

AcquiredPhoneNumber setAcquiredCapabilities(List<Capability> acquiredCapabilities)

Set the acquiredCapabilities property: The set of all acquired capabilities of the phone number.

AcquiredPhoneNumber setActivationState(ActivationState activationState)

Set the activationState property: The activation state of the phone number.

AcquiredPhoneNumber setAssignmentStatus(AssignmentStatus assignmentStatus)

Set the assignmentStatus property: The assignment status of the phone number.

AcquiredPhoneNumber setAvailableCapabilities(List<Capability> availableCapabilities)

Set the availableCapabilities property: The set of all available capabilities that can be acquired for this phone number.

AcquiredPhoneNumber setPhoneNumber(String phoneNumber)

Set the phoneNumber property: String of the E.164 format of the phone number.

AcquiredPhoneNumber setPlaceName(String placeName)

Set the placeName property: The name of the place of the phone number.

Methods inherited from java.lang.Object

Constructor Details

AcquiredPhoneNumber

public AcquiredPhoneNumber()

Method Details

getAcquiredCapabilities

public List<Capability> getAcquiredCapabilities()

Get the acquiredCapabilities property: The set of all acquired capabilities of the phone number.

Returns:

the acquiredCapabilities value.

getActivationState

public ActivationState getActivationState()

Get the activationState property: The activation state of the phone number. Can be "Activated", "AssignmentPending", "AssignmentFailed", "UpdatePending", "UpdateFailed".

Returns:

the activationState value.

getAssignmentStatus

public AssignmentStatus getAssignmentStatus()

Get the assignmentStatus property: The assignment status of the phone number. Conveys what type of entity the number is assigned to.

Returns:

the assignmentStatus value.

getAvailableCapabilities

public List<Capability> getAvailableCapabilities()

Get the availableCapabilities property: The set of all available capabilities that can be acquired for this phone number.

Returns:

the availableCapabilities value.

getPhoneNumber

public String getPhoneNumber()

Get the phoneNumber property: String of the E.164 format of the phone number.

Returns:

the phoneNumber value.

getPlaceName

public String getPlaceName()

Get the placeName property: The name of the place of the phone number.

Returns:

the placeName value.

setAcquiredCapabilities

public AcquiredPhoneNumber setAcquiredCapabilities(List<Capability> acquiredCapabilities)

Set the acquiredCapabilities property: The set of all acquired capabilities of the phone number.

Parameters:

acquiredCapabilities - the acquiredCapabilities value to set.

Returns:

the AcquiredPhoneNumber object itself.

setActivationState

public AcquiredPhoneNumber setActivationState(ActivationState activationState)

Set the activationState property: The activation state of the phone number. Can be "Activated", "AssignmentPending", "AssignmentFailed", "UpdatePending", "UpdateFailed".

Parameters:

activationState - the activationState value to set.

Returns:

the AcquiredPhoneNumber object itself.

setAssignmentStatus

public AcquiredPhoneNumber setAssignmentStatus(AssignmentStatus assignmentStatus)

Set the assignmentStatus property: The assignment status of the phone number. Conveys what type of entity the number is assigned to.

Parameters:

assignmentStatus - the assignmentStatus value to set.

Returns:

the AcquiredPhoneNumber object itself.

setAvailableCapabilities

public AcquiredPhoneNumber setAvailableCapabilities(List<Capability> availableCapabilities)

Set the availableCapabilities property: The set of all available capabilities that can be acquired for this phone number.

Parameters:

availableCapabilities - the availableCapabilities value to set.

Returns:

the AcquiredPhoneNumber object itself.

setPhoneNumber

public AcquiredPhoneNumber setPhoneNumber(String phoneNumber)

Set the phoneNumber property: String of the E.164 format of the phone number.

Parameters:

phoneNumber - the phoneNumber value to set.

Returns:

the AcquiredPhoneNumber object itself.

setPlaceName

public AcquiredPhoneNumber setPlaceName(String placeName)

Set the placeName property: The name of the place of the phone number.

Parameters:

placeName - the placeName value to set.

Returns:

the AcquiredPhoneNumber object itself.

Applies to