次の方法で共有


InboundIpRule Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.InboundIpRule

Implements

public final class InboundIpRule
implements JsonSerializable<InboundIpRule>

The InboundIpRule model.

Constructor Summary

Constructor Description
InboundIpRule()

Creates an instance of InboundIpRule class.

Method Summary

Modifier and Type Method and Description
IpActionType action()

Get the action property: Action to perform based on the match or no match of the IpMask.

static InboundIpRule fromJson(JsonReader jsonReader)

Reads an instance of InboundIpRule from the JsonReader.

String ipMask()

Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InboundIpRule withAction(IpActionType action)

Set the action property: Action to perform based on the match or no match of the IpMask.

InboundIpRule withIpMask(String ipMask)

Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.

Methods inherited from java.lang.Object

Constructor Details

InboundIpRule

public InboundIpRule()

Creates an instance of InboundIpRule class.

Method Details

action

public IpActionType action()

Get the action property: Action to perform based on the match or no match of the IpMask.

Returns:

the action value.

fromJson

public static InboundIpRule fromJson(JsonReader jsonReader)

Reads an instance of InboundIpRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipMask

public String ipMask()

Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.

Returns:

the ipMask value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAction

public InboundIpRule withAction(IpActionType action)

Set the action property: Action to perform based on the match or no match of the IpMask.

Parameters:

action - the action value to set.

Returns:

the InboundIpRule object itself.

withIpMask

public InboundIpRule withIpMask(String ipMask)

Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.

Parameters:

ipMask - the ipMask value to set.

Returns:

the InboundIpRule object itself.

Applies to