Operation Class

  • java.lang.Object
    • com.azure.resourcemanager.subscription.models.Operation

public final class Operation

REST API operation.

Constructor Summary

Constructor Description
Operation()

Creates an instance of Operation class.

Method Summary

Modifier and Type Method and Description
OperationDisplay display()

Get the display property: The object that represents the operation.

String name()

Get the name property: Operation name: {provider}/{resource}/{operation}.

void validate()

Validates the instance.

Operation withDisplay(OperationDisplay display)

Set the display property: The object that represents the operation.

Operation withName(String name)

Set the name property: Operation name: {provider}/{resource}/{operation}.

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 object that represents the operation.

Returns:

the display value.

name

public String name()

Get the name property: Operation name: {provider}/{resource}/{operation}.

Returns:

the name value.

validate

public void validate()

Validates the instance.

withDisplay

public Operation withDisplay(OperationDisplay display)

Set the display property: The object that represents the operation.

Parameters:

display - the display value to set.

Returns:

the Operation object itself.

withName

public Operation withName(String name)

Set the name property: Operation name: {provider}/{resource}/{operation}.

Parameters:

name - the name value to set.

Returns:

the Operation object itself.

Applies to