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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.managednetworkfabric.models.IpExtendedCommunityPatchableProperties;
import com.azure.resourcemanager.managednetworkfabric.models.IpExtendedCommunityRule;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** IP Extended Community patchable properties. */
@Fluent
public final class IpExtendedCommunityPatchProperties extends IpExtendedCommunityPatchableProperties {
    /*
     * Switch configuration description.
     */
    @JsonProperty(value = "annotation")
    private String annotation;

    /** Creates an instance of IpExtendedCommunityPatchProperties class. */
    public IpExtendedCommunityPatchProperties() {
    }

    /**
     * Get the annotation property: Switch configuration description.
     *
     * @return the annotation value.
     */
    public String annotation() {
        return this.annotation;
    }

    /**
     * Set the annotation property: Switch configuration description.
     *
     * @param annotation the annotation value to set.
     * @return the IpExtendedCommunityPatchProperties object itself.
     */
    public IpExtendedCommunityPatchProperties withAnnotation(String annotation) {
        this.annotation = annotation;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public IpExtendedCommunityPatchProperties withIpExtendedCommunityRules(
        List<IpExtendedCommunityRule> ipExtendedCommunityRules) {
        super.withIpExtendedCommunityRules(ipExtendedCommunityRules);
        return this;
    }

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