Partager via


ApiOperationAnnotation Class

  • java.lang.Object
    • com.azure.resourcemanager.logic.models.ApiOperationAnnotation

Implements

public final class ApiOperationAnnotation
implements JsonSerializable<ApiOperationAnnotation>

The Api Operation Annotation.

Constructor Summary

Constructor Description
ApiOperationAnnotation()

Creates an instance of ApiOperationAnnotation class.

Method Summary

Modifier and Type Method and Description
String family()

Get the family property: The family.

static ApiOperationAnnotation fromJson(JsonReader jsonReader)

Reads an instance of ApiOperationAnnotation from the JsonReader.

Integer revision()

Get the revision property: The revision.

StatusAnnotation status()

Get the status property: The status annotation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiOperationAnnotation withFamily(String family)

Set the family property: The family.

ApiOperationAnnotation withRevision(Integer revision)

Set the revision property: The revision.

ApiOperationAnnotation withStatus(StatusAnnotation status)

Set the status property: The status annotation.

Methods inherited from java.lang.Object

Constructor Details

ApiOperationAnnotation

public ApiOperationAnnotation()

Creates an instance of ApiOperationAnnotation class.

Method Details

family

public String family()

Get the family property: The family.

Returns:

the family value.

fromJson

public static ApiOperationAnnotation fromJson(JsonReader jsonReader)

Reads an instance of ApiOperationAnnotation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

revision

public Integer revision()

Get the revision property: The revision.

Returns:

the revision value.

status

public StatusAnnotation status()

Get the status property: The status annotation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFamily

public ApiOperationAnnotation withFamily(String family)

Set the family property: The family.

Parameters:

family - the family value to set.

Returns:

the ApiOperationAnnotation object itself.

withRevision

public ApiOperationAnnotation withRevision(Integer revision)

Set the revision property: The revision.

Parameters:

revision - the revision value to set.

Returns:

the ApiOperationAnnotation object itself.

withStatus

public ApiOperationAnnotation withStatus(StatusAnnotation status)

Set the status property: The status annotation.

Parameters:

status - the status value to set.

Returns:

the ApiOperationAnnotation object itself.

Applies to