DeploymentExtensionSpec Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.DeploymentExtensionSpec

Implements

public final class DeploymentExtensionSpec
implements JsonSerializable<DeploymentExtensionSpec>

Extension sidecars to be added to the deployment.

Constructor Summary

Constructor Description
DeploymentExtensionSpec()

Creates an instance of DeploymentExtensionSpec class.

Method Summary

Modifier and Type Method and Description
String extensionType()

Get the extensionType property: Type of extension to be added.

static DeploymentExtensionSpec fromJson(JsonReader jsonReader)

Reads an instance of DeploymentExtensionSpec from the JsonReader.

String name()

Get the name property: Name of the extension.

Object protectedSettings()

Get the protectedSettings property: Protected settings for the extension.

Object settings()

Get the settings property: Settings for the extension.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Version of the extension being used.

DeploymentExtensionSpec withExtensionType(String extensionType)

Set the extensionType property: Type of extension to be added.

DeploymentExtensionSpec withName(String name)

Set the name property: Name of the extension.

DeploymentExtensionSpec withProtectedSettings(Object protectedSettings)

Set the protectedSettings property: Protected settings for the extension.

DeploymentExtensionSpec withSettings(Object settings)

Set the settings property: Settings for the extension.

DeploymentExtensionSpec withVersion(String version)

Set the version property: Version of the extension being used.

Methods inherited from java.lang.Object

Constructor Details

DeploymentExtensionSpec

public DeploymentExtensionSpec()

Creates an instance of DeploymentExtensionSpec class.

Method Details

extensionType

public String extensionType()

Get the extensionType property: Type of extension to be added.

Returns:

the extensionType value.

fromJson

public static DeploymentExtensionSpec fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: Name of the extension.

Returns:

the name value.

protectedSettings

public Object protectedSettings()

Get the protectedSettings property: Protected settings for the extension.

Returns:

the protectedSettings value.

settings

public Object settings()

Get the settings property: Settings for the extension.

Returns:

the settings value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Version of the extension being used.

Returns:

the version 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.

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.

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.

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.

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.

Applies to