AvailableOperationDisplay Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.AvailableOperationDisplay

Implements

public final class AvailableOperationDisplay
implements JsonSerializable<AvailableOperationDisplay>

Operation supported by the Service Fabric resource provider.

Constructor Summary

Constructor Description
AvailableOperationDisplay()

Creates an instance of AvailableOperationDisplay class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Operation description.

static AvailableOperationDisplay fromJson(JsonReader jsonReader)

Reads an instance of AvailableOperationDisplay from the JsonReader.

String operation()

Get the operation property: The operation that can be performed.

String provider()

Get the provider property: The name of the provider.

String resource()

Get the resource property: The resource on which the operation is performed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableOperationDisplay withDescription(String description)

Set the description property: Operation description.

AvailableOperationDisplay withOperation(String operation)

Set the operation property: The operation that can be performed.

AvailableOperationDisplay withProvider(String provider)

Set the provider property: The name of the provider.

AvailableOperationDisplay withResource(String resource)

Set the resource property: The resource on which the operation is performed.

Methods inherited from java.lang.Object

Constructor Details

AvailableOperationDisplay

public AvailableOperationDisplay()

Creates an instance of AvailableOperationDisplay class.

Method Details

description

public String description()

Get the description property: Operation description.

Returns:

the description value.

fromJson

public static AvailableOperationDisplay fromJson(JsonReader jsonReader)

Reads an instance of AvailableOperationDisplay from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operation

public String operation()

Get the operation property: The operation that can be performed.

Returns:

the operation value.

provider

public String provider()

Get the provider property: The name of the provider.

Returns:

the provider value.

resource

public String resource()

Get the resource property: The resource on which the operation is performed.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public AvailableOperationDisplay withDescription(String description)

Set the description property: Operation description.

Parameters:

description - the description value to set.

Returns:

the AvailableOperationDisplay object itself.

withOperation

public AvailableOperationDisplay withOperation(String operation)

Set the operation property: The operation that can be performed.

Parameters:

operation - the operation value to set.

Returns:

the AvailableOperationDisplay object itself.

withProvider

public AvailableOperationDisplay withProvider(String provider)

Set the provider property: The name of the provider.

Parameters:

provider - the provider value to set.

Returns:

the AvailableOperationDisplay object itself.

withResource

public AvailableOperationDisplay withResource(String resource)

Set the resource property: The resource on which the operation is performed.

Parameters:

resource - the resource value to set.

Returns:

the AvailableOperationDisplay object itself.

Applies to