Class SavingsPlanValidResponseProperty

java.lang.Object
com.azure.resourcemanager.billingbenefits.models.SavingsPlanValidResponseProperty

public final class SavingsPlanValidResponseProperty extends Object
Benefit scope response property.
  • Constructor Details

    • SavingsPlanValidResponseProperty

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

    • valid

      public Boolean valid()
      Get the valid property: Indicates if the provided input was valid.
      Returns:
      the valid value.
    • withValid

      public SavingsPlanValidResponseProperty withValid(Boolean valid)
      Set the valid property: Indicates if the provided input was valid.
      Parameters:
      valid - the valid value to set.
      Returns:
      the SavingsPlanValidResponseProperty object itself.
    • reasonCode

      public String reasonCode()
      Get the reasonCode property: Failure reason code if the provided input was invalid.
      Returns:
      the reasonCode value.
    • withReasonCode

      public SavingsPlanValidResponseProperty withReasonCode(String reasonCode)
      Set the reasonCode property: Failure reason code if the provided input was invalid.
      Parameters:
      reasonCode - the reasonCode value to set.
      Returns:
      the SavingsPlanValidResponseProperty object itself.
    • reason

      public String reason()
      Get the reason property: Failure reason if the provided input was invalid.
      Returns:
      the reason value.
    • withReason

      public SavingsPlanValidResponseProperty withReason(String reason)
      Set the reason property: Failure reason if the provided input was invalid.
      Parameters:
      reason - the reason value to set.
      Returns:
      the SavingsPlanValidResponseProperty object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.