code: func (s *PurchaseOfferingInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "PurchaseOfferingInput"}
  	if s.Count == nil {
  		invalidParams.Add(request.NewErrParamRequired("Count"))
  	}
  	if s.Count != nil && *s.Count < 1 {
  		invalidParams.Add(request.NewErrParamMinValue("Count", 1))
  	}
  	if s.OfferingId == nil {
  		invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  	}
  	if s.OfferingId != nil && len(*s.OfferingId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("OfferingId", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.