Compartir a través de


WorkspaceInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.WorkspaceInfo

Implements

public final class WorkspaceInfo
implements JsonSerializable<WorkspaceInfo>

Information about a Log Analytics Workspace.

Constructor Summary

Constructor Description
WorkspaceInfo()

Creates an instance of WorkspaceInfo class.

Method Summary

Modifier and Type Method and Description
String customerId()

Get the customerId property: Log Analytics workspace identifier.

static WorkspaceInfo fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceInfo from the JsonReader.

String id()

Get the id property: Azure Resource Manager identifier of the Log Analytics Workspace.

String location()

Get the location property: Location of the Log Analytics workspace.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkspaceInfo withCustomerId(String customerId)

Set the customerId property: Log Analytics workspace identifier.

WorkspaceInfo withId(String id)

Set the id property: Azure Resource Manager identifier of the Log Analytics Workspace.

WorkspaceInfo withLocation(String location)

Set the location property: Location of the Log Analytics workspace.

Methods inherited from java.lang.Object

Constructor Details

WorkspaceInfo

public WorkspaceInfo()

Creates an instance of WorkspaceInfo class.

Method Details

customerId

public String customerId()

Get the customerId property: Log Analytics workspace identifier.

Returns:

the customerId value.

fromJson

public static WorkspaceInfo fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Azure Resource Manager identifier of the Log Analytics Workspace.

Returns:

the id value.

location

public String location()

Get the location property: Location of the Log Analytics workspace.

Returns:

the location value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomerId

public WorkspaceInfo withCustomerId(String customerId)

Set the customerId property: Log Analytics workspace identifier.

Parameters:

customerId - the customerId value to set.

Returns:

the WorkspaceInfo object itself.

withId

public WorkspaceInfo withId(String id)

Set the id property: Azure Resource Manager identifier of the Log Analytics Workspace.

Parameters:

id - the id value to set.

Returns:

the WorkspaceInfo object itself.

withLocation

public WorkspaceInfo withLocation(String location)

Set the location property: Location of the Log Analytics workspace.

Parameters:

location - the location value to set.

Returns:

the WorkspaceInfo object itself.

Applies to