Class IngressSettings
java.lang.Object
com.azure.resourcemanager.appplatform.models.IngressSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IngressSettings>
public final class IngressSettings
extends Object
implements com.azure.json.JsonSerializable<IngressSettings>
App ingress settings payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the backendProtocol property: How ingress should communicate with this app backend service.Get the clientAuth property: Client-Certification Authentication.static IngressSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IngressSettings from the JsonReader.Get the readTimeoutInSeconds property: Ingress read time out in seconds.Get the sendTimeoutInSeconds property: Ingress send time out in seconds.Get the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.Get the sessionCookieMaxAge property: Time in seconds until the cookie expires.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackendProtocol(BackendProtocol backendProtocol) Set the backendProtocol property: How ingress should communicate with this app backend service.withClientAuth(IngressSettingsClientAuth clientAuth) Set the clientAuth property: Client-Certification Authentication.withReadTimeoutInSeconds(Integer readTimeoutInSeconds) Set the readTimeoutInSeconds property: Ingress read time out in seconds.withSendTimeoutInSeconds(Integer sendTimeoutInSeconds) Set the sendTimeoutInSeconds property: Ingress send time out in seconds.withSessionAffinity(SessionAffinity sessionAffinity) Set the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.withSessionCookieMaxAge(Integer sessionCookieMaxAge) Set the sessionCookieMaxAge property: Time in seconds until the cookie expires.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IngressSettings
public IngressSettings()Creates an instance of IngressSettings class.
-
-
Method Details
-
readTimeoutInSeconds
Get the readTimeoutInSeconds property: Ingress read time out in seconds.- Returns:
- the readTimeoutInSeconds value.
-
withReadTimeoutInSeconds
Set the readTimeoutInSeconds property: Ingress read time out in seconds.- Parameters:
readTimeoutInSeconds- the readTimeoutInSeconds value to set.- Returns:
- the IngressSettings object itself.
-
sendTimeoutInSeconds
Get the sendTimeoutInSeconds property: Ingress send time out in seconds.- Returns:
- the sendTimeoutInSeconds value.
-
withSendTimeoutInSeconds
Set the sendTimeoutInSeconds property: Ingress send time out in seconds.- Parameters:
sendTimeoutInSeconds- the sendTimeoutInSeconds value to set.- Returns:
- the IngressSettings object itself.
-
sessionAffinity
Get the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.- Returns:
- the sessionAffinity value.
-
withSessionAffinity
Set the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.- Parameters:
sessionAffinity- the sessionAffinity value to set.- Returns:
- the IngressSettings object itself.
-
sessionCookieMaxAge
Get the sessionCookieMaxAge property: Time in seconds until the cookie expires.- Returns:
- the sessionCookieMaxAge value.
-
withSessionCookieMaxAge
Set the sessionCookieMaxAge property: Time in seconds until the cookie expires.- Parameters:
sessionCookieMaxAge- the sessionCookieMaxAge value to set.- Returns:
- the IngressSettings object itself.
-
backendProtocol
Get the backendProtocol property: How ingress should communicate with this app backend service.- Returns:
- the backendProtocol value.
-
withBackendProtocol
Set the backendProtocol property: How ingress should communicate with this app backend service.- Parameters:
backendProtocol- the backendProtocol value to set.- Returns:
- the IngressSettings object itself.
-
clientAuth
Get the clientAuth property: Client-Certification Authentication.- Returns:
- the clientAuth value.
-
withClientAuth
Set the clientAuth property: Client-Certification Authentication.- Parameters:
clientAuth- the clientAuth value to set.- Returns:
- the IngressSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IngressSettings>- Throws:
IOException
-
fromJson
Reads an instance of IngressSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IngressSettings 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 IngressSettings.
-