Class CommitmentPeriod


  • public final class CommitmentPeriod
    extends Object
    Cognitive Services account commitment period.
    • Constructor Detail

      • CommitmentPeriod

        public CommitmentPeriod()
    • Method Detail

      • tier

        public String tier()
        Get the tier property: Commitment period commitment tier.
        Returns:
        the tier value.
      • withTier

        public CommitmentPeriod withTier​(String tier)
        Set the tier property: Commitment period commitment tier.
        Parameters:
        tier - the tier value to set.
        Returns:
        the CommitmentPeriod object itself.
      • count

        public Integer count()
        Get the count property: Commitment period commitment count.
        Returns:
        the count value.
      • withCount

        public CommitmentPeriod withCount​(Integer count)
        Set the count property: Commitment period commitment count.
        Parameters:
        count - the count value to set.
        Returns:
        the CommitmentPeriod object itself.
      • quota

        public CommitmentQuota quota()
        Get the quota property: Cognitive Services account commitment quota.
        Returns:
        the quota value.
      • startDate

        public String startDate()
        Get the startDate property: Commitment period start date.
        Returns:
        the startDate value.
      • endDate

        public String endDate()
        Get the endDate property: Commitment period end date.
        Returns:
        the endDate value.
      • validate

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