Deployment Class

  • java.lang.Object
    • com.azure.ai.projects.models.Deployment

Implements

public class Deployment
implements JsonSerializable<Deployment>

Model Deployment Definition.

Constructor Summary

Modifier Constructor Description
protected Deployment()

Creates an instance of Deployment class.

Method Summary

Modifier and Type Method and Description
static Deployment fromJson(JsonReader jsonReader)

Reads an instance of Deployment from the JsonReader.

String getName()

Get the name property: Name of the deployment.

DeploymentType getType()

Get the type property: The type of the deployment.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

Deployment

protected Deployment()

Creates an instance of Deployment class.

Method Details

fromJson

public static Deployment fromJson(JsonReader jsonReader)

Reads an instance of Deployment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Deployment 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.

getName

public String getName()

Get the name property: Name of the deployment.

Returns:

the name value.

getType

public DeploymentType getType()

Get the type property: The type of the deployment.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to