code: public function validate()
      {
          $this->required('Bucket');
          $this->required('IndexName');
  
          if($this->isMatchQuery()) {
              $this->required('MatchValue');
          }
          else {
              $this->required('LowerBound');
              $this->required('UpperBound');
          }
      }
docs: {@inheritdoc}