共用方式為


SparkConfigProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.SparkConfigProperties

Implements

public final class SparkConfigProperties
implements JsonSerializable<SparkConfigProperties>

Spark pool Config Properties SparkConfig Properties for a Big Data pool powered by Apache Spark.

Constructor Summary

Constructor Description
SparkConfigProperties()

Creates an instance of SparkConfigProperties class.

Method Summary

Modifier and Type Method and Description
ConfigurationType configurationType()

Get the configurationType property: The type of the spark config properties file.

String content()

Get the content property: The spark config properties.

String filename()

Get the filename property: The filename of the spark config properties file.

static SparkConfigProperties fromJson(JsonReader jsonReader)

Reads an instance of SparkConfigProperties from the JsonReader.

OffsetDateTime time()

Get the time property: The last update time of the spark config properties file.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SparkConfigProperties withConfigurationType(ConfigurationType configurationType)

Set the configurationType property: The type of the spark config properties file.

SparkConfigProperties withContent(String content)

Set the content property: The spark config properties.

SparkConfigProperties withFilename(String filename)

Set the filename property: The filename of the spark config properties file.

Methods inherited from java.lang.Object

Constructor Details

SparkConfigProperties

public SparkConfigProperties()

Creates an instance of SparkConfigProperties class.

Method Details

configurationType

public ConfigurationType configurationType()

Get the configurationType property: The type of the spark config properties file.

Returns:

the configurationType value.

content

public String content()

Get the content property: The spark config properties.

Returns:

the content value.

filename

public String filename()

Get the filename property: The filename of the spark config properties file.

Returns:

the filename value.

fromJson

public static SparkConfigProperties fromJson(JsonReader jsonReader)

Reads an instance of SparkConfigProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SparkConfigProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SparkConfigProperties.

time

public OffsetDateTime time()

Get the time property: The last update time of the spark config properties file.

Returns:

the time value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConfigurationType

public SparkConfigProperties withConfigurationType(ConfigurationType configurationType)

Set the configurationType property: The type of the spark config properties file.

Parameters:

configurationType - the configurationType value to set.

Returns:

the SparkConfigProperties object itself.

withContent

public SparkConfigProperties withContent(String content)

Set the content property: The spark config properties.

Parameters:

content - the content value to set.

Returns:

the SparkConfigProperties object itself.

withFilename

public SparkConfigProperties withFilename(String filename)

Set the filename property: The filename of the spark config properties file.

Parameters:

filename - the filename value to set.

Returns:

the SparkConfigProperties object itself.

Applies to