İngilizce dilinde oku

Aracılığıyla paylaş


AccessRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.hybridcompute.fluent.models.AccessRuleProperties

Implements

public final class AccessRuleProperties
implements JsonSerializable<AccessRuleProperties>

Properties of an access rule.

Constructor Summary

Constructor Description
AccessRuleProperties()

Creates an instance of AccessRuleProperties class.

Method Summary

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

Get the addressPrefixes property: Address prefixes that are allowed access.

AccessRuleDirection direction()

Get the direction property: Direction of the access rule.

static AccessRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of AccessRuleProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AccessRuleProperties

public AccessRuleProperties()

Creates an instance of AccessRuleProperties class.

Method Details

addressPrefixes

public List addressPrefixes()

Get the addressPrefixes property: Address prefixes that are allowed access.

Returns:

the addressPrefixes value.

direction

public AccessRuleDirection direction()

Get the direction property: Direction of the access rule.

Returns:

the direction value.

fromJson

public static AccessRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of AccessRuleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to

Azure SDK for Java

Preview