ExternalNetworkPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.managednetworkfabric.models.ExternalNetworkPatch

Implements

public final class ExternalNetworkPatch
implements JsonSerializable<ExternalNetworkPatch>

The ExternalNetwork patch resource definition.

Constructor Summary

Constructor Description
ExternalNetworkPatch()

Creates an instance of ExternalNetworkPatch class.

Method Summary

Modifier and Type Method and Description
String annotation()

Get the annotation property: Switch configuration description.

ExportRoutePolicyPatch exportRoutePolicy()

Get the exportRoutePolicy property: Export Route Policy either IPv4 or IPv6.

static ExternalNetworkPatch fromJson(JsonReader jsonReader)

Reads an instance of ExternalNetworkPatch from the JsonReader.

ImportRoutePolicyPatch importRoutePolicy()

Get the importRoutePolicy property: Import Route Policy either IPv4 or IPv6.

String networkToNetworkInterconnectId()

Get the networkToNetworkInterconnectId property: ARM Resource ID of the networkToNetworkInterconnectId of the ExternalNetwork resource.

ExternalNetworkPatchPropertiesOptionAProperties optionAProperties()

Get the optionAProperties property: option A properties object.

L3OptionBPatchProperties optionBProperties()

Get the optionBProperties property: option B properties object.

PeeringOption peeringOption()

Get the peeringOption property: Peering option list.

ExternalNetworkStaticRoutePatchConfiguration staticRouteConfiguration()

Get the staticRouteConfiguration property: Static Route Configuration.

JsonWriter toJson(JsonWriter jsonWriter)
ExternalNetworkPatch withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

ExternalNetworkPatch withExportRoutePolicy(ExportRoutePolicyPatch exportRoutePolicy)

Set the exportRoutePolicy property: Export Route Policy either IPv4 or IPv6.

ExternalNetworkPatch withImportRoutePolicy(ImportRoutePolicyPatch importRoutePolicy)

Set the importRoutePolicy property: Import Route Policy either IPv4 or IPv6.

ExternalNetworkPatch withNetworkToNetworkInterconnectId(String networkToNetworkInterconnectId)

Set the networkToNetworkInterconnectId property: ARM Resource ID of the networkToNetworkInterconnectId of the ExternalNetwork resource.

ExternalNetworkPatch withOptionAProperties(ExternalNetworkPatchPropertiesOptionAProperties optionAProperties)

Set the optionAProperties property: option A properties object.

ExternalNetworkPatch withOptionBProperties(L3OptionBPatchProperties optionBProperties)

Set the optionBProperties property: option B properties object.

ExternalNetworkPatch withPeeringOption(PeeringOption peeringOption)

Set the peeringOption property: Peering option list.

ExternalNetworkPatch withStaticRouteConfiguration(ExternalNetworkStaticRoutePatchConfiguration staticRouteConfiguration)

Set the staticRouteConfiguration property: Static Route Configuration.

Methods inherited from java.lang.Object

Constructor Details

ExternalNetworkPatch

public ExternalNetworkPatch()

Creates an instance of ExternalNetworkPatch class.

Method Details

annotation

public String annotation()

Get the annotation property: Switch configuration description.

Returns:

the annotation value.

exportRoutePolicy

public ExportRoutePolicyPatch exportRoutePolicy()

Get the exportRoutePolicy property: Export Route Policy either IPv4 or IPv6.

Returns:

the exportRoutePolicy value.

fromJson

public static ExternalNetworkPatch fromJson(JsonReader jsonReader)

Reads an instance of ExternalNetworkPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

importRoutePolicy

public ImportRoutePolicyPatch importRoutePolicy()

Get the importRoutePolicy property: Import Route Policy either IPv4 or IPv6.

Returns:

the importRoutePolicy value.

networkToNetworkInterconnectId

public String networkToNetworkInterconnectId()

Get the networkToNetworkInterconnectId property: ARM Resource ID of the networkToNetworkInterconnectId of the ExternalNetwork resource.

Returns:

the networkToNetworkInterconnectId value.

optionAProperties

public ExternalNetworkPatchPropertiesOptionAProperties optionAProperties()

Get the optionAProperties property: option A properties object.

Returns:

the optionAProperties value.

optionBProperties

public L3OptionBPatchProperties optionBProperties()

Get the optionBProperties property: option B properties object.

Returns:

the optionBProperties value.

peeringOption

public PeeringOption peeringOption()

Get the peeringOption property: Peering option list.

Returns:

the peeringOption value.

staticRouteConfiguration

public ExternalNetworkStaticRoutePatchConfiguration staticRouteConfiguration()

Get the staticRouteConfiguration property: Static Route Configuration.

Returns:

the staticRouteConfiguration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAnnotation

public ExternalNetworkPatch withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

Parameters:

annotation - the annotation value to set.

Returns:

the ExternalNetworkPatch object itself.

withExportRoutePolicy

public ExternalNetworkPatch withExportRoutePolicy(ExportRoutePolicyPatch exportRoutePolicy)

Set the exportRoutePolicy property: Export Route Policy either IPv4 or IPv6.

Parameters:

exportRoutePolicy - the exportRoutePolicy value to set.

Returns:

the ExternalNetworkPatch object itself.

withImportRoutePolicy

public ExternalNetworkPatch withImportRoutePolicy(ImportRoutePolicyPatch importRoutePolicy)

Set the importRoutePolicy property: Import Route Policy either IPv4 or IPv6.

Parameters:

importRoutePolicy - the importRoutePolicy value to set.

Returns:

the ExternalNetworkPatch object itself.

withNetworkToNetworkInterconnectId

public ExternalNetworkPatch withNetworkToNetworkInterconnectId(String networkToNetworkInterconnectId)

Set the networkToNetworkInterconnectId property: ARM Resource ID of the networkToNetworkInterconnectId of the ExternalNetwork resource.

Parameters:

networkToNetworkInterconnectId - the networkToNetworkInterconnectId value to set.

Returns:

the ExternalNetworkPatch object itself.

withOptionAProperties

public ExternalNetworkPatch withOptionAProperties(ExternalNetworkPatchPropertiesOptionAProperties optionAProperties)

Set the optionAProperties property: option A properties object.

Parameters:

optionAProperties - the optionAProperties value to set.

Returns:

the ExternalNetworkPatch object itself.

withOptionBProperties

public ExternalNetworkPatch withOptionBProperties(L3OptionBPatchProperties optionBProperties)

Set the optionBProperties property: option B properties object.

Parameters:

optionBProperties - the optionBProperties value to set.

Returns:

the ExternalNetworkPatch object itself.

withPeeringOption

public ExternalNetworkPatch withPeeringOption(PeeringOption peeringOption)

Set the peeringOption property: Peering option list.

Parameters:

peeringOption - the peeringOption value to set.

Returns:

the ExternalNetworkPatch object itself.

withStaticRouteConfiguration

public ExternalNetworkPatch withStaticRouteConfiguration(ExternalNetworkStaticRoutePatchConfiguration staticRouteConfiguration)

Set the staticRouteConfiguration property: Static Route Configuration.

Parameters:

staticRouteConfiguration - the staticRouteConfiguration value to set.

Returns:

the ExternalNetworkPatch object itself.

Applies to