Class ResourceConfiguration
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceConfiguration>
- Direct Known Subclasses:
DeploymentResourceConfiguration,JobResourceConfiguration
public class ResourceConfiguration
extends Object
implements com.azure.json.JsonSerializable<ResourceConfiguration>
The ResourceConfiguration model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceConfiguration from the JsonReader.Get the instanceCount property: Optional number of instances or nodes used by the compute target.Get the instanceType property: Optional type of VM used as supported by the compute target.Get the properties property: Additional properties bag.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInstanceCount(Integer instanceCount) Set the instanceCount property: Optional number of instances or nodes used by the compute target.withInstanceType(String instanceType) Set the instanceType property: Optional type of VM used as supported by the compute target.withProperties(Map<String, Object> properties) Set the properties property: Additional properties bag.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
-
ResourceConfiguration
public ResourceConfiguration()Creates an instance of ResourceConfiguration class.
-
-
Method Details
-
instanceCount
Get the instanceCount property: Optional number of instances or nodes used by the compute target.- Returns:
- the instanceCount value.
-
withInstanceCount
Set the instanceCount property: Optional number of instances or nodes used by the compute target.- Parameters:
instanceCount- the instanceCount value to set.- Returns:
- the ResourceConfiguration object itself.
-
instanceType
Get the instanceType property: Optional type of VM used as supported by the compute target.- Returns:
- the instanceType value.
-
withInstanceType
Set the instanceType property: Optional type of VM used as supported by the compute target.- Parameters:
instanceType- the instanceType value to set.- Returns:
- the ResourceConfiguration object itself.
-
properties
Get the properties property: Additional properties bag.- Returns:
- the properties value.
-
withProperties
Set the properties property: Additional properties bag.- Parameters:
properties- the properties value to set.- Returns:
- the ResourceConfiguration 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<ResourceConfiguration>- Throws:
IOException
-
fromJson
public static ResourceConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResourceConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceConfiguration 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 ResourceConfiguration.
-