Deployment Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.deployments.models.Deployment

Implements

public final class Deployment
implements JsonSerializable<Deployment>

Deployment operation parameters.

Constructor Summary

Constructor Description
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.

DeploymentIdentity identity()

Get the identity property: The Managed Identity configuration for a deployment.

String location()

Get the location property: The location to store the deployment data.

DeploymentProperties properties()

Get the properties property: The deployment properties.

Map<String,String> tags()

Get the tags property: Deployment tags.

JsonWriter toJson(JsonWriter jsonWriter)
Deployment withIdentity(DeploymentIdentity identity)

Set the identity property: The Managed Identity configuration for a deployment.

Deployment withLocation(String location)

Set the location property: The location to store the deployment data.

Deployment withProperties(DeploymentProperties properties)

Set the properties property: The deployment properties.

Deployment withTags(Map<String,String> tags)

Set the tags property: Deployment tags.

Methods inherited from java.lang.Object

Constructor Details

Deployment

public 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.

identity

public DeploymentIdentity identity()

Get the identity property: The Managed Identity configuration for a deployment.

Returns:

the identity value.

location

public String location()

Get the location property: The location to store the deployment data.

Returns:

the location value.

properties

public DeploymentProperties properties()

Get the properties property: The deployment properties.

Returns:

the properties value.

tags

public Map<String,String> tags()

Get the tags property: Deployment tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withIdentity

public Deployment withIdentity(DeploymentIdentity identity)

Set the identity property: The Managed Identity configuration for a deployment.

Parameters:

identity - the identity value to set.

Returns:

the Deployment object itself.

withLocation

public Deployment withLocation(String location)

Set the location property: The location to store the deployment data.

Parameters:

location - the location value to set.

Returns:

the Deployment object itself.

withProperties

public Deployment withProperties(DeploymentProperties properties)

Set the properties property: The deployment properties.

Parameters:

properties - the properties value to set.

Returns:

the Deployment object itself.

withTags

public Deployment withTags(Map<String,String> tags)

Set the tags property: Deployment tags.

Parameters:

tags - the tags value to set.

Returns:

the Deployment object itself.

Applies to