AccessRule Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.AccessRule

Implements

public final class AccessRule
implements JsonSerializable<AccessRule>

Access rule in a network security perimeter configuration profile.

Method Summary

Modifier and Type Method and Description
static AccessRule fromJson(JsonReader jsonReader)

Reads an instance of AccessRule from the JsonReader.

String name()

Get the name property: Name of the access rule.

AccessRuleProperties properties()

Get the properties property: The properties property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static AccessRule fromJson(JsonReader jsonReader)

Reads an instance of AccessRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the access rule.

Returns:

the name value.

properties

public AccessRuleProperties properties()

Get the properties property: The properties property.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to