ConnectedWorkspace Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.ConnectedWorkspace

Implements

public final class ConnectedWorkspace
implements JsonSerializable<ConnectedWorkspace>

Represents an OMS workspace to which the solution is connected.

Constructor Summary

Constructor Description
ConnectedWorkspace()

Creates an instance of ConnectedWorkspace class.

Method Summary

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

Reads an instance of ConnectedWorkspace from the JsonReader.

String id()

Get the id property: Azure resource ID of the connected OMS workspace.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectedWorkspace withId(String id)

Set the id property: Azure resource ID of the connected OMS workspace.

Methods inherited from java.lang.Object

Constructor Details

ConnectedWorkspace

public ConnectedWorkspace()

Creates an instance of ConnectedWorkspace class.

Method Details

fromJson

public static ConnectedWorkspace fromJson(JsonReader jsonReader)

Reads an instance of ConnectedWorkspace from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Azure resource ID of the connected OMS workspace.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ConnectedWorkspace withId(String id)

Set the id property: Azure resource ID of the connected OMS workspace.

Parameters:

id - the id value to set.

Returns:

the ConnectedWorkspace object itself.

Applies to