EndpointDependency Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. EndpointDependency
- com.
Implements
public final class EndpointDependency
implements JsonSerializable<EndpointDependency>
EndpointDependency represents the definition of an endpoint, including the domain and details.
Constructor Summary
| Constructor | Description |
|---|---|
| EndpointDependency() |
Creates an instance of Endpoint |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
domainName()
Get the domain |
|
static
Endpoint |
fromJson(JsonReader jsonReader)
Reads an instance of Endpoint |
| Long |
port()
Get the port property: The port of this endpoint. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Endpoint |
withDomainName(String domainName)
Set the domain |
|
Endpoint |
withPort(Long port)
Set the port property: The port of this endpoint. |
Methods inherited from java.lang.Object
Constructor Details
EndpointDependency
public EndpointDependency()
Creates an instance of EndpointDependency class.
Method Details
domainName
public String domainName()
Get the domainName property: The domain name of the dependency.
Returns:
fromJson
public static EndpointDependency fromJson(JsonReader jsonReader)
Reads an instance of EndpointDependency from the JsonReader.
Parameters:
Returns:
Throws:
port
public Long port()
Get the port property: The port of this endpoint.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDomainName
public EndpointDependency withDomainName(String domainName)
Set the domainName property: The domain name of the dependency.
Parameters:
Returns:
withPort
public EndpointDependency withPort(Long port)
Set the port property: The port of this endpoint.
Parameters:
Returns: