ReservationSplitProperties Class

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

Implements

public final class ReservationSplitProperties
implements JsonSerializable<ReservationSplitProperties>

Properties of reservation split.

Constructor Summary

Constructor Description
ReservationSplitProperties()

Creates an instance of ReservationSplitProperties class.

Method Summary

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

Reads an instance of ReservationSplitProperties from the JsonReader.

List<String> splitDestinations()

Get the splitDestinations property: List of destination resource id that are created due to split.

String splitSource()

Get the splitSource property: Resource id of the reservation from which this is split.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReservationSplitProperties withSplitDestinations(List<String> splitDestinations)

Set the splitDestinations property: List of destination resource id that are created due to split.

ReservationSplitProperties withSplitSource(String splitSource)

Set the splitSource property: Resource id of the reservation from which this is split.

Methods inherited from java.lang.Object

Constructor Details

ReservationSplitProperties

public ReservationSplitProperties()

Creates an instance of ReservationSplitProperties class.

Method Details

fromJson

public static ReservationSplitProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationSplitProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

splitDestinations

public List<String> splitDestinations()

Get the splitDestinations property: List of destination resource id that are created due to split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Returns:

the splitDestinations value.

splitSource

public String splitSource()

Get the splitSource property: Resource id of the reservation from which this is split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Returns:

the splitSource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSplitDestinations

public ReservationSplitProperties withSplitDestinations(List<String> splitDestinations)

Set the splitDestinations property: List of destination resource id that are created due to split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Parameters:

splitDestinations - the splitDestinations value to set.

Returns:

the ReservationSplitProperties object itself.

withSplitSource

public ReservationSplitProperties withSplitSource(String splitSource)

Set the splitSource property: Resource id of the reservation from which this is split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Parameters:

splitSource - the splitSource value to set.

Returns:

the ReservationSplitProperties object itself.

Applies to