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

package com.azure.resourcemanager.deploymentmanager.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.deploymentmanager.models.ArtifactSourcePropertiesAutoGenerated;
import com.azure.resourcemanager.deploymentmanager.models.Authentication;

/** The properties that define the artifact source. */
@Fluent
public final class ArtifactSourceProperties extends ArtifactSourcePropertiesAutoGenerated {
    /** Creates an instance of ArtifactSourceProperties class. */
    public ArtifactSourceProperties() {
    }

    /** {@inheritDoc} */
    @Override
    public ArtifactSourceProperties withSourceType(String sourceType) {
        super.withSourceType(sourceType);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ArtifactSourceProperties withArtifactRoot(String artifactRoot) {
        super.withArtifactRoot(artifactRoot);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ArtifactSourceProperties withAuthentication(Authentication authentication) {
        super.withAuthentication(authentication);
        return this;
    }

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