ConnectionPolicyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionPolicyProperties

Implements

public final class ConnectionPolicyProperties
implements JsonSerializable<ConnectionPolicyProperties>

Properties of the ConnectionPolicy resource.

Constructor Summary

Constructor Description
ConnectionPolicyProperties()

Creates an instance of ConnectionPolicyProperties class.

Method Summary

Modifier and Type Method and Description
List<String> associatedConnections()

Get the associatedConnections property: List of connection names (e.g.

Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

static ConnectionPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of ConnectionPolicyProperties from the JsonReader.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the ConnectionPolicy resource.

RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionPolicyProperties withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

ConnectionPolicyProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Methods inherited from java.lang.Object

Constructor Details

ConnectionPolicyProperties

public ConnectionPolicyProperties()

Creates an instance of ConnectionPolicyProperties class.

Method Details

associatedConnections

public List<String> associatedConnections()

Get the associatedConnections property: List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.

Returns:

the associatedConnections value.

enableInternetSecurity

public Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

Returns:

the enableInternetSecurity value.

fromJson

public static ConnectionPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of ConnectionPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the ConnectionPolicy resource.

Returns:

the provisioningState value.

routingConfiguration

public RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Returns:

the routingConfiguration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnableInternetSecurity

public ConnectionPolicyProperties withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

Parameters:

enableInternetSecurity - the enableInternetSecurity value to set.

Returns:

the ConnectionPolicyProperties object itself.

withRoutingConfiguration

public ConnectionPolicyProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Parameters:

routingConfiguration - the routingConfiguration value to set.

Returns:

the ConnectionPolicyProperties object itself.

Applies to