// 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.azure.resourcemanager.providerhub.fluent.models.ResourceTypeRegistrationInner;
import java.util.List;

/** The CustomRolloutPropertiesSpecification model. */
@Fluent
public final class CustomRolloutPropertiesSpecification extends CustomRolloutSpecification {
    /** Creates an instance of CustomRolloutPropertiesSpecification class. */
    public CustomRolloutPropertiesSpecification() {
    }

    /** {@inheritDoc} */
    @Override
    public CustomRolloutPropertiesSpecification withCanary(CustomRolloutSpecificationCanary canary) {
        super.withCanary(canary);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public CustomRolloutPropertiesSpecification withProviderRegistration(
        CustomRolloutSpecificationProviderRegistration providerRegistration) {
        super.withProviderRegistration(providerRegistration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public CustomRolloutPropertiesSpecification withResourceTypeRegistrations(
        List<ResourceTypeRegistrationInner> resourceTypeRegistrations) {
        super.withResourceTypeRegistrations(resourceTypeRegistrations);
        return this;
    }

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