Class Ingress
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.Ingress
-
public final class Ingress extends Object
Container App Ingress configuration.
-
-
Constructor Summary
Constructors Constructor Description Ingress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
allowInsecure()
Get the allowInsecure property: Bool indicating if HTTP connections to is allowed.List<CustomDomain>
customDomains()
Get the customDomains property: custom domain bindings for Container Apps' hostnames.Boolean
external()
Get the external property: Bool indicating if app exposes an external http endpoint.String
fqdn()
Get the fqdn property: Hostname.Integer
targetPort()
Get the targetPort property: Target Port in containers for traffic from ingress.List<TrafficWeight>
traffic()
Get the traffic property: Traffic weights for app's revisions.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
withCustomDomains(List<CustomDomain> customDomains)
Set the customDomains property: custom domain bindings for Container Apps' hostnames.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: Traffic weights for app's revisions.Ingress
withTransport(IngressTransportMethod transport)
Set the transport property: Ingress transport protocol.
-
-
-
Method Detail
-
fqdn
public String fqdn()
Get the fqdn property: Hostname.- Returns:
- the fqdn value.
-
external
public Boolean external()
Get the external property: Bool indicating if app exposes an external http endpoint.- Returns:
- the external value.
-
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.
-
targetPort
public Integer targetPort()
Get the targetPort property: Target Port in containers for traffic from ingress.- Returns:
- the targetPort value.
-
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.
-
transport
public IngressTransportMethod transport()
Get the transport property: Ingress transport protocol.- Returns:
- the transport value.
-
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.
-
traffic
public List<TrafficWeight> traffic()
Get the traffic property: Traffic weights for app's revisions.- Returns:
- the traffic value.
-
withTraffic
public Ingress withTraffic(List<TrafficWeight> traffic)
Set the traffic property: Traffic weights for app's revisions.- Parameters:
traffic
- the traffic value to set.- Returns:
- the Ingress object itself.
-
customDomains
public List<CustomDomain> customDomains()
Get the customDomains property: custom domain bindings for Container Apps' hostnames.- Returns:
- the customDomains value.
-
withCustomDomains
public Ingress withCustomDomains(List<CustomDomain> customDomains)
Set the customDomains property: custom domain bindings for Container Apps' hostnames.- Parameters:
customDomains
- the customDomains value to set.- Returns:
- the Ingress object itself.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-