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

package com.azure.resourcemanager.logic.models;

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

/** The API deployment parameters metadata. */
@Fluent
public final class ApiDeploymentParameterMetadataSet {
    /*
     * The package content link parameter.
     */
    @JsonProperty(value = "packageContentLink")
    private ApiDeploymentParameterMetadata packageContentLink;

    /*
     * The package content link parameter.
     */
    @JsonProperty(value = "redisCacheConnectionString")
    private ApiDeploymentParameterMetadata redisCacheConnectionString;

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

    /**
     * Get the packageContentLink property: The package content link parameter.
     *
     * @return the packageContentLink value.
     */
    public ApiDeploymentParameterMetadata packageContentLink() {
        return this.packageContentLink;
    }

    /**
     * Set the packageContentLink property: The package content link parameter.
     *
     * @param packageContentLink the packageContentLink value to set.
     * @return the ApiDeploymentParameterMetadataSet object itself.
     */
    public ApiDeploymentParameterMetadataSet withPackageContentLink(ApiDeploymentParameterMetadata packageContentLink) {
        this.packageContentLink = packageContentLink;
        return this;
    }

    /**
     * Get the redisCacheConnectionString property: The package content link parameter.
     *
     * @return the redisCacheConnectionString value.
     */
    public ApiDeploymentParameterMetadata redisCacheConnectionString() {
        return this.redisCacheConnectionString;
    }

    /**
     * Set the redisCacheConnectionString property: The package content link parameter.
     *
     * @param redisCacheConnectionString the redisCacheConnectionString value to set.
     * @return the ApiDeploymentParameterMetadataSet object itself.
     */
    public ApiDeploymentParameterMetadataSet withRedisCacheConnectionString(
        ApiDeploymentParameterMetadata redisCacheConnectionString) {
        this.redisCacheConnectionString = redisCacheConnectionString;
        return this;
    }

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