AzureMLUpdateResourceActivity.java

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

package com.azure.analytics.synapse.artifacts.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Azure ML Update Resource management activity. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("AzureMLUpdateResource")
@JsonFlatten
@Fluent
public class AzureMLUpdateResourceActivity extends ExecutionActivity {
    /*
     * Name of the Trained Model module in the Web Service experiment to be
     * updated. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "typeProperties.trainedModelName", required = true)
    private Object trainedModelName;

    /*
     * Name of Azure Storage linked service holding the .ilearner file that
     * will be uploaded by the update operation.
     */
    @JsonProperty(value = "typeProperties.trainedModelLinkedServiceName", required = true)
    private LinkedServiceReference trainedModelLinkedServiceName;

    /*
     * The relative file path in trainedModelLinkedService to represent the
     * .ilearner file that will be uploaded by the update operation.  Type:
     * string (or Expression with resultType string).
     */
    @JsonProperty(value = "typeProperties.trainedModelFilePath", required = true)
    private Object trainedModelFilePath;

    /**
     * Get the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated.
     * Type: string (or Expression with resultType string).
     *
     * @return the trainedModelName value.
     */
    public Object getTrainedModelName() {
        return this.trainedModelName;
    }

    /**
     * Set the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated.
     * Type: string (or Expression with resultType string).
     *
     * @param trainedModelName the trainedModelName value to set.
     * @return the AzureMLUpdateResourceActivity object itself.
     */
    public AzureMLUpdateResourceActivity setTrainedModelName(Object trainedModelName) {
        this.trainedModelName = trainedModelName;
        return this;
    }

    /**
     * Get the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file
     * that will be uploaded by the update operation.
     *
     * @return the trainedModelLinkedServiceName value.
     */
    public LinkedServiceReference getTrainedModelLinkedServiceName() {
        return this.trainedModelLinkedServiceName;
    }

    /**
     * Set the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file
     * that will be uploaded by the update operation.
     *
     * @param trainedModelLinkedServiceName the trainedModelLinkedServiceName value to set.
     * @return the AzureMLUpdateResourceActivity object itself.
     */
    public AzureMLUpdateResourceActivity setTrainedModelLinkedServiceName(
            LinkedServiceReference trainedModelLinkedServiceName) {
        this.trainedModelLinkedServiceName = trainedModelLinkedServiceName;
        return this;
    }

    /**
     * Get the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the
     * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType
     * string).
     *
     * @return the trainedModelFilePath value.
     */
    public Object getTrainedModelFilePath() {
        return this.trainedModelFilePath;
    }

    /**
     * Set the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the
     * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType
     * string).
     *
     * @param trainedModelFilePath the trainedModelFilePath value to set.
     * @return the AzureMLUpdateResourceActivity object itself.
     */
    public AzureMLUpdateResourceActivity setTrainedModelFilePath(Object trainedModelFilePath) {
        this.trainedModelFilePath = trainedModelFilePath;
        return this;
    }
}