// 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.models;

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

/** IP Extended Community delete operation properties. */
@Fluent
public class IpExtendedCommunityDeleteOperationProperties {
    /*
     * IP Extended Community Id list properties.
     */
    @JsonProperty(value = "delete")
    private IpExtendedCommunityIdList delete;

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

    /**
     * Get the delete property: IP Extended Community Id list properties.
     *
     * @return the delete value.
     */
    public IpExtendedCommunityIdList delete() {
        return this.delete;
    }

    /**
     * Set the delete property: IP Extended Community Id list properties.
     *
     * @param delete the delete value to set.
     * @return the IpExtendedCommunityDeleteOperationProperties object itself.
     */
    public IpExtendedCommunityDeleteOperationProperties withDelete(IpExtendedCommunityIdList delete) {
        this.delete = delete;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (delete() != null) {
            delete().validate();
        }
    }
}
