Class AssetBase
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ResourceBase
-
- com.azure.resourcemanager.machinelearning.models.AssetBase
-
- Direct Known Subclasses:
CodeVersionDetails
,ComponentVersionDetails
,DataVersionBaseDetails
,EnvironmentVersionDetails
,ModelVersionDetails
public class AssetBase extends ResourceBase
The AssetBase model.
-
-
Constructor Summary
Constructors Constructor Description AssetBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isAnonymous()
Get the isAnonymous property: If the name version are system generated (anonymous registration).Boolean
isArchived()
Get the isArchived property: Is the asset archived?.void
validate()
Validates the instance.AssetBase
withDescription(String description)
Set the description property: The asset description text.AssetBase
withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).AssetBase
withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.AssetBase
withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.AssetBase
withTags(Map<String,String> tags)
Set the tags property: Tag dictionary.-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tags
-
-
-
-
Method Detail
-
isAnonymous
public Boolean isAnonymous()
Get the isAnonymous property: If the name version are system generated (anonymous registration).- Returns:
- the isAnonymous value.
-
withIsAnonymous
public AssetBase withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).- Parameters:
isAnonymous
- the isAnonymous value to set.- Returns:
- the AssetBase object itself.
-
isArchived
public Boolean isArchived()
Get the isArchived property: Is the asset archived?.- Returns:
- the isArchived value.
-
withIsArchived
public AssetBase withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.- Parameters:
isArchived
- the isArchived value to set.- Returns:
- the AssetBase object itself.
-
withDescription
public AssetBase withDescription(String description)
Set the description property: The asset description text.- Overrides:
withDescription
in classResourceBase
- Parameters:
description
- the description value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
public AssetBase withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.- Overrides:
withProperties
in classResourceBase
- Parameters:
properties
- the properties value to set.- Returns:
- the ResourceBase object itself.
-
withTags
public AssetBase withTags(Map<String,String> tags)
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.- Overrides:
withTags
in classResourceBase
- Parameters:
tags
- the tags value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classResourceBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-