Class OperationResourceInner
- java.lang.Object
-
- com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner
-
public final class OperationResourceInner extends Object
An operation.
-
-
Constructor Summary
Constructors Constructor Description OperationResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
endTime()
Get the endTime property: Operation start time.com.azure.core.management.exception.ManagementError
error()
Get the error property: Errors from the operation.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.void
validate()
Validates the instance.OperationResourceInner
withEndTime(OffsetDateTime endTime)
Set the endTime property: Operation start time.OperationResourceInner
withError(com.azure.core.management.exception.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.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Operation ID.- Returns:
- the id value.
-
withId
public OperationResourceInner withId(String id)
Set the id property: Operation ID.- Parameters:
id
- the id value to set.- Returns:
- the OperationResourceInner object itself.
-
name
public String name()
Get the name property: Operation name.- Returns:
- the name value.
-
withName
public OperationResourceInner withName(String name)
Set the name property: Operation name.- Parameters:
name
- the name value to set.- Returns:
- the OperationResourceInner object itself.
-
status
public OperationStatus status()
Get the status property: Operation status.- Returns:
- the status value.
-
withStatus
public OperationResourceInner withStatus(OperationStatus status)
Set the status property: Operation status.- Parameters:
status
- the status value to set.- Returns:
- the OperationResourceInner object itself.
-
properties
public Object properties()
Get the properties property: Operation properties.- Returns:
- the properties value.
-
withProperties
public OperationResourceInner withProperties(Object properties)
Set the properties property: Operation properties.- Parameters:
properties
- the properties value to set.- Returns:
- the OperationResourceInner object itself.
-
error
public com.azure.core.management.exception.ManagementError error()
Get the error property: Errors from the operation.- Returns:
- the error value.
-
withError
public OperationResourceInner withError(com.azure.core.management.exception.ManagementError error)
Set the error property: Errors from the operation.- Parameters:
error
- the error value to set.- Returns:
- the OperationResourceInner object itself.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Operation start time.- Returns:
- the startTime value.
-
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.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: Operation start time.- Returns:
- the endTime value.
-
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.
-
percentComplete
public Float percentComplete()
Get the percentComplete property: Completion percentage of the operation.- Returns:
- the percentComplete value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-