public class Service
extends java.lang.Object
Service class is an Abstract Data Type (ADT) modeling a Pivotal CloudFoundry Service.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the
name of this Service. |
java.lang.String |
toString() |
static Service |
with(java.lang.String name)
Factory method to construct a new
Service initialized with a name. |
public static Service with(java.lang.String name)
Service initialized with a name.name - String containing the name of the Service.Service configured with the given name.java.lang.IllegalArgumentException - if the name is null or empty.Service(String)public java.lang.String getName()
name of this Service.Service's name.public java.lang.String toString()
toString in class java.lang.Object