java.lang.Object
com.azure.resourcemanager.machinelearning.models.Collection
All Implemented Interfaces:
com.azure.json.JsonSerializable<Collection>

public final class Collection extends Object implements com.azure.json.JsonSerializable<Collection>
The Collection model.
  • Constructor Details

    • Collection

      public Collection()
      Creates an instance of Collection class.
  • Method Details

    • 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.
    • 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.
    • dataCollectionMode

      public DataCollectionMode dataCollectionMode()
      Get the dataCollectionMode property: Enable or disable data collection.
      Returns:
      the dataCollectionMode value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Collection>
      Throws:
      IOException
    • fromJson

      public static Collection fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.