ModelContainerProperties Class

public final class ModelContainerProperties
extends AssetContainer

The ModelContainerProperties model.

Constructor Summary

Constructor Description
ModelContainerProperties()

Creates an instance of ModelContainerProperties class.

Method Summary

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

Reads an instance of ModelContainerProperties from the JsonReader.

String latestVersion()

Get the latestVersion property: The latest version inside this container.

String nextVersion()

Get the nextVersion property: The next auto incremental version.

AssetProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the model container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ModelContainerProperties withDescription(String description)

Set the description property: The asset description text.

ModelContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

ModelContainerProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

ModelContainerProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from AssetContainer

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

ModelContainerProperties

public ModelContainerProperties()

Creates an instance of ModelContainerProperties class.

Method Details

fromJson

public static ModelContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of ModelContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ModelContainerProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ModelContainerProperties.

latestVersion

public String latestVersion()

Get the latestVersion property: The latest version inside this container.

Overrides:

ModelContainerProperties.latestVersion()

Returns:

the latestVersion value.

nextVersion

public String nextVersion()

Get the nextVersion property: The next auto incremental version.

Overrides:

ModelContainerProperties.nextVersion()

Returns:

the nextVersion value.

provisioningState

public AssetProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the model container.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ModelContainerProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ModelContainerProperties.validate()

withDescription

public ModelContainerProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

ModelContainerProperties.withDescription(String description)

Parameters:

description

withIsArchived

public ModelContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

ModelContainerProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withProperties

public ModelContainerProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

Overrides:

ModelContainerProperties.withProperties(Map<String,String> properties)

Parameters:

properties

withTags

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

Set the tags property: Tag dictionary. Tags can be added, removed, and updated.

Overrides:

ModelContainerProperties.withTags(Map<String,String> tags)

Parameters:

tags

Applies to