Class EmailTemplateParametersContractProperties

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

public final class EmailTemplateParametersContractProperties extends Object implements com.azure.json.JsonSerializable<EmailTemplateParametersContractProperties>
Email Template Parameter contract.
  • Constructor Details

    • EmailTemplateParametersContractProperties

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

    • name

      public String name()
      Get the name property: Template parameter name.
      Returns:
      the name value.
    • withName

      Set the name property: Template parameter name.
      Parameters:
      name - the name value to set.
      Returns:
      the EmailTemplateParametersContractProperties object itself.
    • title

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

      Set the title property: Template parameter title.
      Parameters:
      title - the title value to set.
      Returns:
      the EmailTemplateParametersContractProperties object itself.
    • description

      public String description()
      Get the description property: Template parameter description.
      Returns:
      the description value.
    • withDescription

      public EmailTemplateParametersContractProperties withDescription(String description)
      Set the description property: Template parameter description.
      Parameters:
      description - the description value to set.
      Returns:
      the EmailTemplateParametersContractProperties 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<EmailTemplateParametersContractProperties>
      Throws:
      IOException
    • fromJson

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