StatementActionPatchProperties Class

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

Implements

public final class StatementActionPatchProperties
implements JsonSerializable<StatementActionPatchProperties>

Route policy action properties.

Constructor Summary

Constructor Description
StatementActionPatchProperties()

Creates an instance of StatementActionPatchProperties class.

Method Summary

Modifier and Type Method and Description
RoutePolicyActionType actionType()

Get the actionType property: Action type.

static StatementActionPatchProperties fromJson(JsonReader jsonReader)

Reads an instance of StatementActionPatchProperties from the JsonReader.

ActionIpCommunityPatchProperties ipCommunityProperties()

Get the ipCommunityProperties property: IP Community Properties.

ActionIpExtendedCommunityPatchProperties ipExtendedCommunityProperties()

Get the ipExtendedCommunityProperties property: IP Extended Community Properties.

Long localPreference()

Get the localPreference property: Local Preference of the route policy.

JsonWriter toJson(JsonWriter jsonWriter)
StatementActionPatchProperties withActionType(RoutePolicyActionType actionType)

Set the actionType property: Action type.

StatementActionPatchProperties withIpCommunityProperties(ActionIpCommunityPatchProperties ipCommunityProperties)

Set the ipCommunityProperties property: IP Community Properties.

StatementActionPatchProperties withIpExtendedCommunityProperties(ActionIpExtendedCommunityPatchProperties ipExtendedCommunityProperties)

Set the ipExtendedCommunityProperties property: IP Extended Community Properties.

StatementActionPatchProperties withLocalPreference(Long localPreference)

Set the localPreference property: Local Preference of the route policy.

Methods inherited from java.lang.Object

Constructor Details

StatementActionPatchProperties

public StatementActionPatchProperties()

Creates an instance of StatementActionPatchProperties class.

Method Details

actionType

public RoutePolicyActionType actionType()

Get the actionType property: Action type. Example: Permit | Deny | Continue.

Returns:

the actionType value.

fromJson

public static StatementActionPatchProperties fromJson(JsonReader jsonReader)

Reads an instance of StatementActionPatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ipCommunityProperties

public ActionIpCommunityPatchProperties ipCommunityProperties()

Get the ipCommunityProperties property: IP Community Properties.

Returns:

the ipCommunityProperties value.

ipExtendedCommunityProperties

public ActionIpExtendedCommunityPatchProperties ipExtendedCommunityProperties()

Get the ipExtendedCommunityProperties property: IP Extended Community Properties.

Returns:

the ipExtendedCommunityProperties value.

localPreference

public Long localPreference()

Get the localPreference property: Local Preference of the route policy.

Returns:

the localPreference value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withActionType

public StatementActionPatchProperties withActionType(RoutePolicyActionType actionType)

Set the actionType property: Action type. Example: Permit | Deny | Continue.

Parameters:

actionType - the actionType value to set.

Returns:

the StatementActionPatchProperties object itself.

withIpCommunityProperties

public StatementActionPatchProperties withIpCommunityProperties(ActionIpCommunityPatchProperties ipCommunityProperties)

Set the ipCommunityProperties property: IP Community Properties.

Parameters:

ipCommunityProperties - the ipCommunityProperties value to set.

Returns:

the StatementActionPatchProperties object itself.

withIpExtendedCommunityProperties

public StatementActionPatchProperties withIpExtendedCommunityProperties(ActionIpExtendedCommunityPatchProperties ipExtendedCommunityProperties)

Set the ipExtendedCommunityProperties property: IP Extended Community Properties.

Parameters:

ipExtendedCommunityProperties - the ipExtendedCommunityProperties value to set.

Returns:

the StatementActionPatchProperties object itself.

withLocalPreference

public StatementActionPatchProperties withLocalPreference(Long localPreference)

Set the localPreference property: Local Preference of the route policy.

Parameters:

localPreference - the localPreference value to set.

Returns:

the StatementActionPatchProperties object itself.

Applies to