Class DeploymentExtensionSpecProperties
java.lang.Object
com.azure.resourcemanager.containerinstance.fluent.models.DeploymentExtensionSpecProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentExtensionSpecProperties>
public final class DeploymentExtensionSpecProperties
extends Object
implements com.azure.json.JsonSerializable<DeploymentExtensionSpecProperties>
Extension specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentExtensionSpecProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the extensionType property: Type of extension to be added.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentExtensionSpecProperties from the JsonReader.Get the protectedSettings property: Protected settings for the extension.settings()Get the settings property: Settings for the extension.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: Version of the extension being used.withExtensionType(String extensionType) Set the extensionType property: Type of extension to be added.withProtectedSettings(Object protectedSettings) Set the protectedSettings property: Protected settings for the extension.withSettings(Object settings) Set the settings property: Settings for the extension.withVersion(String version) Set the version property: Version of the extension being used.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
-
DeploymentExtensionSpecProperties
public DeploymentExtensionSpecProperties()Creates an instance of DeploymentExtensionSpecProperties class.
-
-
Method Details
-
extensionType
Get the extensionType property: Type of extension to be added.- Returns:
- the extensionType value.
-
withExtensionType
Set the extensionType property: Type of extension to be added.- Parameters:
extensionType- the extensionType value to set.- Returns:
- the DeploymentExtensionSpecProperties object itself.
-
version
Get the version property: Version of the extension being used.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the extension being used.- Parameters:
version- the version value to set.- Returns:
- the DeploymentExtensionSpecProperties object itself.
-
settings
Get the settings property: Settings for the extension.- Returns:
- the settings value.
-
withSettings
Set the settings property: Settings for the extension.- Parameters:
settings- the settings value to set.- Returns:
- the DeploymentExtensionSpecProperties object itself.
-
protectedSettings
Get the protectedSettings property: Protected settings for the extension.- Returns:
- the protectedSettings value.
-
withProtectedSettings
Set the protectedSettings property: Protected settings for the extension.- Parameters:
protectedSettings- the protectedSettings value to set.- Returns:
- the DeploymentExtensionSpecProperties 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<DeploymentExtensionSpecProperties>- Throws:
IOException
-
fromJson
public static DeploymentExtensionSpecProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentExtensionSpecProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentExtensionSpecProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DeploymentExtensionSpecProperties.
-