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 Details

    • DeploymentExtensionSpec

      public DeploymentExtensionSpec()
      Creates an instance of DeploymentExtensionSpec class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the extension.
      Returns:
      the name value.
    • withName

      public DeploymentExtensionSpec withName(String name)
      Set the name property: Name of the extension.
      Parameters:
      name - the name value to set.
      Returns:
      the DeploymentExtensionSpec object itself.
    • extensionType

      public String extensionType()
      Get the extensionType property: Type of extension to be added.
      Returns:
      the extensionType value.
    • withExtensionType

      public DeploymentExtensionSpec withExtensionType(String extensionType)
      Set the extensionType property: Type of extension to be added.
      Parameters:
      extensionType - the extensionType value to set.
      Returns:
      the DeploymentExtensionSpec object itself.
    • version

      public String version()
      Get the version property: Version of the extension being used.
      Returns:
      the version value.
    • withVersion

      public DeploymentExtensionSpec withVersion(String version)
      Set the version property: Version of the extension being used.
      Parameters:
      version - the version value to set.
      Returns:
      the DeploymentExtensionSpec object itself.
    • settings

      public Object settings()
      Get the settings property: Settings for the extension.
      Returns:
      the settings value.
    • withSettings

      public DeploymentExtensionSpec withSettings(Object settings)
      Set the settings property: Settings for the extension.
      Parameters:
      settings - the settings value to set.
      Returns:
      the DeploymentExtensionSpec object itself.
    • protectedSettings

      public Object protectedSettings()
      Get the protectedSettings property: Protected settings for the extension.
      Returns:
      the protectedSettings value.
    • withProtectedSettings

      public DeploymentExtensionSpec withProtectedSettings(Object protectedSettings)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.