Operation Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. Operation
- com.
Implements
public final class Operation
implements JsonSerializable<Operation>
An operation for Azure Container Instance service.
Constructor Summary
Constructor | Description |
---|---|
Operation() |
Creates an instance of Operation class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Operation |
display()
Get the display property: The display information of the operation. |
static Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation from the Json |
String |
name()
Get the name property: The name of the operation. |
Container |
origin()
Get the origin property: The intended executor of the operation. |
Object |
properties()
Get the properties property: The additional properties. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Operation |
withDisplay(OperationDisplay display)
Set the display property: The display information of the operation. |
Operation |
withName(String name)
Set the name property: The name of the operation. |
Operation |
withOrigin(ContainerInstanceOperationsOrigin origin)
Set the origin property: The intended executor of the operation. |
Operation |
withProperties(Object properties)
Set the properties property: The additional properties. |
Methods inherited from java.lang.Object
Constructor Details
Operation
public Operation()
Creates an instance of Operation class.
Method Details
display
public OperationDisplay display()
Get the display property: The display information of the operation.
Returns:
fromJson
public static Operation fromJson(JsonReader jsonReader)
Reads an instance of Operation from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the operation.
Returns:
origin
public ContainerInstanceOperationsOrigin origin()
Get the origin property: The intended executor of the operation.
Returns:
properties
public Object properties()
Get the properties property: The additional properties.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDisplay
public Operation withDisplay(OperationDisplay display)
Set the display property: The display information of the operation.
Parameters:
Returns:
withName
public Operation withName(String name)
Set the name property: The name of the operation.
Parameters:
Returns:
withOrigin
public Operation withOrigin(ContainerInstanceOperationsOrigin origin)
Set the origin property: The intended executor of the operation.
Parameters:
Returns:
withProperties
public Operation withProperties(Object properties)
Set the properties property: The additional properties.
Parameters:
Returns:
Applies to
Azure SDK for Java