SolutionPlan Class

  • java.lang.Object
    • com.azure.resourcemanager.operationsmanagement.models.SolutionPlan

Implements

public final class SolutionPlan
implements JsonSerializable<SolutionPlan>

Plan for solution object supported by the OperationsManagement resource provider.

Constructor Summary

Constructor Description
SolutionPlan()

Creates an instance of SolutionPlan class.

Method Summary

Modifier and Type Method and Description
static SolutionPlan fromJson(JsonReader jsonReader)

Reads an instance of SolutionPlan from the JsonReader.

String name()

Get the name property: name of the solution to be created.

String product()

Get the product property: name of the solution to enabled/add.

String promotionCode()

Get the promotionCode property: promotionCode, Not really used now, can you left as empty.

String publisher()

Get the publisher property: Publisher name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SolutionPlan withName(String name)

Set the name property: name of the solution to be created.

SolutionPlan withProduct(String product)

Set the product property: name of the solution to enabled/add.

SolutionPlan withPromotionCode(String promotionCode)

Set the promotionCode property: promotionCode, Not really used now, can you left as empty.

SolutionPlan withPublisher(String publisher)

Set the publisher property: Publisher name.

Methods inherited from java.lang.Object

Constructor Details

SolutionPlan

public SolutionPlan()

Creates an instance of SolutionPlan class.

Method Details

fromJson

public static SolutionPlan fromJson(JsonReader jsonReader)

Reads an instance of SolutionPlan from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.

Returns:

the name value.

product

public String product()

Get the product property: name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/<solutionType>. This is case sensitive.

Returns:

the product value.

promotionCode

public String promotionCode()

Get the promotionCode property: promotionCode, Not really used now, can you left as empty.

Returns:

the promotionCode value.

publisher

public String publisher()

Get the publisher property: Publisher name. For gallery solution, it is Microsoft.

Returns:

the publisher value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public SolutionPlan withName(String name)

Set the name property: name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.

Parameters:

name - the name value to set.

Returns:

the SolutionPlan object itself.

withProduct

public SolutionPlan withProduct(String product)

Set the product property: name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/<solutionType>. This is case sensitive.

Parameters:

product - the product value to set.

Returns:

the SolutionPlan object itself.

withPromotionCode

public SolutionPlan withPromotionCode(String promotionCode)

Set the promotionCode property: promotionCode, Not really used now, can you left as empty.

Parameters:

promotionCode - the promotionCode value to set.

Returns:

the SolutionPlan object itself.

withPublisher

public SolutionPlan withPublisher(String publisher)

Set the publisher property: Publisher name. For gallery solution, it is Microsoft.

Parameters:

publisher - the publisher value to set.

Returns:

the SolutionPlan object itself.

Applies to