Class ContainerRegistryEventData
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.ContainerRegistryEventData
-
- Direct Known Subclasses:
ContainerRegistryImageDeletedEventData,ContainerRegistryImagePushedEventData
public class ContainerRegistryEventData extends Object
The content of the event request message.
-
-
Constructor Summary
Constructors Constructor Description ContainerRegistryEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction()Get the action that encompasses the provided event.ContainerRegistryEventActoractor()Get the agent that initiated the event.Stringid()Get the event ID.ContainerRegistryEventRequestrequest()Get the request that generated the event.ContainerRegistryEventSourcesource()Get the registry node that generated the event.ContainerRegistryEventTargettarget()Get the target of the event.org.joda.time.DateTimetimestamp()Get the time at which the event occurred.ContainerRegistryEventDatawithAction(String action)Set the action that encompasses the provided event.ContainerRegistryEventDatawithActor(ContainerRegistryEventActor actor)Set the agent that initiated the event.ContainerRegistryEventDatawithId(String id)Set the event ID.ContainerRegistryEventDatawithRequest(ContainerRegistryEventRequest request)Set the request that generated the event.ContainerRegistryEventDatawithSource(ContainerRegistryEventSource source)Set the registry node that generated the event.ContainerRegistryEventDatawithTarget(ContainerRegistryEventTarget target)Set the target of the event.ContainerRegistryEventDatawithTimestamp(org.joda.time.DateTime timestamp)Set the time at which the event occurred.
-
-
-
Method Detail
-
id
public String id()
Get the event ID.- Returns:
- the id value
-
withId
public ContainerRegistryEventData withId(String id)
Set the event ID.- Parameters:
id- the id value to set- Returns:
- the ContainerRegistryEventData object itself.
-
timestamp
public org.joda.time.DateTime timestamp()
Get the time at which the event occurred.- Returns:
- the timestamp value
-
withTimestamp
public ContainerRegistryEventData withTimestamp(org.joda.time.DateTime timestamp)
Set the time at which the event occurred.- Parameters:
timestamp- the timestamp value to set- Returns:
- the ContainerRegistryEventData object itself.
-
action
public String action()
Get the action that encompasses the provided event.- Returns:
- the action value
-
withAction
public ContainerRegistryEventData withAction(String action)
Set the action that encompasses the provided event.- Parameters:
action- the action value to set- Returns:
- the ContainerRegistryEventData object itself.
-
target
public ContainerRegistryEventTarget target()
Get the target of the event.- Returns:
- the target value
-
withTarget
public ContainerRegistryEventData withTarget(ContainerRegistryEventTarget target)
Set the target of the event.- Parameters:
target- the target value to set- Returns:
- the ContainerRegistryEventData object itself.
-
request
public ContainerRegistryEventRequest request()
Get the request that generated the event.- Returns:
- the request value
-
withRequest
public ContainerRegistryEventData withRequest(ContainerRegistryEventRequest request)
Set the request that generated the event.- Parameters:
request- the request value to set- Returns:
- the ContainerRegistryEventData object itself.
-
actor
public ContainerRegistryEventActor actor()
Get the agent that initiated the event. For most situations, this could be from the authorization context of the request.- Returns:
- the actor value
-
withActor
public ContainerRegistryEventData withActor(ContainerRegistryEventActor actor)
Set the agent that initiated the event. For most situations, this could be from the authorization context of the request.- Parameters:
actor- the actor value to set- Returns:
- the ContainerRegistryEventData object itself.
-
source
public ContainerRegistryEventSource source()
Get the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.- Returns:
- the source value
-
withSource
public ContainerRegistryEventData withSource(ContainerRegistryEventSource source)
Set the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.- Parameters:
source- the source value to set- Returns:
- the ContainerRegistryEventData object itself.
-
-