Class WorkspaceInfo
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.WorkspaceInfo
-
public class WorkspaceInfo extends Object
Information about a Log Analytics Workspace.
-
-
Constructor Summary
Constructors Constructor Description WorkspaceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcustomerId()Get the customerId property: Log Analytics workspace identifier.Stringid()Get the id property: Azure Resource Manager identifier of the Log Analytics Workspace.Stringlocation()Get the location property: Location of the Log Analytics workspace.voidvalidate()Validates the instance.WorkspaceInfowithCustomerId(String customerId)Set the customerId property: Log Analytics workspace identifier.WorkspaceInfowithId(String id)Set the id property: Azure Resource Manager identifier of the Log Analytics Workspace.WorkspaceInfowithLocation(String location)Set the location property: Location of the Log Analytics workspace.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Azure Resource Manager identifier of the Log Analytics Workspace.- Returns:
- the id value.
-
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.
-
location
public String location()
Get the location property: Location of the Log Analytics workspace.- Returns:
- the location value.
-
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.
-
customerId
public String customerId()
Get the customerId property: Log Analytics workspace identifier.- Returns:
- the customerId value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-