ReservationMergeProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.ReservationMergeProperties

Implements

public final class ReservationMergeProperties
implements JsonSerializable<ReservationMergeProperties>

Properties of reservation merge.

Constructor Summary

Constructor Description
ReservationMergeProperties()

Creates an instance of ReservationMergeProperties class.

Method Summary

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

Reads an instance of ReservationMergeProperties from the JsonReader.

String mergeDestination()

Get the mergeDestination property: Reservation resource id Created due to the merge.

List<String> mergeSources()

Get the mergeSources property: Resource ids of the source reservation's merged to form this reservation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReservationMergeProperties withMergeDestination(String mergeDestination)

Set the mergeDestination property: Reservation resource id Created due to the merge.

ReservationMergeProperties withMergeSources(List<String> mergeSources)

Set the mergeSources property: Resource ids of the source reservation's merged to form this reservation.

Methods inherited from java.lang.Object

Constructor Details

ReservationMergeProperties

public ReservationMergeProperties()

Creates an instance of ReservationMergeProperties class.

Method Details

fromJson

public static ReservationMergeProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationMergeProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

mergeDestination

public String mergeDestination()

Get the mergeDestination property: Reservation resource id Created due to the merge. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Returns:

the mergeDestination value.

mergeSources

public List<String> mergeSources()

Get the mergeSources property: Resource ids of the source reservation's merged to form this reservation. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Returns:

the mergeSources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMergeDestination

public ReservationMergeProperties withMergeDestination(String mergeDestination)

Set the mergeDestination property: Reservation resource id Created due to the merge. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Parameters:

mergeDestination - the mergeDestination value to set.

Returns:

the ReservationMergeProperties object itself.

withMergeSources

public ReservationMergeProperties withMergeSources(List<String> mergeSources)

Set the mergeSources property: Resource ids of the source reservation's merged to form this reservation. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Parameters:

mergeSources - the mergeSources value to set.

Returns:

the ReservationMergeProperties object itself.

Applies to