ReservationRecommendationDetailsModelInner Class

public final class ReservationRecommendationDetailsModelInner
extends ProxyResource

Reservation recommendation details.

Constructor Summary

Constructor Description
ReservationRecommendationDetailsModelInner()

Creates an instance of ReservationRecommendationDetailsModelInner 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.

String etag()

Get the etag property: The etag for the resource.

static ReservationRecommendationDetailsModelInner fromJson(JsonReader jsonReader)

Reads an instance of ReservationRecommendationDetailsModelInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String location()

Get the location property: Resource Location.

String name()

Get the name property: The name of the resource.

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.

String sku()

Get the sku property: Resource sku.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

ReservationRecommendationDetailsUsageProperties usage()

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

void validate()

Validates the instance.

ReservationRecommendationDetailsModelInner withLocation(String location)

Set the location property: Resource Location.

ReservationRecommendationDetailsModelInner withSku(String sku)

Set the sku property: Resource sku.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ReservationRecommendationDetailsModelInner

public ReservationRecommendationDetailsModelInner()

Creates an instance of ReservationRecommendationDetailsModelInner 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.

etag

public String etag()

Get the etag property: The etag for the resource.

Returns:

the etag value.

fromJson

public static ReservationRecommendationDetailsModelInner fromJson(JsonReader jsonReader)

Reads an instance of ReservationRecommendationDetailsModelInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ReservationRecommendationDetailsModelInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ReservationRecommendationDetailsModelInner.id()

Returns:

the id value.

location

public String location()

Get the location property: Resource Location.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ReservationRecommendationDetailsModelInner.name()

Returns:

the name value.

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.

sku

public String sku()

Get the sku property: Resource sku.

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ReservationRecommendationDetailsModelInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ReservationRecommendationDetailsModelInner.type()

Returns:

the type value.

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.

withLocation

public ReservationRecommendationDetailsModelInner withLocation(String location)

Set the location property: Resource Location.

Parameters:

location - the location value to set.

Returns:

the ReservationRecommendationDetailsModelInner object itself.

withSku

public ReservationRecommendationDetailsModelInner withSku(String sku)

Set the sku property: Resource sku.

Parameters:

sku - the sku value to set.

Returns:

the ReservationRecommendationDetailsModelInner object itself.

Applies to