Share via


AssetContainer Class

public class AssetContainer
extends ResourceBase

The AssetContainer model.

Constructor Summary

Constructor Description
AssetContainer()

Creates an instance of AssetContainer class.

Method Summary

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

Reads an instance of AssetContainer from the JsonReader.

Boolean isArchived()

Get the isArchived property: Is the asset archived?.

String latestVersion()

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

String nextVersion()

Get the nextVersion property: The next auto incremental version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AssetContainer withDescription(String description)

Set the description property: The asset description text.

AssetContainer withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

AssetContainer withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

AssetContainer withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

AssetContainer

public AssetContainer()

Creates an instance of AssetContainer class.

Method Details

fromJson

public static AssetContainer fromJson(JsonReader jsonReader)

Reads an instance of AssetContainer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isArchived

public Boolean isArchived()

Get the isArchived property: Is the asset archived?.

Returns:

the isArchived value.

latestVersion

public String latestVersion()

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

Returns:

the latestVersion value.

nextVersion

public String nextVersion()

Get the nextVersion property: The next auto incremental version.

Returns:

the nextVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AssetContainer.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AssetContainer.validate()

withDescription

public AssetContainer withDescription(String description)

Set the description property: The asset description text.

Overrides:

AssetContainer.withDescription(String description)

Parameters:

description

withIsArchived

public AssetContainer withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Parameters:

isArchived - the isArchived value to set.

Returns:

the AssetContainer object itself.

withProperties

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

Set the properties property: The asset property dictionary.

Overrides:

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

Parameters:

properties

withTags

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

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

Overrides:

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

Parameters:

tags

Applies to