Class P2SConnectionConfiguration
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.P2SConnectionConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class P2SConnectionConfiguration
extends com.azure.core.management.SubResource
P2SConnectionConfiguration Resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of P2SConnectionConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionList<com.azure.core.management.SubResource> Get the configurationPolicyGroupAssociations property: List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to.Get the enableInternetSecurity property: Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static P2SConnectionConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of P2SConnectionConfiguration from the JsonReader.name()Get the name property: The name of the resource that is unique within a resource group.Get the previousConfigurationPolicyGroupAssociations property: List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached to.Get the provisioningState property: The provisioning state of the P2SConnectionConfiguration resource.Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space for P2S VpnClient.withEnableInternetSecurity(Boolean enableInternetSecurity) Set the enableInternetSecurity property: Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not.Set the name property: The name of the resource that is unique within a resource group.withRoutingConfiguration(RoutingConfiguration routingConfiguration) Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.withVpnClientAddressPool(AddressSpace vpnClientAddressPool) Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space for P2S VpnClient.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
P2SConnectionConfiguration
public P2SConnectionConfiguration()Creates an instance of P2SConnectionConfiguration class.
-
-
Method Details
-
name
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Parameters:
name- the name value to set.- Returns:
- the P2SConnectionConfiguration object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
vpnClientAddressPool
Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space for P2S VpnClient.- Returns:
- the vpnClientAddressPool value.
-
withVpnClientAddressPool
Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space for P2S VpnClient.- Parameters:
vpnClientAddressPool- the vpnClientAddressPool value to set.- Returns:
- the P2SConnectionConfiguration object itself.
-
routingConfiguration
Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.- Returns:
- the routingConfiguration value.
-
withRoutingConfiguration
public P2SConnectionConfiguration 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 P2SConnectionConfiguration object itself.
-
enableInternetSecurity
Get the enableInternetSecurity property: Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not.- Returns:
- the enableInternetSecurity value.
-
withEnableInternetSecurity
Set the enableInternetSecurity property: Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not.- Parameters:
enableInternetSecurity- the enableInternetSecurity value to set.- Returns:
- the P2SConnectionConfiguration object itself.
-
configurationPolicyGroupAssociations
Get the configurationPolicyGroupAssociations property: List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to.- Returns:
- the configurationPolicyGroupAssociations value.
-
previousConfigurationPolicyGroupAssociations
Get the previousConfigurationPolicyGroupAssociations property: List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached to.- Returns:
- the previousConfigurationPolicyGroupAssociations value.
-
provisioningState
Get the provisioningState property: The provisioning state of the P2SConnectionConfiguration resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static P2SConnectionConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of P2SConnectionConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of P2SConnectionConfiguration 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 P2SConnectionConfiguration.
-