public class EventContent extends Object
| Constructor | Description |
|---|---|
EventContent() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
action() |
Get the action that encompasses the provided event.
|
Actor |
actor() |
Get the agent that initiated the event.
|
String |
id() |
Get the event ID.
|
Request |
request() |
Get the request that generated the event.
|
Source |
source() |
Get the registry node that generated the event.
|
Target |
target() |
Get the target of the event.
|
org.joda.time.DateTime |
timestamp() |
Get the time at which the event occurred.
|
EventContent |
withAction(String action) |
Set the action that encompasses the provided event.
|
EventContent |
withActor(Actor actor) |
Set the agent that initiated the event.
|
EventContent |
withId(String id) |
Set the event ID.
|
EventContent |
withRequest(Request request) |
Set the request that generated the event.
|
EventContent |
withSource(Source source) |
Set the registry node that generated the event.
|
EventContent |
withTarget(Target target) |
Set the target of the event.
|
EventContent |
withTimestamp(org.joda.time.DateTime timestamp) |
Set the time at which the event occurred.
|
public String id()
public EventContent withId(String id)
id - the id value to setpublic org.joda.time.DateTime timestamp()
public EventContent withTimestamp(org.joda.time.DateTime timestamp)
timestamp - the timestamp value to setpublic String action()
public EventContent withAction(String action)
action - the action value to setpublic Target target()
public EventContent withTarget(Target target)
target - the target value to setpublic Request request()
public EventContent withRequest(Request request)
request - the request value to setpublic Actor actor()
public EventContent withActor(Actor actor)
actor - the actor value to setpublic Source source()
public EventContent withSource(Source source)
source - the source value to set /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/