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

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.resourcemanager.providerhub.models.DefaultRolloutProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Default rollout definition. */
@Fluent
public final class DefaultRolloutInner extends ProxyResource {
    /*
     * Properties of the rollout.
     */
    @JsonProperty(value = "properties")
    private DefaultRolloutProperties properties;

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

    /**
     * Get the properties property: Properties of the rollout.
     *
     * @return the properties value.
     */
    public DefaultRolloutProperties properties() {
        return this.properties;
    }

    /**
     * Set the properties property: Properties of the rollout.
     *
     * @param properties the properties value to set.
     * @return the DefaultRolloutInner object itself.
     */
    public DefaultRolloutInner withProperties(DefaultRolloutProperties properties) {
        this.properties = properties;
        return this;
    }

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