Share via


Compatibility Class

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

Implements

public final class Compatibility
implements JsonSerializable<Compatibility>

Product compatibility.

Constructor Summary

Constructor Description
Compatibility()

Creates an instance of Compatibility class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Full error message if any compatibility issues are found.

static Compatibility fromJson(JsonReader jsonReader)

Reads an instance of Compatibility from the JsonReader.

Boolean isCompatible()

Get the isCompatible property: Tells if product is compatible with current device.

List<CompatibilityIssue> issues()

Get the issues property: List of all issues found.

String message()

Get the message property: Short error message if any compatibility issues are found.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Compatibility withDescription(String description)

Set the description property: Full error message if any compatibility issues are found.

Compatibility withIsCompatible(Boolean isCompatible)

Set the isCompatible property: Tells if product is compatible with current device.

Compatibility withIssues(List<CompatibilityIssue> issues)

Set the issues property: List of all issues found.

Compatibility withMessage(String message)

Set the message property: Short error message if any compatibility issues are found.

Methods inherited from java.lang.Object

Constructor Details

Compatibility

public Compatibility()

Creates an instance of Compatibility class.

Method Details

description

public String description()

Get the description property: Full error message if any compatibility issues are found.

Returns:

the description value.

fromJson

public static Compatibility fromJson(JsonReader jsonReader)

Reads an instance of Compatibility from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isCompatible

public Boolean isCompatible()

Get the isCompatible property: Tells if product is compatible with current device.

Returns:

the isCompatible value.

issues

public List<CompatibilityIssue> issues()

Get the issues property: List of all issues found.

Returns:

the issues value.

message

public String message()

Get the message property: Short error message if any compatibility issues are found.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public Compatibility withDescription(String description)

Set the description property: Full error message if any compatibility issues are found.

Parameters:

description - the description value to set.

Returns:

the Compatibility object itself.

withIsCompatible

public Compatibility withIsCompatible(Boolean isCompatible)

Set the isCompatible property: Tells if product is compatible with current device.

Parameters:

isCompatible - the isCompatible value to set.

Returns:

the Compatibility object itself.

withIssues

public Compatibility withIssues(List<CompatibilityIssue> issues)

Set the issues property: List of all issues found.

Parameters:

issues - the issues value to set.

Returns:

the Compatibility object itself.

withMessage

public Compatibility withMessage(String message)

Set the message property: Short error message if any compatibility issues are found.

Parameters:

message - the message value to set.

Returns:

the Compatibility object itself.

Applies to