Package com.vonage.client.subaccounts
Class ListSubaccountsResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.subaccounts.ListSubaccountsResponse
- All Implemented Interfaces:
Jsonable
Response container for
SubaccountsClient.listSubaccounts().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListSubaccountsResponseCreates an instance of this class from a JSON payload.Parent account.The subaccounts associated with the primary account.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
ListSubaccountsResponse
protected ListSubaccountsResponse()
-
-
Method Details
-
getPrimaryAccount
Parent account.- Returns:
- The primary account details.
-
getSubaccounts
The subaccounts associated with the primary account.- Returns:
- List of subaccount details.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-