WorkspaceSettingInner Class

public final class WorkspaceSettingInner
extends ProxyResource

Configures where to store the OMS agent data for workspaces under a scope.

Constructor Summary

Constructor Description
WorkspaceSettingInner()

Creates an instance of WorkspaceSettingInner class.

Method Summary

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

Reads an instance of WorkspaceSettingInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String scope()

Get the scope property: All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

WorkspaceSettingInner withScope(String scope)

Set the scope property: All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope.

WorkspaceSettingInner withWorkspaceId(String workspaceId)

Set the workspaceId property: The full Azure ID of the workspace to save the data in.

String workspaceId()

Get the workspaceId property: The full Azure ID of the workspace to save the data in.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

WorkspaceSettingInner

public WorkspaceSettingInner()

Creates an instance of WorkspaceSettingInner class.

Method Details

fromJson

public static WorkspaceSettingInner fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceSettingInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WorkspaceSettingInner 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: Fully qualified resource Id for the resource.

Overrides:

WorkspaceSettingInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

WorkspaceSettingInner.name()

Returns:

the name value.

scope

public String scope()

Get the scope property: All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope.

Returns:

the scope value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

WorkspaceSettingInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

WorkspaceSettingInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withScope

public WorkspaceSettingInner withScope(String scope)

Set the scope property: All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope.

Parameters:

scope - the scope value to set.

Returns:

the WorkspaceSettingInner object itself.

withWorkspaceId

public WorkspaceSettingInner withWorkspaceId(String workspaceId)

Set the workspaceId property: The full Azure ID of the workspace to save the data in.

Parameters:

workspaceId - the workspaceId value to set.

Returns:

the WorkspaceSettingInner object itself.

workspaceId

public String workspaceId()

Get the workspaceId property: The full Azure ID of the workspace to save the data in.

Returns:

the workspaceId value.

Applies to