Partilhar via


LogSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.LogSpecification

Implements

public final class LogSpecification
implements JsonSerializable<LogSpecification>

Specifications of the Log for Azure Monitoring.

Constructor Summary

Constructor Description
LogSpecification()

Creates an instance of LogSpecification class.

Method Summary

Modifier and Type Method and Description
String blobDuration()

Get the blobDuration property: Blob duration of the log.

String displayName()

Get the displayName property: Localized friendly display name of the log.

static LogSpecification fromJson(JsonReader jsonReader)

Reads an instance of LogSpecification from the JsonReader.

String name()

Get the name property: Name of the log.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LogSpecification withBlobDuration(String blobDuration)

Set the blobDuration property: Blob duration of the log.

LogSpecification withDisplayName(String displayName)

Set the displayName property: Localized friendly display name of the log.

LogSpecification withName(String name)

Set the name property: Name of the log.

Methods inherited from java.lang.Object

Constructor Details

LogSpecification

public LogSpecification()

Creates an instance of LogSpecification class.

Method Details

blobDuration

public String blobDuration()

Get the blobDuration property: Blob duration of the log.

Returns:

the blobDuration value.

displayName

public String displayName()

Get the displayName property: Localized friendly display name of the log.

Returns:

the displayName value.

fromJson

public static LogSpecification fromJson(JsonReader jsonReader)

Reads an instance of LogSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the log.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBlobDuration

public LogSpecification withBlobDuration(String blobDuration)

Set the blobDuration property: Blob duration of the log.

Parameters:

blobDuration - the blobDuration value to set.

Returns:

the LogSpecification object itself.

withDisplayName

public LogSpecification withDisplayName(String displayName)

Set the displayName property: Localized friendly display name of the log.

Parameters:

displayName - the displayName value to set.

Returns:

the LogSpecification object itself.

withName

public LogSpecification withName(String name)

Set the name property: Name of the log.

Parameters:

name - the name value to set.

Returns:

the LogSpecification object itself.

Applies to