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 Details

    • BenefitResource

      public BenefitResource()
      Creates an instance of BenefitResource class.
  • Method Details

    • kind

      public BenefitKind kind()
      Get the kind property: Reservation or SavingsPlan.
      Returns:
      the kind value.
    • withKind

      public BenefitResource withKind(BenefitKind kind)
      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.