LogFileInner Class

public final class LogFileInner
extends ProxyResource

Represents a log file.

Constructor Summary

Constructor Description
LogFileInner()

Creates an instance of LogFileInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdTime()

Get the createdTime property: Creation timestamp of the log file.

static LogFileInner fromJson(JsonReader jsonReader)

Reads an instance of LogFileInner from the JsonReader.

String id()

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

OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Last modified timestamp of the log file.

String name()

Get the name property: The name of the resource.

Long sizeInKB()

Get the sizeInKB property: Size of the log file.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String typePropertiesType()

Get the type property: Type of the log file.

String url()

Get the url property: The url to download the log file from.

void validate()

Validates the instance.

LogFileInner withSizeInKB(Long sizeInKB)

Set the sizeInKB property: Size of the log file.

LogFileInner withTypePropertiesType(String type)

Set the type property: Type of the log file.

LogFileInner withUrl(String url)

Set the url property: The url to download the log file from.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

LogFileInner

public LogFileInner()

Creates an instance of LogFileInner class.

Method Details

createdTime

public OffsetDateTime createdTime()

Get the createdTime property: Creation timestamp of the log file.

Returns:

the createdTime value.

fromJson

public static LogFileInner fromJson(JsonReader jsonReader)

Reads an instance of LogFileInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LogFileInner 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:

LogFileInner.id()

Returns:

the id value.

lastModifiedTime

public OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Last modified timestamp of the log file.

Returns:

the lastModifiedTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

LogFileInner.name()

Returns:

the name value.

sizeInKB

public Long sizeInKB()

Get the sizeInKB property: Size of the log file.

Returns:

the sizeInKB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LogFileInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

LogFileInner.type()

Returns:

the type value.

typePropertiesType

public String typePropertiesType()

Get the type property: Type of the log file.

Returns:

the type value.

url

public String url()

Get the url property: The url to download the log file from.

Returns:

the url value.

validate

public void validate()

Validates the instance.

withSizeInKB

public LogFileInner withSizeInKB(Long sizeInKB)

Set the sizeInKB property: Size of the log file.

Parameters:

sizeInKB - the sizeInKB value to set.

Returns:

the LogFileInner object itself.

withTypePropertiesType

public LogFileInner withTypePropertiesType(String type)

Set the type property: Type of the log file.

Parameters:

type - the type value to set.

Returns:

the LogFileInner object itself.

withUrl

public LogFileInner withUrl(String url)

Set the url property: The url to download the log file from.

Parameters:

url - the url value to set.

Returns:

the LogFileInner object itself.

Applies to