
com.azure.resourcemanager.datafactory.models.HDInsightSparkActivity 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.HDInsightSparkActivityTypeProperties;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* HDInsight Spark activity.
*/
@Fluent
public final class HDInsightSparkActivity extends ExecutionActivity {
/*
* Type of activity.
*/
private String type = "HDInsightSpark";
/*
* HDInsight spark activity properties.
*/
private HDInsightSparkActivityTypeProperties innerTypeProperties = new HDInsightSparkActivityTypeProperties();
/**
* Creates an instance of HDInsightSparkActivity class.
*/
public HDInsightSparkActivity() {
}
/**
* Get the type property: Type of activity.
*
* @return the type value.
*/
@Override
public String type() {
return this.type;
}
/**
* Get the innerTypeProperties property: HDInsight spark activity properties.
*
* @return the innerTypeProperties value.
*/
private HDInsightSparkActivityTypeProperties innerTypeProperties() {
return this.innerTypeProperties;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) {
super.withLinkedServiceName(linkedServiceName);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withPolicy(ActivityPolicy policy) {
super.withPolicy(policy);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withName(String name) {
super.withName(name);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withDescription(String description) {
super.withDescription(description);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withState(ActivityState state) {
super.withState(state);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs) {
super.withOnInactiveMarkAs(onInactiveMarkAs);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withDependsOn(List dependsOn) {
super.withDependsOn(dependsOn);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public HDInsightSparkActivity withUserProperties(List userProperties) {
super.withUserProperties(userProperties);
return this;
}
/**
* Get the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or
* Expression with resultType string).
*
* @return the rootPath value.
*/
public Object rootPath() {
return this.innerTypeProperties() == null ? null : this.innerTypeProperties().rootPath();
}
/**
* Set the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or
* Expression with resultType string).
*
* @param rootPath the rootPath value to set.
* @return the HDInsightSparkActivity object itself.
*/
public HDInsightSparkActivity withRootPath(Object rootPath) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new HDInsightSparkActivityTypeProperties();
}
this.innerTypeProperties().withRootPath(rootPath);
return this;
}
/**
* Get the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type:
* string (or Expression with resultType string).
*
* @return the entryFilePath value.
*/
public Object entryFilePath() {
return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entryFilePath();
}
/**
* Set the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type:
* string (or Expression with resultType string).
*
* @param entryFilePath the entryFilePath value to set.
* @return the HDInsightSparkActivity object itself.
*/
public HDInsightSparkActivity withEntryFilePath(Object entryFilePath) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new HDInsightSparkActivityTypeProperties();
}
this.innerTypeProperties().withEntryFilePath(entryFilePath);
return this;
}
/**
* Get the arguments property: The user-specified arguments to HDInsightSparkActivity.
*
* @return the arguments value.
*/
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy