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

package com.azure.resourcemanager.network.models;

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

/** Qos Traffic Profiler Port range properties. */
@Fluent
public final class QosPortRange {
    /*
     * Qos Port Range start.
     */
    @JsonProperty(value = "start")
    private Integer start;

    /*
     * Qos Port Range end.
     */
    @JsonProperty(value = "end")
    private Integer end;

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

    /**
     * Get the start property: Qos Port Range start.
     *
     * @return the start value.
     */
    public Integer start() {
        return this.start;
    }

    /**
     * Set the start property: Qos Port Range start.
     *
     * @param start the start value to set.
     * @return the QosPortRange object itself.
     */
    public QosPortRange withStart(Integer start) {
        this.start = start;
        return this;
    }

    /**
     * Get the end property: Qos Port Range end.
     *
     * @return the end value.
     */
    public Integer end() {
        return this.end;
    }

    /**
     * Set the end property: Qos Port Range end.
     *
     * @param end the end value to set.
     * @return the QosPortRange object itself.
     */
    public QosPortRange withEnd(Integer end) {
        this.end = end;
        return this;
    }

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