ReservationRecommendationDetailsModelInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. consumption. fluent. models. ReservationRecommendationDetailsModelInner
- com.
- com.
public final class ReservationRecommendationDetailsModelInner
extends ProxyResource
Reservation recommendation details.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationRecommendationDetailsModelInner() |
Creates an instance of Reservation |
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
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| 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. |
|
Reservation |
resource()
Get the resource property: Resource specific properties. |
| String |
resourceGroup()
Get the resource |
|
Reservation |
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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
|
Reservation |
usage()
Get the usage property: Historical usage details used to calculate the estimated savings. |
| void |
validate()
Validates the instance. |
|
Reservation |
withLocation(String location)
Set the location property: Resource Location. |
|
Reservation |
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:
etag
public String etag()
Get the etag property: The etag for the resource.
Returns:
fromJson
public static ReservationRecommendationDetailsModelInner fromJson(JsonReader jsonReader)
Reads an instance of ReservationRecommendationDetailsModelInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ReservationRecommendationDetailsModelInner.id()Returns:
location
public String location()
Get the location property: Resource Location.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ReservationRecommendationDetailsModelInner.name()Returns:
resource
public ReservationRecommendationDetailsResourceProperties resource()
Get the resource property: Resource specific properties.
Returns:
resourceGroup
public String resourceGroup()
Get the resourceGroup property: Resource Group.
Returns:
savings
public ReservationRecommendationDetailsSavingsProperties savings()
Get the savings property: Savings information for the recommendation.
Returns:
scope
public String scope()
Get the scope property: Scope of the reservation, ex: Single or Shared.
Returns:
sku
public String sku()
Get the sku property: Resource sku.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ReservationRecommendationDetailsModelInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ReservationRecommendationDetailsModelInner.type()Returns:
usage
public ReservationRecommendationDetailsUsageProperties usage()
Get the usage property: Historical usage details used to calculate the estimated savings.
Returns:
validate
public void validate()
Validates the instance.
withLocation
public ReservationRecommendationDetailsModelInner withLocation(String location)
Set the location property: Resource Location.
Parameters:
Returns:
withSku
public ReservationRecommendationDetailsModelInner withSku(String sku)
Set the sku property: Resource sku.
Parameters:
Returns: