Source Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. Source
- com.
Implements
public final class Source
implements JsonSerializable<Source>
The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
Constructor Summary
Constructor | Description |
---|---|
Source() |
Creates an instance of Source class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
addr()
Get the addr property: The IP or hostname and the port of the registry node that generated the event. |
static Source |
fromJson(JsonReader jsonReader)
Reads an instance of Source from the Json |
String |
instanceId()
Get the instance |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Source |
withAddr(String addr)
Set the addr property: The IP or hostname and the port of the registry node that generated the event. |
Source |
withInstanceId(String instanceId)
Set the instance |
Methods inherited from java.lang.Object
Constructor Details
Source
public Source()
Creates an instance of Source class.
Method Details
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:
fromJson
public static Source fromJson(JsonReader jsonReader)
Reads an instance of Source from the JsonReader.
Parameters:
Returns:
Throws:
instanceId
public String instanceId()
Get the instanceId property: The running instance of an application. Changes after each restart.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withInstanceId
public Source withInstanceId(String instanceId)
Set the instanceId property: The running instance of an application. Changes after each restart.
Parameters:
Returns:
Applies to
Azure SDK for Java