OperationResourceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner

Implements

public final class OperationResourceInner
implements JsonSerializable<OperationResourceInner>

An operation.

Constructor Summary

Constructor Description
OperationResourceInner()

Creates an instance of OperationResourceInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: Operation start time.

ManagementError error()

Get the error property: Errors from the operation.

static OperationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of OperationResourceInner from the JsonReader.

String id()

Get the id property: Operation ID.

String name()

Get the name property: Operation name.

Float percentComplete()

Get the percentComplete property: Completion percentage of the operation.

Object properties()

Get the properties property: Operation properties.

OffsetDateTime startTime()

Get the startTime property: Operation start time.

OperationStatus status()

Get the status property: Operation status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationResourceInner withEndTime(OffsetDateTime endTime)

Set the endTime property: Operation start time.

OperationResourceInner withError(ManagementError error)

Set the error property: Errors from the operation.

OperationResourceInner withId(String id)

Set the id property: Operation ID.

OperationResourceInner withName(String name)

Set the name property: Operation name.

OperationResourceInner withPercentComplete(Float percentComplete)

Set the percentComplete property: Completion percentage of the operation.

OperationResourceInner withProperties(Object properties)

Set the properties property: Operation properties.

OperationResourceInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Operation start time.

OperationResourceInner withStatus(OperationStatus status)

Set the status property: Operation status.

Methods inherited from java.lang.Object

Constructor Details

OperationResourceInner

public OperationResourceInner()

Creates an instance of OperationResourceInner class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: Operation start time.

Returns:

the endTime value.

error

public ManagementError error()

Get the error property: Errors from the operation.

Returns:

the error value.

fromJson

public static OperationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of OperationResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Operation ID.

Returns:

the id value.

name

public String name()

Get the name property: Operation name.

Returns:

the name value.

percentComplete

public Float percentComplete()

Get the percentComplete property: Completion percentage of the operation.

Returns:

the percentComplete value.

properties

public Object properties()

Get the properties property: Operation properties.

Returns:

the properties value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Operation start time.

Returns:

the startTime value.

status

public OperationStatus status()

Get the status property: Operation status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndTime

public OperationResourceInner withEndTime(OffsetDateTime endTime)

Set the endTime property: Operation start time.

Parameters:

endTime - the endTime value to set.

Returns:

the OperationResourceInner object itself.

withError

public OperationResourceInner withError(ManagementError error)

Set the error property: Errors from the operation.

Parameters:

error - the error value to set.

Returns:

the OperationResourceInner object itself.

withId

public OperationResourceInner withId(String id)

Set the id property: Operation ID.

Parameters:

id - the id value to set.

Returns:

the OperationResourceInner object itself.

withName

public OperationResourceInner withName(String name)

Set the name property: Operation name.

Parameters:

name - the name value to set.

Returns:

the OperationResourceInner object itself.

withPercentComplete

public OperationResourceInner withPercentComplete(Float percentComplete)

Set the percentComplete property: Completion percentage of the operation.

Parameters:

percentComplete - the percentComplete value to set.

Returns:

the OperationResourceInner object itself.

withProperties

public OperationResourceInner withProperties(Object properties)

Set the properties property: Operation properties.

Parameters:

properties - the properties value to set.

Returns:

the OperationResourceInner object itself.

withStartTime

public OperationResourceInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Operation start time.

Parameters:

startTime - the startTime value to set.

Returns:

the OperationResourceInner object itself.

withStatus

public OperationResourceInner withStatus(OperationStatus status)

Set the status property: Operation status.

Parameters:

status - the status value to set.

Returns:

the OperationResourceInner object itself.

Applies to