@Introspected
public class JsonHub
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonHub.Builder
JsonHub Builder.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_TYPE |
static java.lang.String |
KEY_URL |
Constructor and Description |
---|
JsonHub()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static JsonHub.Builder |
builder() |
static JsonHub.Builder |
builder(java.lang.String type,
java.lang.String url) |
java.lang.String |
getType()
Describes the protocol used to talk to the hub.
|
java.lang.String |
getUrl()
Url where the hub is present.
|
void |
setType(java.lang.String type)
Describes the protocol used to talk to the hub.
|
void |
setUrl(java.lang.String url)
Url where the hub is present.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_URL
@NonNull public java.lang.String getType()
public void setType(@NonNull java.lang.String type)
type
- describes the protocol used to talk to the hub@NonNull public java.lang.String getUrl()
public void setUrl(@NonNull java.lang.String url)
url
- location where the hub is present@NonNull public java.util.Map<java.lang.String,java.lang.Object> toMap()
@NonNull public static JsonHub.Builder builder()
@NonNull public static JsonHub.Builder builder(@NonNull java.lang.String type, @NonNull java.lang.String url)
type
- describes the protocol used to talk to the huburl
- location where the hub is present