ConnectedResource Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.ConnectedResource

Implements

public final class ConnectedResource
implements JsonSerializable<ConnectedResource>

Describes properties of a connected resource.

Method Summary

Modifier and Type Method and Description
String connectedResourceId()

Get the connectedResourceId property: The Azure resource id of the connected resource.

static ConnectedResource fromJson(JsonReader jsonReader)

Reads an instance of ConnectedResource from the JsonReader.

String tcpPorts()

Get the tcpPorts property: The allowed tcp ports.

JsonWriter toJson(JsonWriter jsonWriter)
String udpPorts()

Get the udpPorts property: The allowed udp ports.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

connectedResourceId

public String connectedResourceId()

Get the connectedResourceId property: The Azure resource id of the connected resource.

Returns:

the connectedResourceId value.

fromJson

public static ConnectedResource fromJson(JsonReader jsonReader)

Reads an instance of ConnectedResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ConnectedResource.

tcpPorts

public String tcpPorts()

Get the tcpPorts property: The allowed tcp ports.

Returns:

the tcpPorts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

udpPorts

public String udpPorts()

Get the udpPorts property: The allowed udp ports.

Returns:

the udpPorts value.

validate

public void validate()

Validates the instance.

Applies to