Class CodeVersionDetails
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ResourceBase
-
- com.azure.resourcemanager.machinelearning.models.AssetBase
-
- com.azure.resourcemanager.machinelearning.models.CodeVersionDetails
-
public final class CodeVersionDetails extends AssetBase
Code asset version details.
-
-
Constructor Summary
Constructors Constructor Description CodeVersionDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
codeUri()
Get the codeUri property: Uri where code is located.void
validate()
Validates the instance.CodeVersionDetails
withCodeUri(String codeUri)
Set the codeUri property: Uri where code is located.CodeVersionDetails
withDescription(String description)
Set the description property: The asset description text.CodeVersionDetails
withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).CodeVersionDetails
withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.CodeVersionDetails
withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.CodeVersionDetails
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
-
codeUri
public String codeUri()
Get the codeUri property: Uri where code is located.- Returns:
- the codeUri value.
-
withCodeUri
public CodeVersionDetails withCodeUri(String codeUri)
Set the codeUri property: Uri where code is located.- Parameters:
codeUri
- the codeUri value to set.- Returns:
- the CodeVersionDetails object itself.
-
withIsAnonymous
public CodeVersionDetails 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 CodeVersionDetails 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 CodeVersionDetails 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 CodeVersionDetails 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 CodeVersionDetails 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.
-
-