CodeContainerProperties Class

public final class CodeContainerProperties
extends AssetContainer

Container for code asset versions.

Constructor Summary

Constructor Description
CodeContainerProperties()

Creates an instance of CodeContainerProperties class.

Method Summary

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

Reads an instance of CodeContainerProperties 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 code container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CodeContainerProperties withDescription(String description)

Set the description property: The asset description text.

CodeContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

CodeContainerProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

CodeContainerProperties 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

CodeContainerProperties

public CodeContainerProperties()

Creates an instance of CodeContainerProperties class.

Method Details

fromJson

public static CodeContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of CodeContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

latestVersion

public String latestVersion()

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

Overrides:

CodeContainerProperties.latestVersion()

Returns:

the latestVersion value.

nextVersion

public String nextVersion()

Get the nextVersion property: The next auto incremental version.

Overrides:

CodeContainerProperties.nextVersion()

Returns:

the nextVersion value.

provisioningState

public AssetProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CodeContainerProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

CodeContainerProperties.validate()

withDescription

public CodeContainerProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

CodeContainerProperties.withDescription(String description)

Parameters:

description

withIsArchived

public CodeContainerProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

CodeContainerProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withProperties

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

Set the properties property: The asset property dictionary.

Overrides:

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

Parameters:

properties

withTags

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

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

Overrides:

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

Parameters:

tags

Applies to