
com.azure.resourcemanager.datafactory.models.DatabricksNotebookActivity Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.fluent.models.DatabricksNotebookActivityTypeProperties;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* DatabricksNotebook activity.
*/
@Fluent
public final class DatabricksNotebookActivity extends ExecutionActivity {
/*
* Type of activity.
*/
private String type = "DatabricksNotebook";
/*
* Databricks Notebook activity properties.
*/
private DatabricksNotebookActivityTypeProperties innerTypeProperties
= new DatabricksNotebookActivityTypeProperties();
/**
* Creates an instance of DatabricksNotebookActivity class.
*/
public DatabricksNotebookActivity() {
}
/**
* Get the type property: Type of activity.
*
* @return the type value.
*/
@Override
public String type() {
return this.type;
}
/**
* Get the innerTypeProperties property: Databricks Notebook activity properties.
*
* @return the innerTypeProperties value.
*/
private DatabricksNotebookActivityTypeProperties innerTypeProperties() {
return this.innerTypeProperties;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) {
super.withLinkedServiceName(linkedServiceName);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withPolicy(ActivityPolicy policy) {
super.withPolicy(policy);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withName(String name) {
super.withName(name);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withDescription(String description) {
super.withDescription(description);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withState(ActivityState state) {
super.withState(state);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs) {
super.withOnInactiveMarkAs(onInactiveMarkAs);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withDependsOn(List dependsOn) {
super.withDependsOn(dependsOn);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public DatabricksNotebookActivity withUserProperties(List userProperties) {
super.withUserProperties(userProperties);
return this;
}
/**
* Get the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path
* must begin with a slash. Type: string (or Expression with resultType string).
*
* @return the notebookPath value.
*/
public Object notebookPath() {
return this.innerTypeProperties() == null ? null : this.innerTypeProperties().notebookPath();
}
/**
* Set the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path
* must begin with a slash. Type: string (or Expression with resultType string).
*
* @param notebookPath the notebookPath value to set.
* @return the DatabricksNotebookActivity object itself.
*/
public DatabricksNotebookActivity withNotebookPath(Object notebookPath) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties();
}
this.innerTypeProperties().withNotebookPath(notebookPath);
return this;
}
/**
* Get the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a
* parameter that is not specified, the default value from the notebook will be used.
*
* @return the baseParameters value.
*/
public Map baseParameters() {
return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseParameters();
}
/**
* Set the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a
* parameter that is not specified, the default value from the notebook will be used.
*
* @param baseParameters the baseParameters value to set.
* @return the DatabricksNotebookActivity object itself.
*/
public DatabricksNotebookActivity withBaseParameters(Map baseParameters) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties();
}
this.innerTypeProperties().withBaseParameters(baseParameters);
return this;
}
/**
* Get the libraries property: A list of libraries to be installed on the cluster that will execute the job.
*
* @return the libraries value.
*/
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy