Condividi tramite


ResourceProviderOperationDisplay Class

  • java.lang.Object
    • com.azure.resourcemanager.devspaces.models.ResourceProviderOperationDisplay

Implements

public final class ResourceProviderOperationDisplay
implements JsonSerializable<ResourceProviderOperationDisplay>

The ResourceProviderOperationDisplay model.

Constructor Summary

Constructor Description
ResourceProviderOperationDisplay()

Creates an instance of ResourceProviderOperationDisplay class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the resource provider operation.

static ResourceProviderOperationDisplay fromJson(JsonReader jsonReader)

Reads an instance of ResourceProviderOperationDisplay from the JsonReader.

String operation()

Get the operation property: Name of the resource provider operation.

String provider()

Get the provider property: Name of the resource provider.

String resource()

Get the resource property: Name of the resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceProviderOperationDisplay withDescription(String description)

Set the description property: Description of the resource provider operation.

ResourceProviderOperationDisplay withOperation(String operation)

Set the operation property: Name of the resource provider operation.

ResourceProviderOperationDisplay withProvider(String provider)

Set the provider property: Name of the resource provider.

ResourceProviderOperationDisplay withResource(String resource)

Set the resource property: Name of the resource type.

Methods inherited from java.lang.Object

Constructor Details

ResourceProviderOperationDisplay

public ResourceProviderOperationDisplay()

Creates an instance of ResourceProviderOperationDisplay class.

Method Details

description

public String description()

Get the description property: Description of the resource provider operation.

Returns:

the description value.

fromJson

public static ResourceProviderOperationDisplay fromJson(JsonReader jsonReader)

Reads an instance of ResourceProviderOperationDisplay from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceProviderOperationDisplay 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 ResourceProviderOperationDisplay.

operation

public String operation()

Get the operation property: Name of the resource provider operation.

Returns:

the operation value.

provider

public String provider()

Get the provider property: Name of the resource provider.

Returns:

the provider value.

resource

public String resource()

Get the resource property: Name of the resource type.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public ResourceProviderOperationDisplay withDescription(String description)

Set the description property: Description of the resource provider operation.

Parameters:

description - the description value to set.

Returns:

the ResourceProviderOperationDisplay object itself.

withOperation

public ResourceProviderOperationDisplay withOperation(String operation)

Set the operation property: Name of the resource provider operation.

Parameters:

operation - the operation value to set.

Returns:

the ResourceProviderOperationDisplay object itself.

withProvider

public ResourceProviderOperationDisplay withProvider(String provider)

Set the provider property: Name of the resource provider.

Parameters:

provider - the provider value to set.

Returns:

the ResourceProviderOperationDisplay object itself.

withResource

public ResourceProviderOperationDisplay withResource(String resource)

Set the resource property: Name of the resource type.

Parameters:

resource - the resource value to set.

Returns:

the ResourceProviderOperationDisplay object itself.

Applies to