Class Ingress
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Ingress
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Ingress>
Container App Ingress configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalPortMappings property: Settings to expose additional ports on container app.Get the allowInsecure property: Bool indicating if HTTP connections to is allowed.Get the clientCertificateMode property: Client certificate mode for mTLS authentication.Get the corsPolicy property: CORS policy for container app.Get the customDomains property: custom domain bindings for Container Apps' hostnames.Get the exposedPort property: Exposed Port in containers for TCP traffic from ingress.external()
Get the external property: Bool indicating if app exposes an external http endpoint.fqdn()
Get the fqdn property: Hostname.static Ingress
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Ingress from the JsonReader.Get the ipSecurityRestrictions property: Rules to restrict incoming IP address.Get the stickySessions property: Sticky Sessions for Single Revision Mode.Get the targetPort property: Target Port in containers for traffic from ingress.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) traffic()
Get the traffic property: Traffic weights for app's revisions.Get the transport property: Ingress transport protocol.void
validate()
Validates the instance.withAdditionalPortMappings
(List<IngressPortMapping> additionalPortMappings) Set the additionalPortMappings property: Settings to expose additional ports on container app.withAllowInsecure
(Boolean allowInsecure) Set the allowInsecure property: Bool indicating if HTTP connections to is allowed.withClientCertificateMode
(IngressClientCertificateMode clientCertificateMode) Set the clientCertificateMode property: Client certificate mode for mTLS authentication.withCorsPolicy
(CorsPolicy corsPolicy) Set the corsPolicy property: CORS policy for container app.withCustomDomains
(List<CustomDomain> customDomains) Set the customDomains property: custom domain bindings for Container Apps' hostnames.withExposedPort
(Integer exposedPort) Set the exposedPort property: Exposed Port in containers for TCP traffic from ingress.withExternal
(Boolean external) Set the external property: Bool indicating if app exposes an external http endpoint.withIpSecurityRestrictions
(List<IpSecurityRestrictionRule> ipSecurityRestrictions) Set the ipSecurityRestrictions property: Rules to restrict incoming IP address.withStickySessions
(IngressStickySessions stickySessions) Set the stickySessions property: Sticky Sessions for Single Revision Mode.withTargetPort
(Integer targetPort) Set the targetPort property: Target Port in containers for traffic from ingress.withTraffic
(List<TrafficWeight> traffic) Set the traffic property: Traffic weights for app's revisions.withTransport
(IngressTransportMethod transport) Set the transport property: Ingress transport protocol.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Ingress
public Ingress()Creates an instance of Ingress class.
-
-
Method Details
-
fqdn
Get the fqdn property: Hostname.- Returns:
- the fqdn value.
-
external
Get the external property: Bool indicating if app exposes an external http endpoint.- Returns:
- the external value.
-
withExternal
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
Get the targetPort property: Target Port in containers for traffic from ingress.- Returns:
- the targetPort value.
-
withTargetPort
Set the targetPort property: Target Port in containers for traffic from ingress.- Parameters:
targetPort
- the targetPort value to set.- Returns:
- the Ingress object itself.
-
exposedPort
Get the exposedPort property: Exposed Port in containers for TCP traffic from ingress.- Returns:
- the exposedPort value.
-
withExposedPort
Set the exposedPort property: Exposed Port in containers for TCP traffic from ingress.- Parameters:
exposedPort
- the exposedPort value to set.- Returns:
- the Ingress object itself.
-
transport
Get the transport property: Ingress transport protocol.- Returns:
- the transport value.
-
withTransport
Set the transport property: Ingress transport protocol.- Parameters:
transport
- the transport value to set.- Returns:
- the Ingress object itself.
-
traffic
Get the traffic property: Traffic weights for app's revisions.- Returns:
- the traffic value.
-
withTraffic
Set the traffic property: Traffic weights for app's revisions.- Parameters:
traffic
- the traffic value to set.- Returns:
- the Ingress object itself.
-
customDomains
Get the customDomains property: custom domain bindings for Container Apps' hostnames.- Returns:
- the customDomains value.
-
withCustomDomains
Set the customDomains property: custom domain bindings for Container Apps' hostnames.- Parameters:
customDomains
- the customDomains value to set.- Returns:
- the Ingress object itself.
-
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
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.
-
ipSecurityRestrictions
Get the ipSecurityRestrictions property: Rules to restrict incoming IP address.- Returns:
- the ipSecurityRestrictions value.
-
withIpSecurityRestrictions
Set the ipSecurityRestrictions property: Rules to restrict incoming IP address.- Parameters:
ipSecurityRestrictions
- the ipSecurityRestrictions value to set.- Returns:
- the Ingress object itself.
-
stickySessions
Get the stickySessions property: Sticky Sessions for Single Revision Mode.- Returns:
- the stickySessions value.
-
withStickySessions
Set the stickySessions property: Sticky Sessions for Single Revision Mode.- Parameters:
stickySessions
- the stickySessions value to set.- Returns:
- the Ingress object itself.
-
clientCertificateMode
Get the clientCertificateMode property: Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require a client certificate. Require indicates server requires a client certificate.- Returns:
- the clientCertificateMode value.
-
withClientCertificateMode
Set the clientCertificateMode property: Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require a client certificate. Require indicates server requires a client certificate.- Parameters:
clientCertificateMode
- the clientCertificateMode value to set.- Returns:
- the Ingress object itself.
-
corsPolicy
Get the corsPolicy property: CORS policy for container app.- Returns:
- the corsPolicy value.
-
withCorsPolicy
Set the corsPolicy property: CORS policy for container app.- Parameters:
corsPolicy
- the corsPolicy value to set.- Returns:
- the Ingress object itself.
-
additionalPortMappings
Get the additionalPortMappings property: Settings to expose additional ports on container app.- Returns:
- the additionalPortMappings value.
-
withAdditionalPortMappings
Set the additionalPortMappings property: Settings to expose additional ports on container app.- Parameters:
additionalPortMappings
- the additionalPortMappings value to set.- Returns:
- the Ingress object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Ingress>
- Throws:
IOException
-
fromJson
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.
-