共用方式為


UpsertManagedServerOperationStep Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.UpsertManagedServerOperationStep

Implements

public final class UpsertManagedServerOperationStep
implements JsonSerializable<UpsertManagedServerOperationStep>

The UpsertManagedServerOperationStep model.

Constructor Summary

Constructor Description
UpsertManagedServerOperationStep()

Creates an instance of UpsertManagedServerOperationStep class.

Method Summary

Modifier and Type Method and Description
static UpsertManagedServerOperationStep fromJson(JsonReader jsonReader)

Reads an instance of UpsertManagedServerOperationStep from the JsonReader.

String name()

Get the name property: The name property.

Integer order()

Get the order property: The order property.

UpsertManagedServerOperationStepStatus status()

Get the status property: The status property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UpsertManagedServerOperationStep withName(String name)

Set the name property: The name property.

UpsertManagedServerOperationStep withOrder(Integer order)

Set the order property: The order property.

UpsertManagedServerOperationStep withStatus(UpsertManagedServerOperationStepStatus status)

Set the status property: The status property.

Methods inherited from java.lang.Object

Constructor Details

UpsertManagedServerOperationStep

public UpsertManagedServerOperationStep()

Creates an instance of UpsertManagedServerOperationStep class.

Method Details

fromJson

public static UpsertManagedServerOperationStep fromJson(JsonReader jsonReader)

Reads an instance of UpsertManagedServerOperationStep from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name property.

Returns:

the name value.

order

public Integer order()

Get the order property: The order property.

Returns:

the order value.

status

public UpsertManagedServerOperationStepStatus status()

Get the status property: The status property.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public UpsertManagedServerOperationStep withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the UpsertManagedServerOperationStep object itself.

withOrder

public UpsertManagedServerOperationStep withOrder(Integer order)

Set the order property: The order property.

Parameters:

order - the order value to set.

Returns:

the UpsertManagedServerOperationStep object itself.

withStatus

public UpsertManagedServerOperationStep withStatus(UpsertManagedServerOperationStepStatus status)

Set the status property: The status property.

Parameters:

status - the status value to set.

Returns:

the UpsertManagedServerOperationStep object itself.

Applies to