CodeVersionProperties Class

public final class CodeVersionProperties
extends AssetBase

Code asset version details.

Constructor Summary

Constructor Description
CodeVersionProperties()

Creates an instance of CodeVersionProperties class.

Method Summary

Modifier and Type Method and Description
String codeUri()

Get the codeUri property: Uri where code is located.

static CodeVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of CodeVersionProperties from the JsonReader.

AssetProvisioningState provisioningState()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CodeVersionProperties withCodeUri(String codeUri)

Set the codeUri property: Uri where code is located.

CodeVersionProperties withDescription(String description)

Set the description property: The asset description text.

CodeVersionProperties withIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: If the name version are system generated (anonymous registration).

CodeVersionProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

CodeVersionProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

CodeVersionProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from AssetBase

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

CodeVersionProperties

public CodeVersionProperties()

Creates an instance of CodeVersionProperties class.

Method Details

codeUri

public String codeUri()

Get the codeUri property: Uri where code is located.

Returns:

the codeUri value.

fromJson

public static CodeVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of CodeVersionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public AssetProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CodeVersionProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

CodeVersionProperties.validate()

withCodeUri

public CodeVersionProperties withCodeUri(String codeUri)

Set the codeUri property: Uri where code is located.

Parameters:

codeUri - the codeUri value to set.

Returns:

the CodeVersionProperties object itself.

withDescription

public CodeVersionProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

CodeVersionProperties.withDescription(String description)

Parameters:

description

withIsAnonymous

public CodeVersionProperties withIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: If the name version are system generated (anonymous registration).

Overrides:

CodeVersionProperties.withIsAnonymous(Boolean isAnonymous)

Parameters:

isAnonymous

withIsArchived

public CodeVersionProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

CodeVersionProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withProperties

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

Set the properties property: The asset property dictionary.

Overrides:

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

Parameters:

properties

withTags

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

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

Overrides:

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

Parameters:

tags

Applies to