다음을 통해 공유


IngressSettings Class

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

Implements

public final class IngressSettings
implements JsonSerializable<IngressSettings>

App ingress settings payload.

Constructor Summary

Constructor Description
IngressSettings()

Creates an instance of IngressSettings class.

Method Summary

Modifier and Type Method and Description
BackendProtocol backendProtocol()

Get the backendProtocol property: How ingress should communicate with this app backend service.

IngressSettingsClientAuth clientAuth()

Get the clientAuth property: Client-Certification Authentication.

static IngressSettings fromJson(JsonReader jsonReader)

Reads an instance of IngressSettings from the JsonReader.

Integer readTimeoutInSeconds()

Get the readTimeoutInSeconds property: Ingress read time out in seconds.

Integer sendTimeoutInSeconds()

Get the sendTimeoutInSeconds property: Ingress send time out in seconds.

SessionAffinity sessionAffinity()

Get the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.

Integer sessionCookieMaxAge()

Get the sessionCookieMaxAge property: Time in seconds until the cookie expires.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IngressSettings withBackendProtocol(BackendProtocol backendProtocol)

Set the backendProtocol property: How ingress should communicate with this app backend service.

IngressSettings withClientAuth(IngressSettingsClientAuth clientAuth)

Set the clientAuth property: Client-Certification Authentication.

IngressSettings withReadTimeoutInSeconds(Integer readTimeoutInSeconds)

Set the readTimeoutInSeconds property: Ingress read time out in seconds.

IngressSettings withSendTimeoutInSeconds(Integer sendTimeoutInSeconds)

Set the sendTimeoutInSeconds property: Ingress send time out in seconds.

IngressSettings withSessionAffinity(SessionAffinity sessionAffinity)

Set the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.

IngressSettings withSessionCookieMaxAge(Integer sessionCookieMaxAge)

Set the sessionCookieMaxAge property: Time in seconds until the cookie expires.

Methods inherited from java.lang.Object

Constructor Details

IngressSettings

public IngressSettings()

Creates an instance of IngressSettings class.

Method Details

backendProtocol

public BackendProtocol backendProtocol()

Get the backendProtocol property: How ingress should communicate with this app backend service.

Returns:

the backendProtocol value.

clientAuth

public IngressSettingsClientAuth clientAuth()

Get the clientAuth property: Client-Certification Authentication.

Returns:

the clientAuth value.

fromJson

public static IngressSettings fromJson(JsonReader jsonReader)

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.

readTimeoutInSeconds

public Integer readTimeoutInSeconds()

Get the readTimeoutInSeconds property: Ingress read time out in seconds.

Returns:

the readTimeoutInSeconds value.

sendTimeoutInSeconds

public Integer sendTimeoutInSeconds()

Get the sendTimeoutInSeconds property: Ingress send time out in seconds.

Returns:

the sendTimeoutInSeconds value.

sessionAffinity

public SessionAffinity sessionAffinity()

Get the sessionAffinity property: Type of the affinity, set this to Cookie to enable session affinity.

Returns:

the sessionAffinity value.

sessionCookieMaxAge

public Integer sessionCookieMaxAge()

Get the sessionCookieMaxAge property: Time in seconds until the cookie expires.

Returns:

the sessionCookieMaxAge value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendProtocol

public IngressSettings withBackendProtocol(BackendProtocol backendProtocol)

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.

withClientAuth

public IngressSettings withClientAuth(IngressSettingsClientAuth clientAuth)

Set the clientAuth property: Client-Certification Authentication.

Parameters:

clientAuth - the clientAuth value to set.

Returns:

the IngressSettings object itself.

withReadTimeoutInSeconds

public IngressSettings withReadTimeoutInSeconds(Integer readTimeoutInSeconds)

Set the readTimeoutInSeconds property: Ingress read time out in seconds.

Parameters:

readTimeoutInSeconds - the readTimeoutInSeconds value to set.

Returns:

the IngressSettings object itself.

withSendTimeoutInSeconds

public IngressSettings withSendTimeoutInSeconds(Integer sendTimeoutInSeconds)

Set the sendTimeoutInSeconds property: Ingress send time out in seconds.

Parameters:

sendTimeoutInSeconds - the sendTimeoutInSeconds value to set.

Returns:

the IngressSettings object itself.

withSessionAffinity

public IngressSettings withSessionAffinity(SessionAffinity sessionAffinity)

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.

withSessionCookieMaxAge

public IngressSettings withSessionCookieMaxAge(Integer sessionCookieMaxAge)

Set the sessionCookieMaxAge property: Time in seconds until the cookie expires.

Parameters:

sessionCookieMaxAge - the sessionCookieMaxAge value to set.

Returns:

the IngressSettings object itself.

Applies to