Partager via


OperationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.OperationInner

Implements

public final class OperationInner
implements JsonSerializable<OperationInner>

Network REST API operation definition.

Constructor Summary

Constructor Description
OperationInner()

Creates an instance of OperationInner class.

Method Summary

Modifier and Type Method and Description
OperationDisplay display()

Get the display property: Display metadata associated with the operation.

static OperationInner fromJson(JsonReader jsonReader)

Reads an instance of OperationInner from the JsonReader.

String name()

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

String origin()

Get the origin property: Origin of the operation.

OperationPropertiesFormatServiceSpecification serviceSpecification()

Get the serviceSpecification property: Specification of the service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationInner withDisplay(OperationDisplay display)

Set the display property: Display metadata associated with the operation.

OperationInner withName(String name)

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

OperationInner withOrigin(String origin)

Set the origin property: Origin of the operation.

OperationInner withServiceSpecification(OperationPropertiesFormatServiceSpecification serviceSpecification)

Set the serviceSpecification property: Specification of the service.

Methods inherited from java.lang.Object

Constructor Details

OperationInner

public OperationInner()

Creates an instance of OperationInner class.

Method Details

display

public OperationDisplay display()

Get the display property: Display metadata associated with the operation.

Returns:

the display value.

fromJson

public static OperationInner fromJson(JsonReader jsonReader)

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.

name

public String name()

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

Returns:

the name value.

origin

public String origin()

Get the origin property: Origin of the operation.

Returns:

the origin value.

serviceSpecification

public OperationPropertiesFormatServiceSpecification serviceSpecification()

Get the serviceSpecification property: Specification of the service.

Returns:

the serviceSpecification value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplay

public OperationInner withDisplay(OperationDisplay display)

Set the display property: Display metadata associated with the operation.

Parameters:

display - the display value to set.

Returns:

the OperationInner object itself.

withName

public OperationInner withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the OperationInner object itself.

withOrigin

public OperationInner withOrigin(String origin)

Set the origin property: Origin of the operation.

Parameters:

origin - the origin value to set.

Returns:

the OperationInner object itself.

withServiceSpecification

public OperationInner withServiceSpecification(OperationPropertiesFormatServiceSpecification serviceSpecification)

Set the serviceSpecification property: Specification of the service.

Parameters:

serviceSpecification - the serviceSpecification value to set.

Returns:

the OperationInner object itself.

Applies to