OperationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.OperationInner

Implements

public final class OperationInner
implements JsonSerializable<OperationInner>

An operation on a resource.

Constructor Summary

Constructor Description
OperationInner()

Creates an instance of OperationInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdTime()

Get the createdTime property: Time when operation has started.

List<ErrorEntity> errors()

Get the errors property: Any errors associate with the operation.

OffsetDateTime expirationTime()

Get the expirationTime property: Time when operation will expire.

static OperationInner fromJson(JsonReader jsonReader)

Reads an instance of OperationInner from the JsonReader.

UUID geoMasterOperationId()

Get the geoMasterOperationId property: Applicable only for stamp operation ids.

String id()

Get the id property: Operation ID.

OffsetDateTime modifiedTime()

Get the modifiedTime property: Time when operation has been updated.

String name()

Get the name property: Operation name.

OperationStatus status()

Get the status property: The current status of the operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationInner withCreatedTime(OffsetDateTime createdTime)

Set the createdTime property: Time when operation has started.

OperationInner withErrors(List<ErrorEntity> errors)

Set the errors property: Any errors associate with the operation.

OperationInner withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Time when operation will expire.

OperationInner withGeoMasterOperationId(UUID geoMasterOperationId)

Set the geoMasterOperationId property: Applicable only for stamp operation ids.

OperationInner withId(String id)

Set the id property: Operation ID.

OperationInner withModifiedTime(OffsetDateTime modifiedTime)

Set the modifiedTime property: Time when operation has been updated.

OperationInner withName(String name)

Set the name property: Operation name.

OperationInner withStatus(OperationStatus status)

Set the status property: The current status of the operation.

Methods inherited from java.lang.Object

Constructor Details

OperationInner

public OperationInner()

Creates an instance of OperationInner class.

Method Details

createdTime

public OffsetDateTime createdTime()

Get the createdTime property: Time when operation has started.

Returns:

the createdTime value.

errors

public List errors()

Get the errors property: Any errors associate with the operation.

Returns:

the errors value.

expirationTime

public OffsetDateTime expirationTime()

Get the expirationTime property: Time when operation will expire.

Returns:

the expirationTime value.

fromJson

public static OperationInner fromJson(JsonReader jsonReader)

Reads an instance of OperationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

geoMasterOperationId

public UUID geoMasterOperationId()

Get the geoMasterOperationId property: Applicable only for stamp operation ids.

Returns:

the geoMasterOperationId value.

id

public String id()

Get the id property: Operation ID.

Returns:

the id value.

modifiedTime

public OffsetDateTime modifiedTime()

Get the modifiedTime property: Time when operation has been updated.

Returns:

the modifiedTime value.

name

public String name()

Get the name property: Operation name.

Returns:

the name value.

status

public OperationStatus status()

Get the status property: The current status of the operation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCreatedTime

public OperationInner withCreatedTime(OffsetDateTime createdTime)

Set the createdTime property: Time when operation has started.

Parameters:

createdTime - the createdTime value to set.

Returns:

the OperationInner object itself.

withErrors

public OperationInner withErrors(List errors)

Set the errors property: Any errors associate with the operation.

Parameters:

errors - the errors value to set.

Returns:

the OperationInner object itself.

withExpirationTime

public OperationInner withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Time when operation will expire.

Parameters:

expirationTime - the expirationTime value to set.

Returns:

the OperationInner object itself.

withGeoMasterOperationId

public OperationInner withGeoMasterOperationId(UUID geoMasterOperationId)

Set the geoMasterOperationId property: Applicable only for stamp operation ids.

Parameters:

geoMasterOperationId - the geoMasterOperationId value to set.

Returns:

the OperationInner object itself.

withId

public OperationInner withId(String id)

Set the id property: Operation ID.

Parameters:

id - the id value to set.

Returns:

the OperationInner object itself.

withModifiedTime

public OperationInner withModifiedTime(OffsetDateTime modifiedTime)

Set the modifiedTime property: Time when operation has been updated.

Parameters:

modifiedTime - the modifiedTime value to set.

Returns:

the OperationInner object itself.

withName

public OperationInner withName(String name)

Set the name property: Operation name.

Parameters:

name - the name value to set.

Returns:

the OperationInner object itself.

withStatus

public OperationInner withStatus(OperationStatus status)

Set the status property: The current status of the operation.

Parameters:

status - the status value to set.

Returns:

the OperationInner object itself.

Applies to