public class BoxWebHook.Info extends BoxResource.Info
BoxWebHook
instance.Constructor and Description |
---|
Info()
Constructs an Info object with current target.
|
Info(JsonObject jsonObject)
Constructor.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
URL |
getAddress() |
Date |
getCreatedAt() |
BoxUser.Info |
getCreatedBy() |
BoxWebHook |
getResource()
Gets the resource associated with this Info.
|
BoxWebHook.Target |
getTarget() |
Set<BoxWebHook.Trigger> |
getTriggers() |
BoxWebHook.Info |
setAddress(URL address)
Setter for
getAddress() . |
BoxWebHook.Info |
setTriggers(BoxWebHook.Trigger... triggers)
Sets
getTriggers() . |
BoxWebHook.Info |
setTriggers(Set<BoxWebHook.Trigger> triggers)
Setter for
getTriggers() . |
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public Info(String json)
json
- the JSON string to parse.public Info(JsonObject jsonObject)
jsonObject
- a parsed JSON objectpublic BoxWebHook getResource()
getResource
in class BoxResource.Info
public BoxWebHook.Target getTarget()
BoxResource
.public URL getAddress()
URL
where the notification should send to.public BoxWebHook.Info setAddress(URL address)
getAddress()
.address
- getAddress()
public Set<BoxWebHook.Trigger> getTriggers()
public BoxWebHook.Info setTriggers(BoxWebHook.Trigger... triggers)
getTriggers()
.triggers
- getTriggers()
public BoxWebHook.Info setTriggers(Set<BoxWebHook.Trigger> triggers)
getTriggers()
.triggers
- getTriggers()
public BoxUser.Info getCreatedBy()
public Date getCreatedAt()