Class DeploymentExtensionDefinition
java.lang.Object
com.azure.resourcemanager.resources.models.DeploymentExtensionDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentExtensionDefinition>
public final class DeploymentExtensionDefinition
extends Object
implements com.azure.json.JsonSerializable<DeploymentExtensionDefinition>
The DeploymentExtensionDefinition model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentExtensionDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Get the alias property: The alias of the extension as defined in the deployment template.config()Get the config property: The extension configuration.configId()Get the configId property: The extension configuration ID.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentExtensionDefinition from the JsonReader.name()Get the name property: The extension name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The extension version.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
-
DeploymentExtensionDefinition
public DeploymentExtensionDefinition()Creates an instance of DeploymentExtensionDefinition class.
-
-
Method Details
-
alias
Get the alias property: The alias of the extension as defined in the deployment template.- Returns:
- the alias value.
-
name
Get the name property: The extension name.- Returns:
- the name value.
-
version
Get the version property: The extension version.- Returns:
- the version value.
-
configId
Get the configId property: The extension configuration ID. It uniquely identifies a deployment control plane within an extension.- Returns:
- the configId value.
-
config
Get the config property: The extension configuration.- Returns:
- the config value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeploymentExtensionDefinition>- Throws:
IOException
-
fromJson
public static DeploymentExtensionDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentExtensionDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentExtensionDefinition 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 DeploymentExtensionDefinition.
-