RequiredTraffic Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.RequiredTraffic

Implements

public final class RequiredTraffic
implements JsonSerializable<RequiredTraffic>

Required inbound or outbound traffic for Azure Spring Apps resource.

Constructor Summary

Constructor Description
RequiredTraffic()

Creates an instance of RequiredTraffic class.

Method Summary

Modifier and Type Method and Description
TrafficDirection direction()

Get the direction property: The direction of required traffic.

List<String> fqdns()

Get the fqdns property: The FQDN list of required traffic.

static RequiredTraffic fromJson(JsonReader jsonReader)

Reads an instance of RequiredTraffic from the JsonReader.

List<String> ips()

Get the ips property: The ip list of required traffic.

Integer port()

Get the port property: The port of required traffic.

String protocol()

Get the protocol property: The protocol of required traffic.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

RequiredTraffic

public RequiredTraffic()

Creates an instance of RequiredTraffic class.

Method Details

direction

public TrafficDirection direction()

Get the direction property: The direction of required traffic.

Returns:

the direction value.

fqdns

public List fqdns()

Get the fqdns property: The FQDN list of required traffic.

Returns:

the fqdns value.

fromJson

public static RequiredTraffic fromJson(JsonReader jsonReader)

Reads an instance of RequiredTraffic from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ips

public List ips()

Get the ips property: The ip list of required traffic.

Returns:

the ips value.

port

public Integer port()

Get the port property: The port of required traffic.

Returns:

the port value.

protocol

public String protocol()

Get the protocol property: The protocol of required traffic.

Returns:

the protocol value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to