Class JobBaseProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceBase
com.azure.resourcemanager.machinelearning.models.JobBaseProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
- Direct Known Subclasses:
AutoMLJob,CommandJob,PipelineJob,SparkJob,SweepJob
Base definition for a job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the componentId property: ARM resource ID of the component resource.Get the computeId property: ARM resource ID of the compute resource.Get the displayName property: Display name of job.Get the experimentName property: The name of the experiment the job belongs to.static JobBasePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobBaseProperties from the JsonReader.identity()Get the identity property: Identity configuration.Get the isArchived property: Is the asset archived?.jobType()Get the jobType property: [Required] Specifies the type of job.Get the notificationSetting property: Notification setting for the job.services()Get the services property: List of JobEndpoints.status()Get the status property: Status of the job.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withComponentId(String componentId) Set the componentId property: ARM resource ID of the component resource.withComputeId(String computeId) Set the computeId property: ARM resource ID of the compute resource.withDescription(String description) Set the description property: The asset description text.withDisplayName(String displayName) Set the displayName property: Display name of job.withExperimentName(String experimentName) Set the experimentName property: The name of the experiment the job belongs to.withIdentity(IdentityConfiguration identity) Set the identity property: Identity configuration.withIsArchived(Boolean isArchived) Set the isArchived property: Is the asset archived?.withNotificationSetting(NotificationSetting notificationSetting) Set the notificationSetting property: Notification setting for the job.withProperties(Map<String, String> properties) Set the properties property: The asset property dictionary.withServices(Map<String, JobService> services) Set the services property: List of JobEndpoints.Set the tags property: Tag dictionary.Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tagsMethods 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
-
JobBaseProperties
public JobBaseProperties()Creates an instance of JobBaseProperties class.
-
-
Method Details
-
jobType
Get the jobType property: [Required] Specifies the type of job.- Returns:
- the jobType value.
-
displayName
Get the displayName property: Display name of job.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of job.- Parameters:
displayName- the displayName value to set.- Returns:
- the JobBaseProperties object itself.
-
status
Get the status property: Status of the job.- Returns:
- the status value.
-
experimentName
Get the experimentName property: The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.- Returns:
- the experimentName value.
-
withExperimentName
Set the experimentName property: The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.- Parameters:
experimentName- the experimentName value to set.- Returns:
- the JobBaseProperties object itself.
-
services
Get the services property: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject.- Returns:
- the services value.
-
withServices
Set the services property: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject.- Parameters:
services- the services value to set.- Returns:
- the JobBaseProperties object itself.
-
computeId
Get the computeId property: ARM resource ID of the compute resource.- Returns:
- the computeId value.
-
withComputeId
Set the computeId property: ARM resource ID of the compute resource.- Parameters:
computeId- the computeId value to set.- Returns:
- the JobBaseProperties object itself.
-
isArchived
Get the isArchived property: Is the asset archived?.- Returns:
- the isArchived value.
-
withIsArchived
Set the isArchived property: Is the asset archived?.- Parameters:
isArchived- the isArchived value to set.- Returns:
- the JobBaseProperties object itself.
-
identity
Get the identity property: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. Defaults to AmlToken if null.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. Defaults to AmlToken if null.- Parameters:
identity- the identity value to set.- Returns:
- the JobBaseProperties object itself.
-
componentId
Get the componentId property: ARM resource ID of the component resource.- Returns:
- the componentId value.
-
withComponentId
Set the componentId property: ARM resource ID of the component resource.- Parameters:
componentId- the componentId value to set.- Returns:
- the JobBaseProperties object itself.
-
notificationSetting
Get the notificationSetting property: Notification setting for the job.- Returns:
- the notificationSetting value.
-
withNotificationSetting
Set the notificationSetting property: Notification setting for the job.- Parameters:
notificationSetting- the notificationSetting value to set.- Returns:
- the JobBaseProperties object itself.
-
withDescription
Set the description property: The asset description text.- Overrides:
withDescriptionin classResourceBase- Parameters:
description- the description value to set.- Returns:
- the ResourceBase object itself.
-
withTags
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.- Overrides:
withTagsin classResourceBase- Parameters:
tags- the tags value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
Set the properties property: The asset property dictionary.- Overrides:
withPropertiesin classResourceBase- Parameters:
properties- the properties value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceBase>- Overrides:
toJsonin classResourceBase- Throws:
IOException
-
fromJson
Reads an instance of JobBaseProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobBaseProperties 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 JobBaseProperties.
-