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 Summary
ConstructorsConstructorDescriptionCreates an instance of EmailTemplateParametersContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Template parameter description.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EmailTemplateParametersContractProperties from the JsonReader.name()Get the name property: Template parameter name.title()Get the title property: Template parameter title.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Template parameter description.Set the name property: Template parameter name.Set the title property: Template parameter title.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EmailTemplateParametersContractProperties
public EmailTemplateParametersContractProperties()Creates an instance of EmailTemplateParametersContractProperties class.
-
-
Method Details
-
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
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
Get the description property: Template parameter description.- Returns:
- the description value.
-
withDescription
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
- Specified by:
toJsonin interfacecom.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.
-