Solution Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Solution

Implements

public final class Solution
implements JsonSerializable<Solution>

Class Representing Solution for problems detected.

Constructor Summary

Constructor Description
Solution()

Creates an instance of Solution class.

Method Summary

Modifier and Type Method and Description
List<List<NameValuePair>> data()

Get the data property: Solution Data.

String description()

Get the description property: Description of the solution.

String displayName()

Get the displayName property: Display Name of the solution.

static Solution fromJson(JsonReader jsonReader)

Reads an instance of Solution from the JsonReader.

Double id()

Get the id property: Solution Id.

List<List<NameValuePair>> metadata()

Get the metadata property: Solution Metadata.

Double order()

Get the order property: Order of the solution.

JsonWriter toJson(JsonWriter jsonWriter)
SolutionType type()

Get the type property: Type of Solution.

void validate()

Validates the instance.

Solution withData(List<List<NameValuePair>> data)

Set the data property: Solution Data.

Solution withDescription(String description)

Set the description property: Description of the solution.

Solution withDisplayName(String displayName)

Set the displayName property: Display Name of the solution.

Solution withId(Double id)

Set the id property: Solution Id.

Solution withMetadata(List<List<NameValuePair>> metadata)

Set the metadata property: Solution Metadata.

Solution withOrder(Double order)

Set the order property: Order of the solution.

Solution withType(SolutionType type)

Set the type property: Type of Solution.

Methods inherited from java.lang.Object

Constructor Details

Solution

public Solution()

Creates an instance of Solution class.

Method Details

data

public List> data()

Get the data property: Solution Data.

Returns:

the data value.

description

public String description()

Get the description property: Description of the solution.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display Name of the solution.

Returns:

the displayName value.

fromJson

public static Solution fromJson(JsonReader jsonReader)

Reads an instance of Solution from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public Double id()

Get the id property: Solution Id.

Returns:

the id value.

metadata

public List> metadata()

Get the metadata property: Solution Metadata.

Returns:

the metadata value.

order

public Double order()

Get the order property: Order of the solution.

Returns:

the order value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public SolutionType type()

Get the type property: Type of Solution.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withData

public Solution withData(List> data)

Set the data property: Solution Data.

Parameters:

data - the data value to set.

Returns:

the Solution object itself.

withDescription

public Solution withDescription(String description)

Set the description property: Description of the solution.

Parameters:

description - the description value to set.

Returns:

the Solution object itself.

withDisplayName

public Solution withDisplayName(String displayName)

Set the displayName property: Display Name of the solution.

Parameters:

displayName - the displayName value to set.

Returns:

the Solution object itself.

withId

public Solution withId(Double id)

Set the id property: Solution Id.

Parameters:

id - the id value to set.

Returns:

the Solution object itself.

withMetadata

public Solution withMetadata(List> metadata)

Set the metadata property: Solution Metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the Solution object itself.

withOrder

public Solution withOrder(Double order)

Set the order property: Order of the solution.

Parameters:

order - the order value to set.

Returns:

the Solution object itself.

withType

public Solution withType(SolutionType type)

Set the type property: Type of Solution.

Parameters:

type - the type value to set.

Returns:

the Solution object itself.

Applies to