Share via


DataContainerProperties Class

public final class DataContainerProperties
extends AssetContainer

Container for data asset versions.

Constructor Summary

Constructor Description
DataContainerProperties()

Creates an instance of DataContainerProperties class.

Method Summary

Modifier and Type Method and Description
DataType dataType()

Get the dataType property: [Required] Specifies the type of data.

static DataContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of DataContainerProperties 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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataContainerProperties withDataType(DataType dataType)

Set the dataType property: [Required] Specifies the type of data.

DataContainerProperties withDescription(String description)

Set the description property: The asset description text.

DataContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

DataContainerProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

DataContainerProperties 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

DataContainerProperties

public DataContainerProperties()

Creates an instance of DataContainerProperties class.

Method Details

dataType

public DataType dataType()

Get the dataType property: [Required] Specifies the type of data.

Returns:

the dataType value.

fromJson

public static DataContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of DataContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

latestVersion

public String latestVersion()

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

Overrides:

DataContainerProperties.latestVersion()

Returns:

the latestVersion value.

nextVersion

public String nextVersion()

Get the nextVersion property: The next auto incremental version.

Overrides:

DataContainerProperties.nextVersion()

Returns:

the nextVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataContainerProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataContainerProperties.validate()

withDataType

public DataContainerProperties withDataType(DataType dataType)

Set the dataType property: [Required] Specifies the type of data.

Parameters:

dataType - the dataType value to set.

Returns:

the DataContainerProperties object itself.

withDescription

public DataContainerProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

DataContainerProperties.withDescription(String description)

Parameters:

description

withIsArchived

public DataContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

DataContainerProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withProperties

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

Set the properties property: The asset property dictionary.

Overrides:

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

Parameters:

properties

withTags

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

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

Overrides:

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

Parameters:

tags

Applies to