Delen via


BastionHostPropertiesFormatNetworkAcls Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.BastionHostPropertiesFormatNetworkAcls

Implements

public final class BastionHostPropertiesFormatNetworkAcls
implements JsonSerializable<BastionHostPropertiesFormatNetworkAcls>

The BastionHostPropertiesFormatNetworkAcls model.

Constructor Summary

Constructor Description
BastionHostPropertiesFormatNetworkAcls()

Creates an instance of BastionHostPropertiesFormatNetworkAcls class.

Method Summary

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

Reads an instance of BastionHostPropertiesFormatNetworkAcls from the JsonReader.

List<IpRule> ipRules()

Get the ipRules property: Sets the IP ACL rules for Developer Bastion Host.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BastionHostPropertiesFormatNetworkAcls withIpRules(List<IpRule> ipRules)

Set the ipRules property: Sets the IP ACL rules for Developer Bastion Host.

Methods inherited from java.lang.Object

Constructor Details

BastionHostPropertiesFormatNetworkAcls

public BastionHostPropertiesFormatNetworkAcls()

Creates an instance of BastionHostPropertiesFormatNetworkAcls class.

Method Details

fromJson

public static BastionHostPropertiesFormatNetworkAcls fromJson(JsonReader jsonReader)

Reads an instance of BastionHostPropertiesFormatNetworkAcls from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipRules

public List ipRules()

Get the ipRules property: Sets the IP ACL rules for Developer Bastion Host.

Returns:

the ipRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpRules

public BastionHostPropertiesFormatNetworkAcls withIpRules(List ipRules)

Set the ipRules property: Sets the IP ACL rules for Developer Bastion Host.

Parameters:

ipRules - the ipRules value to set.

Returns:

the BastionHostPropertiesFormatNetworkAcls object itself.

Applies to