SolutionProperties Class

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

Implements

public final class SolutionProperties
implements JsonSerializable<SolutionProperties>

Solution properties supported by the OperationsManagement resource provider.

Constructor Summary

Constructor Description
SolutionProperties()

Creates an instance of SolutionProperties class.

Method Summary

Modifier and Type Method and Description
List<String> containedResources()

Get the containedResources property: The azure resources that will be contained within the solutions.

static SolutionProperties fromJson(JsonReader jsonReader)

Reads an instance of SolutionProperties from the JsonReader.

String provisioningState()

Get the provisioningState property: The provisioning state for the solution.

List<String> referencedResources()

Get the referencedResources property: The resources that will be referenced from this solution.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SolutionProperties withContainedResources(List<String> containedResources)

Set the containedResources property: The azure resources that will be contained within the solutions.

SolutionProperties withReferencedResources(List<String> referencedResources)

Set the referencedResources property: The resources that will be referenced from this solution.

SolutionProperties withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The azure resourceId for the workspace where the solution will be deployed/enabled.

String workspaceResourceId()

Get the workspaceResourceId property: The azure resourceId for the workspace where the solution will be deployed/enabled.

Methods inherited from java.lang.Object

Constructor Details

SolutionProperties

public SolutionProperties()

Creates an instance of SolutionProperties class.

Method Details

containedResources

public List<String> containedResources()

Get the containedResources property: The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.

Returns:

the containedResources value.

fromJson

public static SolutionProperties fromJson(JsonReader jsonReader)

Reads an instance of SolutionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SolutionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state for the solution.

Returns:

the provisioningState value.

referencedResources

public List<String> referencedResources()

Get the referencedResources property: The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.

Returns:

the referencedResources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContainedResources

public SolutionProperties withContainedResources(List<String> containedResources)

Set the containedResources property: The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.

Parameters:

containedResources - the containedResources value to set.

Returns:

the SolutionProperties object itself.

withReferencedResources

public SolutionProperties withReferencedResources(List<String> referencedResources)

Set the referencedResources property: The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.

Parameters:

referencedResources - the referencedResources value to set.

Returns:

the SolutionProperties object itself.

withWorkspaceResourceId

public SolutionProperties withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The azure resourceId for the workspace where the solution will be deployed/enabled.

Parameters:

workspaceResourceId - the workspaceResourceId value to set.

Returns:

the SolutionProperties object itself.

workspaceResourceId

public String workspaceResourceId()

Get the workspaceResourceId property: The azure resourceId for the workspace where the solution will be deployed/enabled.

Returns:

the workspaceResourceId value.

Applies to