Class CsmPublishingProfileOptions

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

public final class CsmPublishingProfileOptions extends Object implements com.azure.json.JsonSerializable<CsmPublishingProfileOptions>
Publishing options for requested profile.
  • Constructor Details

    • CsmPublishingProfileOptions

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

    • format

      public PublishingProfileFormat format()
      Get the format property: Name of the format. Valid values are: FileZilla3 WebDeploy -- default Ftp.
      Returns:
      the format value.
    • withFormat

      Set the format property: Name of the format. Valid values are: FileZilla3 WebDeploy -- default Ftp.
      Parameters:
      format - the format value to set.
      Returns:
      the CsmPublishingProfileOptions object itself.
    • includeDisasterRecoveryEndpoints

      public Boolean includeDisasterRecoveryEndpoints()
      Get the includeDisasterRecoveryEndpoints property: Include the DisasterRecover endpoint if true.
      Returns:
      the includeDisasterRecoveryEndpoints value.
    • withIncludeDisasterRecoveryEndpoints

      public CsmPublishingProfileOptions withIncludeDisasterRecoveryEndpoints(Boolean includeDisasterRecoveryEndpoints)
      Set the includeDisasterRecoveryEndpoints property: Include the DisasterRecover endpoint if true.
      Parameters:
      includeDisasterRecoveryEndpoints - the includeDisasterRecoveryEndpoints value to set.
      Returns:
      the CsmPublishingProfileOptions 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<CsmPublishingProfileOptions>
      Throws:
      IOException
    • fromJson

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