Class OperationInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.OperationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationInner>
public final class OperationInner
extends Object
implements com.azure.json.JsonSerializable<OperationInner>
An operation on a resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createdTime property: Time when operation has started.errors()
Get the errors property: Any errors associate with the operation.Get the expirationTime property: Time when operation will expire.static OperationInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OperationInner from the JsonReader.Get the geoMasterOperationId property: Applicable only for stamp operation ids.id()
Get the id property: Operation ID.Get the modifiedTime property: Time when operation has been updated.name()
Get the name property: Operation name.status()
Get the status property: The current status of the operation.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCreatedTime
(OffsetDateTime createdTime) Set the createdTime property: Time when operation has started.withErrors
(List<ErrorEntity> errors) Set the errors property: Any errors associate with the operation.withExpirationTime
(OffsetDateTime expirationTime) Set the expirationTime property: Time when operation will expire.withGeoMasterOperationId
(UUID geoMasterOperationId) Set the geoMasterOperationId property: Applicable only for stamp operation ids.Set the id property: Operation ID.withModifiedTime
(OffsetDateTime modifiedTime) Set the modifiedTime property: Time when operation has been updated.Set the name property: Operation name.withStatus
(OperationStatus status) Set the status property: The current status of the operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OperationInner
public OperationInner()Creates an instance of OperationInner class.
-
-
Method Details
-
id
Get the id property: Operation ID.- Returns:
- the id value.
-
withId
Set the id property: Operation ID.- Parameters:
id
- the id value to set.- Returns:
- the OperationInner object itself.
-
name
Get the name property: Operation name.- Returns:
- the name value.
-
withName
Set the name property: Operation name.- Parameters:
name
- the name value to set.- Returns:
- the OperationInner object itself.
-
status
Get the status property: The current status of the operation.- Returns:
- the status value.
-
withStatus
Set the status property: The current status of the operation.- Parameters:
status
- the status value to set.- Returns:
- the OperationInner object itself.
-
errors
Get the errors property: Any errors associate with the operation.- Returns:
- the errors value.
-
withErrors
Set the errors property: Any errors associate with the operation.- Parameters:
errors
- the errors value to set.- Returns:
- the OperationInner object itself.
-
createdTime
Get the createdTime property: Time when operation has started.- Returns:
- the createdTime value.
-
withCreatedTime
Set the createdTime property: Time when operation has started.- Parameters:
createdTime
- the createdTime value to set.- Returns:
- the OperationInner object itself.
-
modifiedTime
Get the modifiedTime property: Time when operation has been updated.- Returns:
- the modifiedTime value.
-
withModifiedTime
Set the modifiedTime property: Time when operation has been updated.- Parameters:
modifiedTime
- the modifiedTime value to set.- Returns:
- the OperationInner object itself.
-
expirationTime
Get the expirationTime property: Time when operation will expire.- Returns:
- the expirationTime value.
-
withExpirationTime
Set the expirationTime property: Time when operation will expire.- Parameters:
expirationTime
- the expirationTime value to set.- Returns:
- the OperationInner object itself.
-
geoMasterOperationId
Get the geoMasterOperationId property: Applicable only for stamp operation ids.- Returns:
- the geoMasterOperationId value.
-
withGeoMasterOperationId
Set the geoMasterOperationId property: Applicable only for stamp operation ids.- Parameters:
geoMasterOperationId
- the geoMasterOperationId value to set.- Returns:
- the OperationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OperationInner>
- Throws:
IOException
-
fromJson
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.
-