code: func (s *Scte35DeliveryRestrictions) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "Scte35DeliveryRestrictions"}
  	if s.ArchiveAllowedFlag == nil {
  		invalidParams.Add(request.NewErrParamRequired("ArchiveAllowedFlag"))
  	}
  	if s.DeviceRestrictions == nil {
  		invalidParams.Add(request.NewErrParamRequired("DeviceRestrictions"))
  	}
  	if s.NoRegionalBlackoutFlag == nil {
  		invalidParams.Add(request.NewErrParamRequired("NoRegionalBlackoutFlag"))
  	}
  	if s.WebDeliveryAllowedFlag == nil {
  		invalidParams.Add(request.NewErrParamRequired("WebDeliveryAllowedFlag"))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.