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

/** Office365 breakout categories. */
@Fluent
public final class O365BreakOutCategoryPolicies {
    /*
     * Flag to control allow category.
     */
    @JsonProperty(value = "allow")
    private Boolean allow;

    /*
     * Flag to control optimize category.
     */
    @JsonProperty(value = "optimize")
    private Boolean optimize;

    /*
     * Flag to control default category.
     */
    @JsonProperty(value = "default")
    private Boolean defaultProperty;

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

    /**
     * Get the allow property: Flag to control allow category.
     *
     * @return the allow value.
     */
    public Boolean allow() {
        return this.allow;
    }

    /**
     * Set the allow property: Flag to control allow category.
     *
     * @param allow the allow value to set.
     * @return the O365BreakOutCategoryPolicies object itself.
     */
    public O365BreakOutCategoryPolicies withAllow(Boolean allow) {
        this.allow = allow;
        return this;
    }

    /**
     * Get the optimize property: Flag to control optimize category.
     *
     * @return the optimize value.
     */
    public Boolean optimize() {
        return this.optimize;
    }

    /**
     * Set the optimize property: Flag to control optimize category.
     *
     * @param optimize the optimize value to set.
     * @return the O365BreakOutCategoryPolicies object itself.
     */
    public O365BreakOutCategoryPolicies withOptimize(Boolean optimize) {
        this.optimize = optimize;
        return this;
    }

    /**
     * Get the defaultProperty property: Flag to control default category.
     *
     * @return the defaultProperty value.
     */
    public Boolean defaultProperty() {
        return this.defaultProperty;
    }

    /**
     * Set the defaultProperty property: Flag to control default category.
     *
     * @param defaultProperty the defaultProperty value to set.
     * @return the O365BreakOutCategoryPolicies object itself.
     */
    public O365BreakOutCategoryPolicies withDefaultProperty(Boolean defaultProperty) {
        this.defaultProperty = defaultProperty;
        return this;
    }

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