Class DeploymentExtensionSpec
java.lang.Object
com.azure.resourcemanager.containerinstance.models.DeploymentExtensionSpec
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentExtensionSpec>
public final class DeploymentExtensionSpec
extends Object
implements com.azure.json.JsonSerializable<DeploymentExtensionSpec>
Extension sidecars to be added to the deployment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentExtensionSpec class. -
Method Summary
Modifier and TypeMethodDescriptionGet the extensionType property: Type of extension to be added.static DeploymentExtensionSpecfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentExtensionSpec from the JsonReader.name()Get the name property: Name of the extension.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.Set the name property: Name of the extension.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
-
DeploymentExtensionSpec
public DeploymentExtensionSpec()Creates an instance of DeploymentExtensionSpec class.
-
-
Method Details
-
name
Get the name property: Name of the extension.- Returns:
- the name value.
-
withName
Set the name property: Name of the extension.- Parameters:
name- the name value to set.- Returns:
- the DeploymentExtensionSpec object itself.
-
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 DeploymentExtensionSpec 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 DeploymentExtensionSpec 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 DeploymentExtensionSpec 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 DeploymentExtensionSpec 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<DeploymentExtensionSpec>- Throws:
IOException
-
fromJson
public static DeploymentExtensionSpec fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentExtensionSpec from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentExtensionSpec 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 DeploymentExtensionSpec.
-