Share via


EndpointAccessProfile Class

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

Implements

public final class EndpointAccessProfile
implements JsonSerializable<EndpointAccessProfile>

Network access profile for Batch endpoint.

Constructor Summary

Constructor Description
EndpointAccessProfile()

Creates an instance of EndpointAccessProfile class.

Method Summary

Modifier and Type Method and Description
EndpointAccessDefaultAction defaultAction()

Get the defaultAction property: Default action for endpoint access.

static EndpointAccessProfile fromJson(JsonReader jsonReader)

Reads an instance of EndpointAccessProfile from the JsonReader.

List<IpRule> ipRules()

Get the ipRules property: Array of IP ranges to filter client IP address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EndpointAccessProfile withDefaultAction(EndpointAccessDefaultAction defaultAction)

Set the defaultAction property: Default action for endpoint access.

EndpointAccessProfile withIpRules(List<IpRule> ipRules)

Set the ipRules property: Array of IP ranges to filter client IP address.

Methods inherited from java.lang.Object

Constructor Details

EndpointAccessProfile

public EndpointAccessProfile()

Creates an instance of EndpointAccessProfile class.

Method Details

defaultAction

public EndpointAccessDefaultAction defaultAction()

Get the defaultAction property: Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.

Returns:

the defaultAction value.

fromJson

public static EndpointAccessProfile fromJson(JsonReader jsonReader)

Reads an instance of EndpointAccessProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipRules

public List<IpRule> ipRules()

Get the ipRules property: Array of IP ranges to filter client IP address.

Returns:

the ipRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDefaultAction

public EndpointAccessProfile withDefaultAction(EndpointAccessDefaultAction defaultAction)

Set the defaultAction property: Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.

Parameters:

defaultAction - the defaultAction value to set.

Returns:

the EndpointAccessProfile object itself.

withIpRules

public EndpointAccessProfile withIpRules(List<IpRule> ipRules)

Set the ipRules property: Array of IP ranges to filter client IP address.

Parameters:

ipRules - the ipRules value to set.

Returns:

the EndpointAccessProfile object itself.

Applies to