Class ContainerRegistryEventSource
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.ContainerRegistryEventSource
-
public class ContainerRegistryEventSource extends Object
The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
-
-
Constructor Summary
Constructors Constructor Description ContainerRegistryEventSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaddr()Get the IP or hostname and the port of the registry node that generated the event.StringinstanceID()Get the running instance of an application.ContainerRegistryEventSourcewithAddr(String addr)Set the IP or hostname and the port of the registry node that generated the event.ContainerRegistryEventSourcewithInstanceID(String instanceID)Set the running instance of an application.
-
-
-
Method Detail
-
addr
public String addr()
Get the IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.- Returns:
- the addr value
-
withAddr
public ContainerRegistryEventSource withAddr(String addr)
Set the IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.- Parameters:
addr- the addr value to set- Returns:
- the ContainerRegistryEventSource object itself.
-
instanceID
public String instanceID()
Get the running instance of an application. Changes after each restart.- Returns:
- the instanceID value
-
withInstanceID
public ContainerRegistryEventSource withInstanceID(String instanceID)
Set the running instance of an application. Changes after each restart.- Parameters:
instanceID- the instanceID value to set- Returns:
- the ContainerRegistryEventSource object itself.
-
-