Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice.implementation; import com.microsoft.azure.management.appservice.OperationStatus; import java.util.List; import com.microsoft.azure.management.appservice.ErrorEntity; import org.joda.time.DateTime; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonProperty;
An operation on a resource.
/** * An operation on a resource. */
public class OperationInner {
Operation ID.
/** * Operation ID. */
@JsonProperty(value = "id") private String id;
Operation name.
/** * Operation name. */
@JsonProperty(value = "name") private String name;
The current status of the operation. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created'.
/** * The current status of the operation. Possible values include: * 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created'. */
@JsonProperty(value = "status") private OperationStatus status;
Any errors associate with the operation.
/** * Any errors associate with the operation. */
@JsonProperty(value = "errors") private List<ErrorEntity> errors;
Time when operation has started.
/** * Time when operation has started. */
@JsonProperty(value = "createdTime") private DateTime createdTime;
Time when operation has been updated.
/** * Time when operation has been updated. */
@JsonProperty(value = "modifiedTime") private DateTime modifiedTime;
Time when operation will expire.
/** * Time when operation will expire. */
@JsonProperty(value = "expirationTime") private DateTime expirationTime;
Applicable only for stamp operation ids.
/** * Applicable only for stamp operation ids. */
@JsonProperty(value = "geoMasterOperationId") private UUID geoMasterOperationId;
Get operation ID.
Returns:the id value
/** * Get operation ID. * * @return the id value */
public String id() { return this.id; }
Set operation ID.
Params:
  • id – the id value to set
Returns:the OperationInner object itself.
/** * Set operation ID. * * @param id the id value to set * @return the OperationInner object itself. */
public OperationInner withId(String id) { this.id = id; return this; }
Get operation name.
Returns:the name value
/** * Get operation name. * * @return the name value */
public String name() { return this.name; }
Set operation name.
Params:
  • name – the name value to set
Returns:the OperationInner object itself.
/** * Set operation name. * * @param name the name value to set * @return the OperationInner object itself. */
public OperationInner withName(String name) { this.name = name; return this; }
Get the current status of the operation. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created'.
Returns:the status value
/** * Get the current status of the operation. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created'. * * @return the status value */
public OperationStatus status() { return this.status; }
Set the current status of the operation. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created'.
Params:
  • status – the status value to set
Returns:the OperationInner object itself.
/** * Set the current status of the operation. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created'. * * @param status the status value to set * @return the OperationInner object itself. */
public OperationInner withStatus(OperationStatus status) { this.status = status; return this; }
Get any errors associate with the operation.
Returns:the errors value
/** * Get any errors associate with the operation. * * @return the errors value */
public List<ErrorEntity> errors() { return this.errors; }
Set any errors associate with the operation.
Params:
  • errors – the errors value to set
Returns:the OperationInner object itself.
/** * Set any errors associate with the operation. * * @param errors the errors value to set * @return the OperationInner object itself. */
public OperationInner withErrors(List<ErrorEntity> errors) { this.errors = errors; return this; }
Get time when operation has started.
Returns:the createdTime value
/** * Get time when operation has started. * * @return the createdTime value */
public DateTime createdTime() { return this.createdTime; }
Set time when operation has started.
Params:
  • createdTime – the createdTime value to set
Returns:the OperationInner object itself.
/** * Set time when operation has started. * * @param createdTime the createdTime value to set * @return the OperationInner object itself. */
public OperationInner withCreatedTime(DateTime createdTime) { this.createdTime = createdTime; return this; }
Get time when operation has been updated.
Returns:the modifiedTime value
/** * Get time when operation has been updated. * * @return the modifiedTime value */
public DateTime modifiedTime() { return this.modifiedTime; }
Set time when operation has been updated.
Params:
  • modifiedTime – the modifiedTime value to set
Returns:the OperationInner object itself.
/** * Set time when operation has been updated. * * @param modifiedTime the modifiedTime value to set * @return the OperationInner object itself. */
public OperationInner withModifiedTime(DateTime modifiedTime) { this.modifiedTime = modifiedTime; return this; }
Get time when operation will expire.
Returns:the expirationTime value
/** * Get time when operation will expire. * * @return the expirationTime value */
public DateTime expirationTime() { return this.expirationTime; }
Set time when operation will expire.
Params:
  • expirationTime – the expirationTime value to set
Returns:the OperationInner object itself.
/** * Set time when operation will expire. * * @param expirationTime the expirationTime value to set * @return the OperationInner object itself. */
public OperationInner withExpirationTime(DateTime expirationTime) { this.expirationTime = expirationTime; return this; }
Get applicable only for stamp operation ids.
Returns:the geoMasterOperationId value
/** * Get applicable only for stamp operation ids. * * @return the geoMasterOperationId value */
public UUID geoMasterOperationId() { return this.geoMasterOperationId; }
Set applicable only for stamp operation ids.
Params:
  • geoMasterOperationId – the geoMasterOperationId value to set
Returns:the OperationInner object itself.
/** * Set applicable only for stamp operation ids. * * @param geoMasterOperationId the geoMasterOperationId value to set * @return the OperationInner object itself. */
public OperationInner withGeoMasterOperationId(UUID geoMasterOperationId) { this.geoMasterOperationId = geoMasterOperationId; return this; } }