Class EmailTemplateUpdateParameters

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

public final class EmailTemplateUpdateParameters extends Object implements com.azure.json.JsonSerializable<EmailTemplateUpdateParameters>
Email Template update Parameters.
  • Constructor Details

    • EmailTemplateUpdateParameters

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

    • subject

      public String subject()
      Get the subject property: Subject of the Template.
      Returns:
      the subject value.
    • withSubject

      public EmailTemplateUpdateParameters withSubject(String subject)
      Set the subject property: Subject of the Template.
      Parameters:
      subject - the subject value to set.
      Returns:
      the EmailTemplateUpdateParameters object itself.
    • title

      public String title()
      Get the title property: Title of the Template.
      Returns:
      the title value.
    • withTitle

      public EmailTemplateUpdateParameters withTitle(String title)
      Set the title property: Title of the Template.
      Parameters:
      title - the title value to set.
      Returns:
      the EmailTemplateUpdateParameters object itself.
    • description

      public String description()
      Get the description property: Description of the Email Template.
      Returns:
      the description value.
    • withDescription

      public EmailTemplateUpdateParameters withDescription(String description)
      Set the description property: Description of the Email Template.
      Parameters:
      description - the description value to set.
      Returns:
      the EmailTemplateUpdateParameters object itself.
    • body

      public String body()
      Get the body property: Email Template Body. This should be a valid XDocument.
      Returns:
      the body value.
    • withBody

      public EmailTemplateUpdateParameters withBody(String body)
      Set the body property: Email Template Body. This should be a valid XDocument.
      Parameters:
      body - the body value to set.
      Returns:
      the EmailTemplateUpdateParameters object itself.
    • parameters

      Get the parameters property: Email Template Parameter values.
      Returns:
      the parameters value.
    • withParameters

      Set the parameters property: Email Template Parameter values.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the EmailTemplateUpdateParameters 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<EmailTemplateUpdateParameters>
      Throws:
      IOException
    • fromJson

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