Class CustomHostnameSitesProperties

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

public final class CustomHostnameSitesProperties extends Object implements com.azure.json.JsonSerializable<CustomHostnameSitesProperties>
CustomHostnameSites resource specific properties.
  • Constructor Details

    • CustomHostnameSitesProperties

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

    • customHostname

      public String customHostname()
      Get the customHostname property: The customHostname property.
      Returns:
      the customHostname value.
    • withCustomHostname

      public CustomHostnameSitesProperties withCustomHostname(String customHostname)
      Set the customHostname property: The customHostname property.
      Parameters:
      customHostname - the customHostname value to set.
      Returns:
      the CustomHostnameSitesProperties object itself.
    • region

      public String region()
      Get the region property: The region property.
      Returns:
      the region value.
    • withRegion

      public CustomHostnameSitesProperties withRegion(String region)
      Set the region property: The region property.
      Parameters:
      region - the region value to set.
      Returns:
      the CustomHostnameSitesProperties object itself.
    • siteResourceIds

      public List<IdentifierInner> siteResourceIds()
      Get the siteResourceIds property: The siteResourceIds property.
      Returns:
      the siteResourceIds value.
    • withSiteResourceIds

      public CustomHostnameSitesProperties withSiteResourceIds(List<IdentifierInner> siteResourceIds)
      Set the siteResourceIds property: The siteResourceIds property.
      Parameters:
      siteResourceIds - the siteResourceIds value to set.
      Returns:
      the CustomHostnameSitesProperties 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<CustomHostnameSitesProperties>
      Throws:
      IOException
    • fromJson

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