Class SiteSealRequest

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

public final class SiteSealRequest extends Object implements com.azure.json.JsonSerializable<SiteSealRequest>
Site seal request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of SiteSealRequest class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SiteSealRequest from the JsonReader.
    Get the lightTheme property: If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme.
    Get the locale property: Locale of site seal.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withLightTheme(Boolean lightTheme)
    Set the lightTheme property: If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme.
    Set the locale property: Locale of site seal.

    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

    • SiteSealRequest

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

    • lightTheme

      public Boolean lightTheme()
      Get the lightTheme property: If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme.
      Returns:
      the lightTheme value.
    • withLightTheme

      public SiteSealRequest withLightTheme(Boolean lightTheme)
      Set the lightTheme property: If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme.
      Parameters:
      lightTheme - the lightTheme value to set.
      Returns:
      the SiteSealRequest object itself.
    • locale

      public String locale()
      Get the locale property: Locale of site seal.
      Returns:
      the locale value.
    • withLocale

      public SiteSealRequest withLocale(String locale)
      Set the locale property: Locale of site seal.
      Parameters:
      locale - the locale value to set.
      Returns:
      the SiteSealRequest 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<SiteSealRequest>
      Throws:
      IOException
    • fromJson

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