Class ComponentVersionDetails
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ResourceBase
-
- com.azure.resourcemanager.machinelearning.models.AssetBase
-
- com.azure.resourcemanager.machinelearning.models.ComponentVersionDetails
-
public final class ComponentVersionDetails extends AssetBase
Definition of a component version: defines resources that span component types.
-
-
Constructor Summary
Constructors Constructor Description ComponentVersionDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
componentSpec()
Get the componentSpec property: Defines Component definition details.void
validate()
Validates the instance.ComponentVersionDetails
withComponentSpec(Object componentSpec)
Set the componentSpec property: Defines Component definition details.ComponentVersionDetails
withDescription(String description)
Set the description property: The asset description text.ComponentVersionDetails
withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).ComponentVersionDetails
withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.ComponentVersionDetails
withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.ComponentVersionDetails
withTags(Map<String,String> tags)
Set the tags property: Tag dictionary.-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.AssetBase
isAnonymous, isArchived
-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tags
-
-
-
-
Method Detail
-
componentSpec
public Object componentSpec()
Get the componentSpec property: Defines Component definition details. <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />.- Returns:
- the componentSpec value.
-
withComponentSpec
public ComponentVersionDetails withComponentSpec(Object componentSpec)
Set the componentSpec property: Defines Component definition details. <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />.- Parameters:
componentSpec
- the componentSpec value to set.- Returns:
- the ComponentVersionDetails object itself.
-
withIsAnonymous
public ComponentVersionDetails withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).- Overrides:
withIsAnonymous
in classAssetBase
- Parameters:
isAnonymous
- the isAnonymous value to set.- Returns:
- the AssetBase object itself.
-
withIsArchived
public ComponentVersionDetails withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.- Overrides:
withIsArchived
in classAssetBase
- Parameters:
isArchived
- the isArchived value to set.- Returns:
- the AssetBase object itself.
-
withDescription
public ComponentVersionDetails withDescription(String description)
Set the description property: The asset description text.- Overrides:
withDescription
in classAssetBase
- Parameters:
description
- the description value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
public ComponentVersionDetails withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.- Overrides:
withProperties
in classAssetBase
- Parameters:
properties
- the properties value to set.- Returns:
- the ResourceBase object itself.
-
withTags
public ComponentVersionDetails withTags(Map<String,String> tags)
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAssetBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-