// 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 integration service environment managed api deployment parameters. */
@Fluent
public final class IntegrationServiceEnvironmentManagedApiDeploymentParameters {
    /*
     * The integration service environment managed api content link for deployment.
     */
    @JsonProperty(value = "contentLinkDefinition")
    private ContentLink contentLinkDefinition;

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

    /**
     * Get the contentLinkDefinition property: The integration service environment managed api content link for
     * deployment.
     *
     * @return the contentLinkDefinition value.
     */
    public ContentLink contentLinkDefinition() {
        return this.contentLinkDefinition;
    }

    /**
     * Set the contentLinkDefinition property: The integration service environment managed api content link for
     * deployment.
     *
     * @param contentLinkDefinition the contentLinkDefinition value to set.
     * @return the IntegrationServiceEnvironmentManagedApiDeploymentParameters object itself.
     */
    public IntegrationServiceEnvironmentManagedApiDeploymentParameters withContentLinkDefinition(
        ContentLink contentLinkDefinition) {
        this.contentLinkDefinition = contentLinkDefinition;
        return this;
    }

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