Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.monitor;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Information about a Log Analytics Workspace.
/**
* Information about a Log Analytics Workspace.
*/
@JsonFlatten
public class WorkspaceInfo {
Azure Resource Manager identifier of the Log Analytics Workspace.
/**
* Azure Resource Manager identifier of the Log Analytics Workspace.
*/
@JsonProperty(value = "id", required = true)
private String id;
Location of the Log Analytics workspace.
/**
* Location of the Log Analytics workspace.
*/
@JsonProperty(value = "location", required = true)
private String location;
Log Analytics workspace identifier.
/**
* Log Analytics workspace identifier.
*/
@JsonProperty(value = "properties.customerId", required = true)
private String customerId;
Get azure Resource Manager identifier of the Log Analytics Workspace.
Returns: the id value
/**
* Get azure Resource Manager identifier of the Log Analytics Workspace.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set azure Resource Manager identifier of the Log Analytics Workspace.
Params: - id – the id value to set
Returns: the WorkspaceInfo object itself.
/**
* Set azure Resource Manager identifier of the Log Analytics Workspace.
*
* @param id the id value to set
* @return the WorkspaceInfo object itself.
*/
public WorkspaceInfo withId(String id) {
this.id = id;
return this;
}
Get location of the Log Analytics workspace.
Returns: the location value
/**
* Get location of the Log Analytics workspace.
*
* @return the location value
*/
public String location() {
return this.location;
}
Set location of the Log Analytics workspace.
Params: - location – the location value to set
Returns: the WorkspaceInfo object itself.
/**
* Set location of the Log Analytics workspace.
*
* @param location the location value to set
* @return the WorkspaceInfo object itself.
*/
public WorkspaceInfo withLocation(String location) {
this.location = location;
return this;
}
Get log Analytics workspace identifier.
Returns: the customerId value
/**
* Get log Analytics workspace identifier.
*
* @return the customerId value
*/
public String customerId() {
return this.customerId;
}
Set log Analytics workspace identifier.
Params: - customerId – the customerId value to set
Returns: the WorkspaceInfo object itself.
/**
* Set log Analytics workspace identifier.
*
* @param customerId the customerId value to set
* @return the WorkspaceInfo object itself.
*/
public WorkspaceInfo withCustomerId(String customerId) {
this.customerId = customerId;
return this;
}
}