SolutionPlan Class
- java.
lang. Object - com.
azure. resourcemanager. operationsmanagement. models. SolutionPlan
- com.
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 Solution |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Solution |
fromJson(JsonReader jsonReader)
Reads an instance of Solution |
| 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 promotion |
| String |
publisher()
Get the publisher property: Publisher name. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Solution |
withName(String name)
Set the name property: name of the solution to be created. |
|
Solution |
withProduct(String product)
Set the product property: name of the solution to enabled/add. |
|
Solution |
withPromotionCode(String promotionCode)
Set the promotion |
|
Solution |
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:
Returns:
Throws:
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:
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:
promotionCode
public String promotionCode()
Get the promotionCode property: promotionCode, Not really used now, can you left as empty.
Returns:
publisher
public String publisher()
Get the publisher property: Publisher name. For gallery solution, it is Microsoft.
Returns:
toJson
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:
Returns:
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:
Returns:
withPromotionCode
public SolutionPlan withPromotionCode(String promotionCode)
Set the promotionCode property: promotionCode, Not really used now, can you left as empty.
Parameters:
Returns:
withPublisher
public SolutionPlan withPublisher(String publisher)
Set the publisher property: Publisher name. For gallery solution, it is Microsoft.
Parameters:
Returns: