Class BenefitResource
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.costmanagement.models.BenefitResource
- Direct Known Subclasses:
BenefitRecommendationModelInner
public class BenefitResource
extends com.azure.core.management.ProxyResource
The benefit resource model definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkind()
Get the kind property: Reservation or SavingsPlan.void
validate()
Validates the instance.withKind
(BenefitKind kind) Set the kind property: Reservation or SavingsPlan.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
BenefitResource
public BenefitResource()Creates an instance of BenefitResource class.
-
-
Method Details
-
kind
Get the kind property: Reservation or SavingsPlan.- Returns:
- the kind value.
-
withKind
Set the kind property: Reservation or SavingsPlan.- Parameters:
kind
- the kind value to set.- Returns:
- the BenefitResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-