Class SessionPoolSecret

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

public final class SessionPoolSecret extends Object implements com.azure.json.JsonSerializable<SessionPoolSecret>
Secret definition.
  • Constructor Details

    • SessionPoolSecret

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

    • name

      public String name()
      Get the name property: Secret Name.
      Returns:
      the name value.
    • withName

      public SessionPoolSecret withName(String name)
      Set the name property: Secret Name.
      Parameters:
      name - the name value to set.
      Returns:
      the SessionPoolSecret object itself.
    • value

      public String value()
      Get the value property: Secret Value.
      Returns:
      the value value.
    • withValue

      public SessionPoolSecret withValue(String value)
      Set the value property: Secret Value.
      Parameters:
      value - the value value to set.
      Returns:
      the SessionPoolSecret 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<SessionPoolSecret>
      Throws:
      IOException
    • fromJson

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