LogAnalytics Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.LogAnalytics

Implements

public final class LogAnalytics
implements JsonSerializable<LogAnalytics>

Container group log analytics information.

Constructor Summary

Constructor Description
LogAnalytics()

Creates an instance of LogAnalytics class.

Method Summary

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

Reads an instance of LogAnalytics from the JsonReader.

LogAnalyticsLogType logType()

Get the logType property: The log type to be used.

Map<String,String> metadata()

Get the metadata property: Metadata for log analytics.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LogAnalytics withLogType(LogAnalyticsLogType logType)

Set the logType property: The log type to be used.

LogAnalytics withMetadata(Map<String,String> metadata)

Set the metadata property: Metadata for log analytics.

LogAnalytics withWorkspaceId(String workspaceId)

Set the workspaceId property: The workspace id for log analytics.

LogAnalytics withWorkspaceKey(String workspaceKey)

Set the workspaceKey property: The workspace key for log analytics.

LogAnalytics withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The workspace resource id for log analytics.

String workspaceId()

Get the workspaceId property: The workspace id for log analytics.

String workspaceKey()

Get the workspaceKey property: The workspace key for log analytics.

String workspaceResourceId()

Get the workspaceResourceId property: The workspace resource id for log analytics.

Methods inherited from java.lang.Object

Constructor Details

LogAnalytics

public LogAnalytics()

Creates an instance of LogAnalytics class.

Method Details

fromJson

public static LogAnalytics fromJson(JsonReader jsonReader)

Reads an instance of LogAnalytics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logType

public LogAnalyticsLogType logType()

Get the logType property: The log type to be used.

Returns:

the logType value.

metadata

public Map metadata()

Get the metadata property: Metadata for log analytics.

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLogType

public LogAnalytics withLogType(LogAnalyticsLogType logType)

Set the logType property: The log type to be used.

Parameters:

logType - the logType value to set.

Returns:

the LogAnalytics object itself.

withMetadata

public LogAnalytics withMetadata(Map metadata)

Set the metadata property: Metadata for log analytics.

Parameters:

metadata - the metadata value to set.

Returns:

the LogAnalytics object itself.

withWorkspaceId

public LogAnalytics withWorkspaceId(String workspaceId)

Set the workspaceId property: The workspace id for log analytics.

Parameters:

workspaceId - the workspaceId value to set.

Returns:

the LogAnalytics object itself.

withWorkspaceKey

public LogAnalytics withWorkspaceKey(String workspaceKey)

Set the workspaceKey property: The workspace key for log analytics.

Parameters:

workspaceKey - the workspaceKey value to set.

Returns:

the LogAnalytics object itself.

withWorkspaceResourceId

public LogAnalytics withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The workspace resource id for log analytics.

Parameters:

workspaceResourceId - the workspaceResourceId value to set.

Returns:

the LogAnalytics object itself.

workspaceId

public String workspaceId()

Get the workspaceId property: The workspace id for log analytics.

Returns:

the workspaceId value.

workspaceKey

public String workspaceKey()

Get the workspaceKey property: The workspace key for log analytics.

Returns:

the workspaceKey value.

workspaceResourceId

public String workspaceResourceId()

Get the workspaceResourceId property: The workspace resource id for log analytics.

Returns:

the workspaceResourceId value.

Applies to