Class Source
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.Source
-
public final class Source 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 Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaddr()Get the addr property: The IP or hostname and the port of the registry node that generated the event.StringinstanceId()Get the instanceId property: The running instance of an application.voidvalidate()Validates the instance.SourcewithAddr(String addr)Set the addr property: The IP or hostname and the port of the registry node that generated the event.SourcewithInstanceId(String instanceId)Set the instanceId property: The running instance of an application.
-
-
-
Method Detail
-
addr
public String addr()
Get the addr property: 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 Source withAddr(String addr)
Set the addr property: 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 Source object itself.
-
instanceId
public String instanceId()
Get the instanceId property: The running instance of an application. Changes after each restart.- Returns:
- the instanceId value.
-
withInstanceId
public Source withInstanceId(String instanceId)
Set the instanceId property: The running instance of an application. Changes after each restart.- Parameters:
instanceId- the instanceId value to set.- Returns:
- the Source object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-