Collection Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.Collection

Implements

public final class Collection
implements JsonSerializable<Collection>

The Collection model.

Constructor Summary

Constructor Description
Collection()

Creates an instance of Collection class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: The msi client id used to collect logging to blob storage.

DataCollectionMode dataCollectionMode()

Get the dataCollectionMode property: Enable or disable data collection.

String dataId()

Get the dataId property: The data asset arm resource id.

static Collection fromJson(JsonReader jsonReader)

Reads an instance of Collection from the JsonReader.

Double samplingRate()

Get the samplingRate property: The sampling rate for collection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Collection withClientId(String clientId)

Set the clientId property: The msi client id used to collect logging to blob storage.

Collection withDataCollectionMode(DataCollectionMode dataCollectionMode)

Set the dataCollectionMode property: Enable or disable data collection.

Collection withDataId(String dataId)

Set the dataId property: The data asset arm resource id.

Collection withSamplingRate(Double samplingRate)

Set the samplingRate property: The sampling rate for collection.

Methods inherited from java.lang.Object

Constructor Details

Collection

public Collection()

Creates an instance of Collection class.

Method Details

clientId

public String clientId()

Get the clientId property: The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth.

Returns:

the clientId value.

dataCollectionMode

public DataCollectionMode dataCollectionMode()

Get the dataCollectionMode property: Enable or disable data collection.

Returns:

the dataCollectionMode value.

dataId

public String dataId()

Get the dataId property: The data asset arm resource id. Client side will ensure data asset is pointing to the blob storage, and backend will collect data to the blob storage.

Returns:

the dataId value.

fromJson

public static Collection fromJson(JsonReader jsonReader)

Reads an instance of Collection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

samplingRate

public Double samplingRate()

Get the samplingRate property: The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default.

Returns:

the samplingRate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientId

public Collection withClientId(String clientId)

Set the clientId property: The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth.

Parameters:

clientId - the clientId value to set.

Returns:

the Collection object itself.

withDataCollectionMode

public Collection withDataCollectionMode(DataCollectionMode dataCollectionMode)

Set the dataCollectionMode property: Enable or disable data collection.

Parameters:

dataCollectionMode - the dataCollectionMode value to set.

Returns:

the Collection object itself.

withDataId

public Collection withDataId(String dataId)

Set the dataId property: The data asset arm resource id. Client side will ensure data asset is pointing to the blob storage, and backend will collect data to the blob storage.

Parameters:

dataId - the dataId value to set.

Returns:

the Collection object itself.

withSamplingRate

public Collection withSamplingRate(Double samplingRate)

Set the samplingRate property: The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default.

Parameters:

samplingRate - the samplingRate value to set.

Returns:

the Collection object itself.

Applies to