EndpointDependency Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.EndpointDependency

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 EndpointDependency class.

Method Summary

Modifier and Type Method and Description
String domainName()

Get the domainName property: The domain name of the dependency.

static EndpointDependency fromJson(JsonReader jsonReader)

Reads an instance of EndpointDependency from the JsonReader.

Long port()

Get the port property: The port of this endpoint.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EndpointDependency withDomainName(String domainName)

Set the domainName property: The domain name of the dependency.

EndpointDependency 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:

the domainName value.

fromJson

public static EndpointDependency fromJson(JsonReader jsonReader)

Reads an instance of EndpointDependency from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EndpointDependency if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

port

public Long port()

Get the port property: The port of this endpoint.

Returns:

the port value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDomainName

public EndpointDependency withDomainName(String domainName)

Set the domainName property: The domain name of the dependency.

Parameters:

domainName - the domainName value to set.

Returns:

the EndpointDependency object itself.

withPort

public EndpointDependency withPort(Long port)

Set the port property: The port of this endpoint.

Parameters:

port - the port value to set.

Returns:

the EndpointDependency object itself.

Applies to