Class TagDescriptionContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.TagDescriptionBaseProperties
com.azure.resourcemanager.apimanagement.fluent.models.TagDescriptionContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TagDescriptionBaseProperties>
TagDescription contract Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TagDescriptionContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Tag name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TagDescriptionContractProperties from the JsonReader.tagId()Get the tagId property: Identifier of the tag in the form of /tags/{tagId}.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description of the Tag.withDisplayName(String displayName) Set the displayName property: Tag name.withExternalDocsDescription(String externalDocsDescription) Set the externalDocsDescription property: Description of the external resources describing the tag.withExternalDocsUrl(String externalDocsUrl) Set the externalDocsUrl property: Absolute URL of external resources describing the tag.Set the tagId property: Identifier of the tag in the form of /tags/{tagId}.Methods inherited from class com.azure.resourcemanager.apimanagement.fluent.models.TagDescriptionBaseProperties
description, externalDocsDescription, externalDocsUrlMethods 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
-
TagDescriptionContractProperties
public TagDescriptionContractProperties()Creates an instance of TagDescriptionContractProperties class.
-
-
Method Details
-
tagId
Get the tagId property: Identifier of the tag in the form of /tags/{tagId}.- Returns:
- the tagId value.
-
withTagId
Set the tagId property: Identifier of the tag in the form of /tags/{tagId}.- Parameters:
tagId- the tagId value to set.- Returns:
- the TagDescriptionContractProperties object itself.
-
displayName
Get the displayName property: Tag name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Tag name.- Parameters:
displayName- the displayName value to set.- Returns:
- the TagDescriptionContractProperties object itself.
-
withDescription
Set the description property: Description of the Tag.- Overrides:
withDescriptionin classTagDescriptionBaseProperties- Parameters:
description- the description value to set.- Returns:
- the TagDescriptionBaseProperties object itself.
-
withExternalDocsUrl
Set the externalDocsUrl property: Absolute URL of external resources describing the tag.- Overrides:
withExternalDocsUrlin classTagDescriptionBaseProperties- Parameters:
externalDocsUrl- the externalDocsUrl value to set.- Returns:
- the TagDescriptionBaseProperties object itself.
-
withExternalDocsDescription
Set the externalDocsDescription property: Description of the external resources describing the tag.- Overrides:
withExternalDocsDescriptionin classTagDescriptionBaseProperties- Parameters:
externalDocsDescription- the externalDocsDescription value to set.- Returns:
- the TagDescriptionBaseProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classTagDescriptionBaseProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TagDescriptionBaseProperties>- Overrides:
toJsonin classTagDescriptionBaseProperties- Throws:
IOException
-
fromJson
public static TagDescriptionContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TagDescriptionContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TagDescriptionContractProperties 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 TagDescriptionContractProperties.
-