Class DestinationAsset
java.lang.Object
com.azure.resourcemanager.machinelearning.models.DestinationAsset
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DestinationAsset>
public final class DestinationAsset
extends Object
implements com.azure.json.JsonSerializable<DestinationAsset>
Publishing destination registry asset information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationName property: Destination asset name.Get the destinationVersion property: Destination asset version.static DestinationAssetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DestinationAsset from the JsonReader.Get the registryName property: Destination registry name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationName(String destinationName) Set the destinationName property: Destination asset name.withDestinationVersion(String destinationVersion) Set the destinationVersion property: Destination asset version.withRegistryName(String registryName) Set the registryName property: Destination registry name.Methods 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
-
DestinationAsset
public DestinationAsset()Creates an instance of DestinationAsset class.
-
-
Method Details
-
registryName
Get the registryName property: Destination registry name.- Returns:
- the registryName value.
-
withRegistryName
Set the registryName property: Destination registry name.- Parameters:
registryName- the registryName value to set.- Returns:
- the DestinationAsset object itself.
-
destinationName
Get the destinationName property: Destination asset name.- Returns:
- the destinationName value.
-
withDestinationName
Set the destinationName property: Destination asset name.- Parameters:
destinationName- the destinationName value to set.- Returns:
- the DestinationAsset object itself.
-
destinationVersion
Get the destinationVersion property: Destination asset version.- Returns:
- the destinationVersion value.
-
withDestinationVersion
Set the destinationVersion property: Destination asset version.- Parameters:
destinationVersion- the destinationVersion value to set.- Returns:
- the DestinationAsset object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DestinationAsset>- Throws:
IOException
-
fromJson
Reads an instance of DestinationAsset from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DestinationAsset 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 DestinationAsset.
-