public class Domain extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
Domain(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
static Domain |
create(BandwidthClient client,
java.util.Map<java.lang.String,java.lang.Object> params)
Convenience factory method to create a Domain.
|
static Domain |
create(BandwidthClient client,
java.lang.String name,
java.lang.String description)
Convenience method to create a Domain.
|
static Domain |
create(java.lang.String name)
Convenience factory method for Domain.
|
static Domain |
create(java.lang.String name,
java.lang.String description)
Convenience factory method for Domain.
|
static void |
delete(BandwidthClient client,
java.lang.String id)
Permanently deletes the Domain.
|
static void |
delete(java.lang.String id)
Permanently deletes the Domain.
|
static Domain |
get(BandwidthClient client,
java.lang.String id)
Convenience method to return a Domain
|
static Domain |
get(java.lang.String id)
Convenience method to get information about a specific Domain
|
java.lang.String |
getDescription() |
java.lang.String |
getEndpointsUrl() |
java.lang.String |
getName() |
static ResourceList<Domain> |
list()
Factory method to list the Domains.
|
static ResourceList<Domain> |
list(BandwidthClient client)
Factory method to list the Domains.
|
static ResourceList<Domain> |
list(BandwidthClient client,
int page,
int size)
Factory method to list the Domains.
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
static org.json.simple.JSONObject |
toJSONObject(RestResponse response) |
java.lang.String |
toString() |
static Domain |
update(BandwidthClient client,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params)
Convenience method to return a Domain.
|
static Domain |
update(BandwidthClient client,
java.lang.String id,
java.lang.String description)
Convenience method to get information about a specific Domain.
|
static Domain |
update(java.lang.String id)
Convenience method to get information about a specific Domain.
|
static Domain |
update(java.lang.String id,
java.lang.String description)
Convenience method to get information about a specific Domain.
|
getClient, getId, getProperties, setId, toJSONArray
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public Domain(BandwidthClient client, org.json.simple.JSONObject jsonObject)
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
public static org.json.simple.JSONObject toJSONObject(RestResponse response) throws org.json.simple.parser.ParseException
org.json.simple.parser.ParseException
public static Domain create(java.lang.String name) throws AppPlatformException, org.json.simple.parser.ParseException, java.lang.Exception
name
- the domain name.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.lang.Exception
- errorpublic static Domain create(java.lang.String name, java.lang.String description) throws AppPlatformException, org.json.simple.parser.ParseException, java.lang.Exception
name
- the domain name.description
- the optional domain description.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.lang.Exception
- errorpublic static Domain create(BandwidthClient client, java.lang.String name, java.lang.String description) throws AppPlatformException, org.json.simple.parser.ParseException, java.lang.Exception
client
- the clientname
- the domain name.description
- the optional domain description.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.lang.Exception
- errorpublic static Domain create(BandwidthClient client, java.util.Map<java.lang.String,java.lang.Object> params) throws AppPlatformException, org.json.simple.parser.ParseException, java.lang.Exception
client
- the client.params
- the request parameters.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.lang.Exception
- errorpublic static Domain get(java.lang.String id) throws org.json.simple.parser.ParseException, java.lang.Exception
id
- the domain id.org.json.simple.parser.ParseException
- Error parsing datajava.lang.Exception
- errorpublic static Domain get(BandwidthClient client, java.lang.String id) throws org.json.simple.parser.ParseException, java.lang.Exception
client
- the client.id
- the domain id.org.json.simple.parser.ParseException
- Error parsing datajava.lang.Exception
- errorpublic static ResourceList<Domain> list()
public static ResourceList<Domain> list(BandwidthClient client)
client
- the user client.public static ResourceList<Domain> list(BandwidthClient client, int page, int size)
client
- The Bandwidth clientpage
- the starting page.size
- the page size.public static Domain update(java.lang.String id) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException, java.lang.Exception
id
- the domain id.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- unexpected errorjava.lang.Exception
- errorpublic static Domain update(java.lang.String id, java.lang.String description) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException, java.lang.Exception
id
- the domain id.description
- the descriptionAppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- unexpected errorjava.lang.Exception
- errorpublic static Domain update(BandwidthClient client, java.lang.String id, java.lang.String description) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException, java.lang.Exception
client
- the user client.id
- the domain id.description
- the descriptionAppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- unexpected errorjava.lang.Exception
- errorpublic static Domain update(BandwidthClient client, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException, java.lang.Exception
client
- the client.id
- the domain id.params
- the paramsAppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- unexpected errorjava.lang.Exception
- errorpublic static void delete(java.lang.String id) throws AppPlatformException, java.io.IOException
id
- the Domain id.AppPlatformException
- API Exceptionjava.io.IOException
- unexpected errorpublic static void delete(BandwidthClient client, java.lang.String id) throws AppPlatformException, java.io.IOException
client
- the clientid
- the Domain id.AppPlatformException
- API Exceptionjava.io.IOException
- unexpected errorpublic java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getEndpointsUrl()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019. All Rights Reserved.