Compartilhar via


ProductLink Class

  • java.lang.Object
    • com.azure.resourcemanager.azurestack.models.ProductLink

Implements

public final class ProductLink
implements JsonSerializable<ProductLink>

Link with additional information about a product.

Constructor Summary

Constructor Description
ProductLink()

Creates an instance of ProductLink class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: The description of the link.

static ProductLink fromJson(JsonReader jsonReader)

Reads an instance of ProductLink from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The URI corresponding to the link.

void validate()

Validates the instance.

ProductLink withDisplayName(String displayName)

Set the displayName property: The description of the link.

ProductLink withUri(String uri)

Set the uri property: The URI corresponding to the link.

Methods inherited from java.lang.Object

Constructor Details

public ProductLink()

Creates an instance of ProductLink class.

Method Details

public String displayName()

Get the displayName property: The description of the link.

Returns:

the displayName value.

public static ProductLink fromJson(JsonReader jsonReader)

Reads an instance of ProductLink from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

public String uri()

Get the uri property: The URI corresponding to the link.

Returns:

the uri value.

public void validate()

Validates the instance.

public ProductLink withDisplayName(String displayName)

Set the displayName property: The description of the link.

Parameters:

displayName - the displayName value to set.

Returns:

the ProductLink object itself.

public ProductLink withUri(String uri)

Set the uri property: The URI corresponding to the link.

Parameters:

uri - the uri value to set.

Returns:

the ProductLink object itself.

Applies to