public static final class DataSpecs.CustomKeyBuilder
extends java.lang.Object
DataSpecs
 object with custom keys. To use:
 
 Instances of this builder class are designed for single-threaded use only. It's fine to create and use instances in multiple concurrent threads, but, in the absence of external synchronization, the use of each individual builder instance should be restricted to one thread only.
| Constructor and Description | 
|---|
CustomKeyBuilder()
Constructs an empty  
DataSpecs.CustomKeyBuilder. | 
| Modifier and Type | Method and Description | 
|---|---|
DataSpecs.CustomKeyBuilder | 
add(java.lang.String key,
   DataSpec dataSpec)
Adds a unique key and the  
DataSpec to be associated with
 it. | 
DataSpecs | 
build()
Creates a  
DataSpecs object with the configuration
 currently held by this Builder. | 
public CustomKeyBuilder()
DataSpecs.CustomKeyBuilder.public DataSpecs.CustomKeyBuilder add(java.lang.String key, DataSpec dataSpec)
DataSpec to be associated with
 it.key - a string to be used as the key for dataSpec
        in the XML request and response. Cannot be null, cannot be
        empty, cannot have more than 60 characters, and cannot contain
        characters outside of [-_.a-zA-Z0-9]. (Note that
        we might expand this set of allowed characters at some point.
        Please let us know if you'd like us to.)dataSpec - the non-null DataSpec to be added and
        associated with key.this, for method chaining.java.lang.NullPointerException - if key or
         dataSpec is null.java.lang.IllegalArgumentException - if key does not match
         the required specification, or if a DataSpec has
         already been added with key.
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.