MsixPackageDependencies Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies

Implements

public final class MsixPackageDependencies
implements JsonSerializable<MsixPackageDependencies>

Schema for MSIX Package Dependencies properties.

Constructor Summary

Constructor Description
MsixPackageDependencies()

Creates an instance of MsixPackageDependencies class.

Method Summary

Modifier and Type Method and Description
String dependencyName()

Get the dependencyName property: Name of package dependency.

static MsixPackageDependencies fromJson(JsonReader jsonReader)

Reads an instance of MsixPackageDependencies from the JsonReader.

String minVersion()

Get the minVersion property: Dependency version required.

String publisher()

Get the publisher property: Name of dependency publisher.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MsixPackageDependencies withDependencyName(String dependencyName)

Set the dependencyName property: Name of package dependency.

MsixPackageDependencies withMinVersion(String minVersion)

Set the minVersion property: Dependency version required.

MsixPackageDependencies withPublisher(String publisher)

Set the publisher property: Name of dependency publisher.

Methods inherited from java.lang.Object

Constructor Details

MsixPackageDependencies

public MsixPackageDependencies()

Creates an instance of MsixPackageDependencies class.

Method Details

dependencyName

public String dependencyName()

Get the dependencyName property: Name of package dependency.

Returns:

the dependencyName value.

fromJson

public static MsixPackageDependencies fromJson(JsonReader jsonReader)

Reads an instance of MsixPackageDependencies from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

minVersion

public String minVersion()

Get the minVersion property: Dependency version required.

Returns:

the minVersion value.

publisher

public String publisher()

Get the publisher property: Name of dependency publisher.

Returns:

the publisher value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDependencyName

public MsixPackageDependencies withDependencyName(String dependencyName)

Set the dependencyName property: Name of package dependency.

Parameters:

dependencyName - the dependencyName value to set.

Returns:

the MsixPackageDependencies object itself.

withMinVersion

public MsixPackageDependencies withMinVersion(String minVersion)

Set the minVersion property: Dependency version required.

Parameters:

minVersion - the minVersion value to set.

Returns:

the MsixPackageDependencies object itself.

withPublisher

public MsixPackageDependencies withPublisher(String publisher)

Set the publisher property: Name of dependency publisher.

Parameters:

publisher - the publisher value to set.

Returns:

the MsixPackageDependencies object itself.

Applies to