ReservationRecommendationDetailsProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.fluent.models.ReservationRecommendationDetailsProperties

Implements

public final class ReservationRecommendationDetailsProperties
implements JsonSerializable<ReservationRecommendationDetailsProperties>

The properties of the reservation recommendation.

Constructor Summary

Constructor Description
ReservationRecommendationDetailsProperties()

Creates an instance of ReservationRecommendationDetailsProperties class.

Method Summary

Modifier and Type Method and Description
String currency()

Get the currency property: An ISO 4217 currency code identifier for the costs and savings.

static ReservationRecommendationDetailsProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationRecommendationDetailsProperties from the JsonReader.

ReservationRecommendationDetailsResourceProperties resource()

Get the resource property: Resource specific properties.

String resourceGroup()

Get the resourceGroup property: Resource Group.

ReservationRecommendationDetailsSavingsProperties savings()

Get the savings property: Savings information for the recommendation.

String scope()

Get the scope property: Scope of the reservation, ex: Single or Shared.

JsonWriter toJson(JsonWriter jsonWriter)
ReservationRecommendationDetailsUsageProperties usage()

Get the usage property: Historical usage details used to calculate the estimated savings.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ReservationRecommendationDetailsProperties

public ReservationRecommendationDetailsProperties()

Creates an instance of ReservationRecommendationDetailsProperties class.

Method Details

currency

public String currency()

Get the currency property: An ISO 4217 currency code identifier for the costs and savings.

Returns:

the currency value.

fromJson

public static ReservationRecommendationDetailsProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationRecommendationDetailsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resource

public ReservationRecommendationDetailsResourceProperties resource()

Get the resource property: Resource specific properties.

Returns:

the resource value.

resourceGroup

public String resourceGroup()

Get the resourceGroup property: Resource Group.

Returns:

the resourceGroup value.

savings

public ReservationRecommendationDetailsSavingsProperties savings()

Get the savings property: Savings information for the recommendation.

Returns:

the savings value.

scope

public String scope()

Get the scope property: Scope of the reservation, ex: Single or Shared.

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usage

public ReservationRecommendationDetailsUsageProperties usage()

Get the usage property: Historical usage details used to calculate the estimated savings.

Returns:

the usage value.

validate

public void validate()

Validates the instance.

Applies to