WorkspaceInfo Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. WorkspaceInfo
- com.
Implements
public final class WorkspaceInfo
implements JsonSerializable<WorkspaceInfo>
Information about a Log Analytics Workspace.
Constructor Summary
Constructor | Description |
---|---|
WorkspaceInfo() |
Creates an instance of Workspace |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
customerId()
Get the customer |
static
Workspace |
fromJson(JsonReader jsonReader)
Reads an instance of Workspace |
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. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Workspace |
withCustomerId(String customerId)
Set the customer |
Workspace |
withId(String id)
Set the id property: Azure Resource Manager identifier of the Log Analytics Workspace. |
Workspace |
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:
fromJson
public static WorkspaceInfo fromJson(JsonReader jsonReader)
Reads an instance of WorkspaceInfo from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Azure Resource Manager identifier of the Log Analytics Workspace.
Returns:
location
public String location()
Get the location property: Location of the Log Analytics workspace.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCustomerId
public WorkspaceInfo withCustomerId(String customerId)
Set the customerId property: Log Analytics workspace identifier.
Parameters:
Returns:
withId
public WorkspaceInfo withId(String id)
Set the id property: Azure Resource Manager identifier of the Log Analytics Workspace.
Parameters:
Returns:
withLocation
public WorkspaceInfo withLocation(String location)
Set the location property: Location of the Log Analytics workspace.
Parameters:
Returns:
Applies to
Azure SDK for Java