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

package com.azure.resourcemanager.providerhub.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Duration;
import java.util.List;

/** The TrafficRegionRolloutConfiguration model. */
@Fluent
public class TrafficRegionRolloutConfiguration extends TrafficRegions {
    /*
     * The waitDuration property.
     */
    @JsonProperty(value = "waitDuration")
    private Duration waitDuration;

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

    /**
     * Get the waitDuration property: The waitDuration property.
     *
     * @return the waitDuration value.
     */
    public Duration waitDuration() {
        return this.waitDuration;
    }

    /**
     * Set the waitDuration property: The waitDuration property.
     *
     * @param waitDuration the waitDuration value to set.
     * @return the TrafficRegionRolloutConfiguration object itself.
     */
    public TrafficRegionRolloutConfiguration withWaitDuration(Duration waitDuration) {
        this.waitDuration = waitDuration;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TrafficRegionRolloutConfiguration withRegions(List<String> regions) {
        super.withRegions(regions);
        return this;
    }

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