ComponentContainerProperties Class

public final class ComponentContainerProperties
extends AssetContainer

Component container definition. <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />.

Constructor Summary

Constructor Description
ComponentContainerProperties()

Creates an instance of ComponentContainerProperties class.

Method Summary

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

Reads an instance of ComponentContainerProperties 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 component container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ComponentContainerProperties withDescription(String description)

Set the description property: The asset description text.

ComponentContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

ComponentContainerProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

ComponentContainerProperties 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

ComponentContainerProperties

public ComponentContainerProperties()

Creates an instance of ComponentContainerProperties class.

Method Details

fromJson

public static ComponentContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of ComponentContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

latestVersion

public String latestVersion()

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

Overrides:

ComponentContainerProperties.latestVersion()

Returns:

the latestVersion value.

nextVersion

public String nextVersion()

Get the nextVersion property: The next auto incremental version.

Overrides:

ComponentContainerProperties.nextVersion()

Returns:

the nextVersion value.

provisioningState

public AssetProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ComponentContainerProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ComponentContainerProperties.validate()

withDescription

public ComponentContainerProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

ComponentContainerProperties.withDescription(String description)

Parameters:

description

withIsArchived

public ComponentContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

ComponentContainerProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withProperties

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

Set the properties property: The asset property dictionary.

Overrides:

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

Parameters:

properties

withTags

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

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

Overrides:

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

Parameters:

tags

Applies to