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

package com.azure.resourcemanager.managedapplications.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Managed application artifact. */
@Fluent
public final class ApplicationArtifact {
    /*
     * The managed application artifact name.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The managed application artifact blob uri.
     */
    @JsonProperty(value = "uri")
    private String uri;

    /*
     * The managed application artifact type.
     */
    @JsonProperty(value = "type")
    private ApplicationArtifactType type;

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

    /**
     * Get the name property: The managed application artifact name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The managed application artifact name.
     *
     * @param name the name value to set.
     * @return the ApplicationArtifact object itself.
     */
    public ApplicationArtifact withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the uri property: The managed application artifact blob uri.
     *
     * @return the uri value.
     */
    public String uri() {
        return this.uri;
    }

    /**
     * Set the uri property: The managed application artifact blob uri.
     *
     * @param uri the uri value to set.
     * @return the ApplicationArtifact object itself.
     */
    public ApplicationArtifact withUri(String uri) {
        this.uri = uri;
        return this;
    }

    /**
     * Get the type property: The managed application artifact type.
     *
     * @return the type value.
     */
    public ApplicationArtifactType type() {
        return this.type;
    }

    /**
     * Set the type property: The managed application artifact type.
     *
     * @param type the type value to set.
     * @return the ApplicationArtifact object itself.
     */
    public ApplicationArtifact withType(ApplicationArtifactType type) {
        this.type = type;
        return this;
    }

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