Class IngressStickySessions

java.lang.Object
com.azure.resourcemanager.appcontainers.models.IngressStickySessions
All Implemented Interfaces:
com.azure.json.JsonSerializable<IngressStickySessions>

public final class IngressStickySessions extends Object implements com.azure.json.JsonSerializable<IngressStickySessions>
Sticky Sessions for Single Revision Mode.
  • Constructor Details

    • IngressStickySessions

      public IngressStickySessions()
      Creates an instance of IngressStickySessions class.
  • Method Details

    • affinity

      public Affinity affinity()
      Get the affinity property: Sticky Session Affinity.
      Returns:
      the affinity value.
    • withAffinity

      public IngressStickySessions withAffinity(Affinity affinity)
      Set the affinity property: Sticky Session Affinity.
      Parameters:
      affinity - the affinity value to set.
      Returns:
      the IngressStickySessions object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<IngressStickySessions>
      Throws:
      IOException
    • fromJson

      public static IngressStickySessions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of IngressStickySessions from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of IngressStickySessions 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 IngressStickySessions.