Partager via


OperationLogSpecificationDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.OperationLogSpecificationDefinition

Implements

public final class OperationLogSpecificationDefinition
implements JsonSerializable<OperationLogSpecificationDefinition>

The definition of Azure Monitoring log.

Constructor Summary

Constructor Description
OperationLogSpecificationDefinition()

Creates an instance of OperationLogSpecificationDefinition class.

Method Summary

Modifier and Type Method and Description
String blobDuration()

Get the blobDuration property: Log blob duration.

String displayName()

Get the displayName property: Log display name.

static OperationLogSpecificationDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationLogSpecificationDefinition from the JsonReader.

String name()

Get the name property: Log name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationLogSpecificationDefinition withBlobDuration(String blobDuration)

Set the blobDuration property: Log blob duration.

OperationLogSpecificationDefinition withDisplayName(String displayName)

Set the displayName property: Log display name.

OperationLogSpecificationDefinition withName(String name)

Set the name property: Log name.

Methods inherited from java.lang.Object

Constructor Details

OperationLogSpecificationDefinition

public OperationLogSpecificationDefinition()

Creates an instance of OperationLogSpecificationDefinition class.

Method Details

blobDuration

public String blobDuration()

Get the blobDuration property: Log blob duration.

Returns:

the blobDuration value.

displayName

public String displayName()

Get the displayName property: Log display name.

Returns:

the displayName value.

fromJson

public static OperationLogSpecificationDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationLogSpecificationDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Log name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBlobDuration

public OperationLogSpecificationDefinition withBlobDuration(String blobDuration)

Set the blobDuration property: Log blob duration.

Parameters:

blobDuration - the blobDuration value to set.

Returns:

the OperationLogSpecificationDefinition object itself.

withDisplayName

public OperationLogSpecificationDefinition withDisplayName(String displayName)

Set the displayName property: Log display name.

Parameters:

displayName - the displayName value to set.

Returns:

the OperationLogSpecificationDefinition object itself.

withName

public OperationLogSpecificationDefinition withName(String name)

Set the name property: Log name.

Parameters:

name - the name value to set.

Returns:

the OperationLogSpecificationDefinition object itself.

Applies to