LogAnalyticsConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.LogAnalyticsConfiguration

Implements

public final class LogAnalyticsConfiguration
implements JsonSerializable<LogAnalyticsConfiguration>

The LogAnalyticsConfiguration model.

Constructor Summary

Constructor Description
LogAnalyticsConfiguration()

Creates an instance of LogAnalyticsConfiguration class.

Method Summary

Modifier and Type Method and Description
String customerId()

Get the customerId property: The customerId property.

static LogAnalyticsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsConfiguration from the JsonReader.

String sharedKey()

Get the sharedKey property: The sharedKey property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LogAnalyticsConfiguration withCustomerId(String customerId)

Set the customerId property: The customerId property.

LogAnalyticsConfiguration withSharedKey(String sharedKey)

Set the sharedKey property: The sharedKey property.

Methods inherited from java.lang.Object

Constructor Details

LogAnalyticsConfiguration

public LogAnalyticsConfiguration()

Creates an instance of LogAnalyticsConfiguration class.

Method Details

customerId

public String customerId()

Get the customerId property: The customerId property.

Returns:

the customerId value.

fromJson

public static LogAnalyticsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LogAnalyticsConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the LogAnalyticsConfiguration.

sharedKey

public String sharedKey()

Get the sharedKey property: The sharedKey property.

Returns:

the sharedKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomerId

public LogAnalyticsConfiguration withCustomerId(String customerId)

Set the customerId property: The customerId property.

Parameters:

customerId - the customerId value to set.

Returns:

the LogAnalyticsConfiguration object itself.

withSharedKey

public LogAnalyticsConfiguration withSharedKey(String sharedKey)

Set the sharedKey property: The sharedKey property.

Parameters:

sharedKey - the sharedKey value to set.

Returns:

the LogAnalyticsConfiguration object itself.

Applies to