Class Collection
java.lang.Object
com.azure.resourcemanager.machinelearning.models.Collection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Collection>
The Collection model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The msi client id used to collect logging to blob storage.Get the dataCollectionMode property: Enable or disable data collection.dataId()Get the dataId property: The data asset arm resource id.static CollectionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Collection from the JsonReader.Get the samplingRate property: The sampling rate for collection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: The msi client id used to collect logging to blob storage.withDataCollectionMode(DataCollectionMode dataCollectionMode) Set the dataCollectionMode property: Enable or disable data collection.withDataId(String dataId) Set the dataId property: The data asset arm resource id.withSamplingRate(Double samplingRate) Set the samplingRate property: The sampling rate for collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Collection
public Collection()Creates an instance of Collection class.
-
-
Method Details
-
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.
-
withSamplingRate
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.
-
dataCollectionMode
Get the dataCollectionMode property: Enable or disable data collection.- Returns:
- the dataCollectionMode value.
-
withDataCollectionMode
Set the dataCollectionMode property: Enable or disable data collection.- Parameters:
dataCollectionMode- the dataCollectionMode value to set.- Returns:
- the Collection object itself.
-
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.
-
withDataId
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.
-
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.
-
withClientId
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Collection>- Throws:
IOException
-
fromJson
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.
-