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

/** Aggregate Route properties. */
@Fluent
public final class AggregateRoute {
    /*
     * Prefix of the aggregate Route.
     */
    @JsonProperty(value = "prefix")
    private String prefix;

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

    /**
     * Get the prefix property: Prefix of the aggregate Route.
     *
     * @return the prefix value.
     */
    public String prefix() {
        return this.prefix;
    }

    /**
     * Set the prefix property: Prefix of the aggregate Route.
     *
     * @param prefix the prefix value to set.
     * @return the AggregateRoute object itself.
     */
    public AggregateRoute withPrefix(String prefix) {
        this.prefix = prefix;
        return this;
    }

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