ConnectableResource Class

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

Implements

public final class ConnectableResource
implements JsonSerializable<ConnectableResource>

Describes the allowed inbound and outbound traffic of an Azure resource.

Constructor Summary

Constructor Description
ConnectableResource()

Creates an instance of ConnectableResource class.

Method Summary

Modifier and Type Method and Description
static ConnectableResource fromJson(JsonReader jsonReader)

Reads an instance of ConnectableResource from the JsonReader.

String id()

Get the id property: The Azure resource id.

List<ConnectedResource> inboundConnectedResources()

Get the inboundConnectedResources property: The list of Azure resources that the resource has inbound allowed connection from.

List<ConnectedResource> outboundConnectedResources()

Get the outboundConnectedResources property: The list of Azure resources that the resource has outbound allowed connection to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ConnectableResource

public ConnectableResource()

Creates an instance of ConnectableResource class.

Method Details

fromJson

public static ConnectableResource fromJson(JsonReader jsonReader)

Reads an instance of ConnectableResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectableResource 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 ConnectableResource.

id

public String id()

Get the id property: The Azure resource id.

Returns:

the id value.

inboundConnectedResources

public List<ConnectedResource> inboundConnectedResources()

Get the inboundConnectedResources property: The list of Azure resources that the resource has inbound allowed connection from.

Returns:

the inboundConnectedResources value.

outboundConnectedResources

public List<ConnectedResource> outboundConnectedResources()

Get the outboundConnectedResources property: The list of Azure resources that the resource has outbound allowed connection to.

Returns:

the outboundConnectedResources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to