Delen via


DataSourcePrecedence Class

  • java.lang.Object
    • com.azure.resourcemanager.customerinsights.models.DataSourcePrecedence

Implements

public final class DataSourcePrecedence
implements JsonSerializable<DataSourcePrecedence>

The data source precedence is a way to know the precedence of each data source.

Constructor Summary

Constructor Description
DataSourcePrecedence()

Creates an instance of DataSourcePrecedence class.

Method Summary

Modifier and Type Method and Description
String dataSourceReferenceId()

Get the dataSourceReferenceId property: The data source reference id.

DataSourceType dataSourceType()

Get the dataSourceType property: The data source type.

static DataSourcePrecedence fromJson(JsonReader jsonReader)

Reads an instance of DataSourcePrecedence from the JsonReader.

Integer id()

Get the id property: The data source ID.

String name()

Get the name property: The data source name.

Integer precedence()

Get the precedence property: the precedence value.

Status status()

Get the status property: The data source status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataSourcePrecedence withPrecedence(Integer precedence)

Set the precedence property: the precedence value.

Methods inherited from java.lang.Object

Constructor Details

DataSourcePrecedence

public DataSourcePrecedence()

Creates an instance of DataSourcePrecedence class.

Method Details

dataSourceReferenceId

public String dataSourceReferenceId()

Get the dataSourceReferenceId property: The data source reference id.

Returns:

the dataSourceReferenceId value.

dataSourceType

public DataSourceType dataSourceType()

Get the dataSourceType property: The data source type.

Returns:

the dataSourceType value.

fromJson

public static DataSourcePrecedence fromJson(JsonReader jsonReader)

Reads an instance of DataSourcePrecedence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataSourcePrecedence 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 DataSourcePrecedence.

id

public Integer id()

Get the id property: The data source ID.

Returns:

the id value.

name

public String name()

Get the name property: The data source name.

Returns:

the name value.

precedence

public Integer precedence()

Get the precedence property: the precedence value.

Returns:

the precedence value.

status

public Status status()

Get the status property: The data source status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrecedence

public DataSourcePrecedence withPrecedence(Integer precedence)

Set the precedence property: the precedence value.

Parameters:

precedence - the precedence value to set.

Returns:

the DataSourcePrecedence object itself.

Applies to