Class Sku


  • public final class Sku
    extends Object
    The SKU details.
    • Constructor Detail

      • Sku

        public Sku()
    • Method Detail

      • name

        public SkuName name()
        Get the name property: The SKU name.
        Returns:
        the name value.
      • withName

        public Sku withName​(SkuName name)
        Set the name property: The SKU name.
        Parameters:
        name - the name value to set.
        Returns:
        the Sku object itself.
      • tier

        public SkuTier tier()
        Get the tier property: The SKU tier.
        Returns:
        the tier value.
      • validate

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