// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.apimanagement.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** TagDescription contract Properties. */
@Fluent
public final class TagDescriptionContractProperties extends TagDescriptionBaseProperties {
    /*
     * Identifier of the tag in the form of /tags/{tagId}
     */
    @JsonProperty(value = "tagId")
    private String tagId;

    /*
     * Tag name.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /**
     * Get the tagId property: Identifier of the tag in the form of /tags/{tagId}.
     *
     * @return the tagId value.
     */
    public String tagId() {
        return this.tagId;
    }

    /**
     * Set the tagId property: Identifier of the tag in the form of /tags/{tagId}.
     *
     * @param tagId the tagId value to set.
     * @return the TagDescriptionContractProperties object itself.
     */
    public TagDescriptionContractProperties withTagId(String tagId) {
        this.tagId = tagId;
        return this;
    }

    /**
     * Get the displayName property: Tag name.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: Tag name.
     *
     * @param displayName the displayName value to set.
     * @return the TagDescriptionContractProperties object itself.
     */
    public TagDescriptionContractProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TagDescriptionContractProperties withDescription(String description) {
        super.withDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TagDescriptionContractProperties withExternalDocsUrl(String externalDocsUrl) {
        super.withExternalDocsUrl(externalDocsUrl);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TagDescriptionContractProperties withExternalDocsDescription(String externalDocsDescription) {
        super.withExternalDocsDescription(externalDocsDescription);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
