Ingress Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Ingress

Implements

public final class Ingress
implements JsonSerializable<Ingress>

Container App Ingress configuration.

Constructor Summary

Constructor Description
Ingress()

Creates an instance of Ingress class.

Method Summary

Modifier and Type Method and Description
Boolean allowInsecure()

Get the allowInsecure property: Bool indicating if HTTP connections to is allowed.

Boolean external()

Get the external property: Bool indicating if app exposes an external http endpoint.

String fqdn()

Get the fqdn property: Hostname.

static Ingress fromJson(JsonReader jsonReader)

Reads an instance of Ingress from the JsonReader.

Integer targetPort()

Get the targetPort property: Target Port in containers for traffic from ingress.

JsonWriter toJson(JsonWriter jsonWriter)
List<TrafficWeight> traffic()

Get the traffic property: The traffic property.

IngressTransportMethod transport()

Get the transport property: Ingress transport protocol.

void validate()

Validates the instance.

Ingress withAllowInsecure(Boolean allowInsecure)

Set the allowInsecure property: Bool indicating if HTTP connections to is allowed.

Ingress withExternal(Boolean external)

Set the external property: Bool indicating if app exposes an external http endpoint.

Ingress withTargetPort(Integer targetPort)

Set the targetPort property: Target Port in containers for traffic from ingress.

Ingress withTraffic(List<TrafficWeight> traffic)

Set the traffic property: The traffic property.

Ingress withTransport(IngressTransportMethod transport)

Set the transport property: Ingress transport protocol.

Methods inherited from java.lang.Object

Constructor Details

Ingress

public Ingress()

Creates an instance of Ingress class.

Method Details

allowInsecure

public Boolean allowInsecure()

Get the allowInsecure property: Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections.

Returns:

the allowInsecure value.

external

public Boolean external()

Get the external property: Bool indicating if app exposes an external http endpoint.

Returns:

the external value.

fqdn

public String fqdn()

Get the fqdn property: Hostname.

Returns:

the fqdn value.

fromJson

public static Ingress fromJson(JsonReader jsonReader)

Reads an instance of Ingress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

targetPort

public Integer targetPort()

Get the targetPort property: Target Port in containers for traffic from ingress.

Returns:

the targetPort value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

traffic

public List traffic()

Get the traffic property: The traffic property.

Returns:

the traffic value.

transport

public IngressTransportMethod transport()

Get the transport property: Ingress transport protocol.

Returns:

the transport value.

validate

public void validate()

Validates the instance.

withAllowInsecure

public Ingress withAllowInsecure(Boolean allowInsecure)

Set the allowInsecure property: Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections.

Parameters:

allowInsecure - the allowInsecure value to set.

Returns:

the Ingress object itself.

withExternal

public Ingress withExternal(Boolean external)

Set the external property: Bool indicating if app exposes an external http endpoint.

Parameters:

external - the external value to set.

Returns:

the Ingress object itself.

withTargetPort

public Ingress withTargetPort(Integer targetPort)

Set the targetPort property: Target Port in containers for traffic from ingress.

Parameters:

targetPort - the targetPort value to set.

Returns:

the Ingress object itself.

withTraffic

public Ingress withTraffic(List traffic)

Set the traffic property: The traffic property.

Parameters:

traffic - the traffic value to set.

Returns:

the Ingress object itself.

withTransport

public Ingress withTransport(IngressTransportMethod transport)

Set the transport property: Ingress transport protocol.

Parameters:

transport - the transport value to set.

Returns:

the Ingress object itself.

Applies to